0

I am making a game where a player has a score that goes up every second by a different stat. That stat is their score on a specific scoreboard. How do I do this?

For Example, If their score for the stat is 26, every second a their other score goes up by 26

Thanks

P.S. Also, can I make that score be the name for an armor stand?

  • So you want to do this with a command block? – sorifiend Jun 18 '16 at 7:45
  • Take a look at "/scoreboard players operation", more information here: minecraft.gamepedia.com/Scoreboard#Command_reference – RimaNari Jun 18 '16 at 14:32
  • yeah, a command block. And i get how to use scoreboard, i just dont know the syntax for something like /scoreboard players add objective -score from other objective- – ShurikenNinja95 Jun 18 '16 at 15:51
  • i meant /scoreboard players add @p objective -score from other objective- – ShurikenNinja95 Jun 18 '16 at 18:00
  • @ShurikenNinja95 Just to clarify: I mentioned "/scoreboard players operation " explicitly in the comment to nudge you in the right direction. – RimaNari Jun 19 '16 at 17:57
0

For Example, If their score for the stat is 26, every second a their other score goes up by 26

I'll use MainScore for "their other score", and Increment for "score for the stat".


The command you want is:

/execute @a ~ ~ ~ /scoreboard players operation @a[c=1] MainScore += @a[c=1] Increment

This makes each player add their Increment to their MainScore.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.