I need some help with creating a shop since the 'testfor' command has been removed.
Basically what I want to do, is create a market system with a scoreboard (NOT LEVELS) and treat it as a currency.
Player A has $200 and wants to buy a diamond for $100. I need to create a command block which looks at Player A's 'wallet' and sees if there is sufficient cash to buy the diamond. If there isn't sufficient cash, then the sequence stops, if there is sufficient cash, then the sequence continues and Player A has $100 deducted and receives their diamond.
Hi all,
I need some help with creating a shop since the 'testfor' command has been removed.
Basically what I want to do, is create a market system with a scoreboard (NOT LEVELS) and treat it as a currency.
Player A has $200 and wants to buy a diamond for $100. I need to create a command block which looks at Player A's 'wallet' and sees if there is sufficient cash to buy the diamond. If there isn't sufficient cash, then the sequence stops, if there is sufficient cash, then the sequence continues and Player A has $100 deducted and receives their diamond.
What lines of code should I be using?
Thanks for your help!
in this video i will show you how to make a command block shop