Disable player damage for a specific time

Started by craftXplorer on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Disable player damage for a specific time

I'm trying to make an item that gives you full hearts if you are under 5 hearts and if you're not, you should be invulnerable for like 2 minutes. How do I do this?
Hers's my previous procedure:

https://cdn.discordapp.com/attachments/1121961057766879344/119499125290…

Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Instead of cancel event try…
Wed, 01/17/2024 - 21:30

Instead of cancel event try using the same disable damage block but set to false (hope it works :3)