How do i make something deal damage to you while in your inventory?

Started by Evansomething on

Topic category: Help with modding (Java Edition)

Last seen on 19:43, 11. Sep 2024
Joined Jun 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do i make something deal damage to you while in your inventory?

I wanna make it do damage and ive been trying at this for a bit and i want it to deal damage to you while its in your inventory unless you have a curio bauble that prevents it from hurting you?

 

Last seen on 19:15, 14. Sep 2024
Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This should help (The 60 is…
Mon, 09/02/2024 - 07:08

This should help

The procedure

(The 60 is the time between damage in ticks. 60 ticks is 3 seconds, so increase/decrease that to speed up/down the damage)

Put this procedure in the "When item in inventory tick"