Dealing damage after a while

Started by _YurkA on

Topic category: Help with modding (Java Edition)

Last seen on 08:11, 11. Sep 2024
Joined Feb 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Dealing damage after a while

How to deal damage to a player when he is holding an item in his hand?

 

I mean that I have a tool that after a certain time should cause damage to the player using it.

 

I tried to do this through the wait procedure block, but when I removed the item from my hand, it continued to damage me.

 

(And sorry for grammar, i used a  google translator