mojira.dev
MC-118115

weird behavior with HurtTime tag with scoreboard tags in functions

This command ran in a simple repeating commandblock works just fine, but when tried to be run in a function simply does not work:
scoreboard players tag @e[tag=Clicker] add lClick {HurtTime:10s}

Note: the entities with the tag "Clicker" are villagers.

Linked issues

Comments 3

Are you running this function as gameLoopFunction, if so this is a duplicate of MC-117360.

hold on...
but when I use it with commandblocks it it gets tag only when the player punches it but when modified to 9s in the function it starts working, but the only issue is the suffocaton damage is adding the tag too... any clue?

That's processing order are you shouldn't rely on that, ever.

Marcus Rost Leonard

(Unassigned)

Unconfirmed

Minecraft 1.12 Pre-Release 7

Retrieved