Topic category: Help with modding (Java Edition)
basically i made a timer associated with the fact that the player is or is not close to the special block, when that timer exceeds a certain value, i want the player to take damage 1 time, enough to kill, but it is not working.
Link to procedures images:
the trigger to start these procedures is "Client display random tick", the first procedure is the timer, which calls the procedures that assign value to the global timer variables, which in turn call a procedure that checks with an "if" if the player must be killed, all work correctly, except for the procedure block responsible for killing the player, which has no effect.
I already tried to replace it with command execution, but it also didn't work.
The images of all the procedures mentioned are in the link, the most important is "StoredTime.png" where the player is killed. The others were added for context