damage the player by a procedure called by a random tick on a block

Started by KillPHP on Wed, 12/30/2020 - 00:48

Topic category: Help with modding (Java Edition)

Last seen on 20:49, 19. Jan 2021
Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
damage the player by a procedure called by a random tick on a block
Wed, 12/30/2020 - 00:48

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:

https://drive.google.com/drive/folders/1YXBQcdL9QihRiJb5BGX751qVYsafwyI…

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