I'm making a map with money as a part of it, and I'm using the scoreboard as a bank, so I need help with some commands.
The first thing I need is a command (command+1) to make a scoreboard command:
/scoreboard players add Dollar Bank #
In a command block to go up by 1 multiple times. This is so you can multiply how much you make.
For example, before command+1:
/scoreboard players add Dollar Bank 1
/scoreboard players add Dollar Bank 2
Secondly, I need a way of checking the amount in the bank to tell me if there's enough Dollars for purchases and upgrades.
If there's not enough, play command:
/say Not Enough Dollars
If there is enough, play commands:
/scoreboard players remove Dollars Bank # /say Purchase was successful, # of dollars removed
If an upgrade, play command+1.