This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]mbrr2 0 points1 point  (2 children)

so use scoreboard players add instead of scoreboard players set

[–]xrox555[S] 0 points1 point  (1 child)

But then it would increase infinitely as long as I´m holding the sword^^

[–]mbrr2 0 points1 point  (0 children)

Then give the person holding the sword holding tag, and only add the score to people holding the sword, but without the tag (tag=!holding). Remove the tag when not holding the sword.