MinetestForFun / minercantile

Home Page:http://www.minetest.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Items price

d-stephane opened this issue · comments

Hello,
How can i define items price, if it's possible ?

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 :)

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 :)

After looking in the code I just tested this:
...

We should explain how to do this in README.md.
What do you think, @Darcidride? 🙂