#tick.mcfunction problem in datapack

1 messages · Page 1 of 1 (latest)

floral falcon
#

i am doing a minigame where a want a function to run when the player has the "blueflag" tag and has a score of 1 in death so i added this command in tick.mcfunction: "execute at @a[tag=blueflag] if score @s death matches 1 run say i am working" so it always checks if a player meet these requierement but nothing happens (other commands in tick.mcfunction work), i tried to run the command by my self in game making sure a had the tag and died once and it worked...

sorry for my bad english i am french

vital burrow
#

You need to use “as”, not “at” if you want to run a condition as the player with the tag

floral falcon
#

But it worked when I used it in game tho

vital burrow
#

Of course it worked, when you run a command in game it’s implied to be in tue context of the player running the command. It just means that you had the score and probably the tag as well, you were not checking other players for that score

#

Tick on the other hand run from a “global” context