Command with parameters to change scoreboard values

Started by Jeronimo on

Topic category: Help with Minecraft modding (Java Edition)

Active 4 years ago
Joined Jul 2020
Points:
636

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 6
Command with parameters to change scoreboard values

Hi,

is it possible to create a command with syntax "/command PLAYER SCORE" which execute /scoreboard players set(|add|remove) <PLAYER> objective <SCORE>‌ ? Where PLAYER and SCORE are parameters. I think therefor i must use "command parameter with index X" but I don't know how to set PLAYER and SCORE as a such parameter.

If so, how exactly should the procedure looks like.

Thanks in advance!