mojira.dev
MC-147749

#minecraft:tick is not looping

i am creating a datapack and i have a very strange bug : the #minecraft:tick function is not looping every tick

in fact, i of course created the tick.json in the (data pack name)/data/minecraft/tags/functions folder, i checked syntaxe at least 20 times, but it still don't work (i am only using stuff_like_that as namespaces)

actually, when i manually run the command /function #minecraft:tick it works as i want, but its not looping

i also tried to reload, changed stuff in the load.mcfunction (and so in the load.json) but nothing to do, it doesnt work

as long as i really can't find a mess from me, and i really searched one, i suppose it is a bug

Attachments

Comments 7

[^Wool Effects [21w14+] [Data Pack].zip]

[media]

Please attach the data pack here.

by the way i also tried to put this following command :

/function #minecraft:tick

In a repeat command block, still don't work

The function is indeed being run every tick. The reason it may not appear to be working is because commands run by functions are executed at the world spawn by default. Try replacing

execute as @p run ...

with

execute as @p at @s run ...

to ensure that the command is run from the player's location.

Still doesn't work at 1.16.3

Still doesn't work at 21w14a.

I had the commands like that and it didn't work.[^Wool Effects [21w14+] [Data Pack].zip]

I also had to run the function tag manually to make it work.

Niels Cobat

(Unassigned)

Unconfirmed

Minecraft 1.13.2

Retrieved