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?

5
  • So you want to do this with a command block?
    – sorifiend
    Jun 18, 2016 at 7:45
  • Take a look at "/scoreboard players operation", more information here: minecraft.gamepedia.com/Scoreboard#Command_reference
    – RimaNari
    Jun 18, 2016 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- Jun 18, 2016 at 15:51
  • i meant /scoreboard players add @p objective -score from other objective- Jun 18, 2016 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, 2016 at 17:57

1 Answer 1

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .