Create a command to pay through scoreboard

Started by GoldenRagnar on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Create a command to pay through scoreboard
Fri, 01/08/2021 - 18:21 (edited)

Hi. I'm trying to do some economy system.

I would like to make a command that makes you pay the amount of money you write to the player you write, something like "/pay 10 PlayerName"

I created a scoreboard named "balance".

My idea is to make a control (if your balance doesn't have 10, you can't pay), then remove the amount you wrote (10 in this case) from your scoreboard to add it to the player you wrote in the command (PlayerName).

I don't know if it's possible in this app.

Thanks for your time.

Edited by GoldenRagnar on Fri, 01/08/2021 - 18:21