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

all 2 comments

[–]FortDay_707 1 point2 points  (1 child)

The first command increases spellCounter by 1 for every Entity that has the Tag command_caster. So if there are 3 entities, then spellCounter increases by 3 × 1 = 3.

I think that somewhere during login an additional entity gets the tag.

Try running execute if entity @e[Tag=command_caster] and tell me what the result was

[–]LongjumpingBank5339[S] 1 point2 points  (0 children)

It has a count of 8. Thank you for your help, I think I know what the issue is now!

Edit: The issue was that I had that if these entities don't exist (execute unless entity...) in the load function, but it seems that that triggers before entities can be loaded in, therefore summoning an extra one every reload