Items price
d-stephane opened this issue · comments
d-stephane commented
Hello,
How can i define items price, if it's possible ?
BetterToAutomateTheWorld commented
I quickly read the code and in my point of view, it's not made (or ready whatever) to set static price for some items.
But, you can set them manually by adding a function in the lua configuration which will use minercantile.stock.items[itname].price
and set some exception based on [itname]
@Cyberpangolin @Panquesito7 @ObaniGemini @LeMagnesium Can surely give you a better answer :)
d-stephane commented
After looking in the code I just tested this:
["default:cobble"] = {["nb"] = 10000, ["price"] = 1}, ["default:chest_locked"] = {["nb"] = 10000, ["price"] = 10},
It works very well :)
David Leal commented
After looking in the code I just tested this:
...
We should explain how to do this in README.md
.
What do you think, @Darcidride? 🙂