Command with parameters to change scoreboard values

Started by Jeronimo on

Topic category: Help with modding (Java Edition)

Last seen on 16:48, 18. Sep 2020
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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!