#just following a 1.21 pack tutorial but tick isnt working
1 messages · Page 1 of 1 (latest)
@s refers to the executing entity of a command. Running a function every tick by adding it to the tick function tag will not execute it as any entity.
if you want permanent effects just give it with the infinite modifier, rather than giving people the effect for 1 second 20 times per second.
isnt @s short for @self
and how do I add it to my datapack?
Your player is not the server
Tick runs as the server
Put the command in a command block and you run as the command block. Not as yourself
@s is @self, but what self is depends on where the command is called from
this what we use the execute command for. It can change who/what or where in the world a command should execute.
you have to use execute command and make server run in perspective of the client
also u can just apply infinite duration in load
and detect if this effect is cleared, if the player doesnt have this effect, reapply it.
It's single player tho?
Doesn't matter. Running a commands with a function inside of the tick tag will not run commands as any entity