So, I wanna make a store in an Adventure Map I'm making that uses Golden Nuggets and Command Blocks.
The idea is that you click a button, it subtracts X Golden Nuggets from your inventory and gives you Y item, and if you don't have enough Gold Nuggets, it says: "You don't have enough money to buy that.."
There are many tutorials on how to make a working store using command blocks on youtube. They all use xp, and make it so you can't buy things you cannot afford. Unfortunately, I don't think you can use gold nuggets. Just google: Minecraft store using command blocks.
The idea is that you click a button, it subtracts X Golden Nuggets from your inventory and gives you Y item, and if you don't have enough Gold Nuggets, it says: "You don't have enough money to buy that.."
Don't know how to do it XD
Help?
[img]
There should be a way to edit what testificates ask for/give. That would be awesome.
You could use NBT, but i like MCedit you can make villager shops with that