How to take away damage immunity

Started by Natn8r on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to take away damage immunity

Hello, I have made a guns mod for Minecraft and I noticed that after you shoot an entity it gains immunity for 0.5 seconds then it can be hit again. I was wondering if there was a way to take it away like in this mod: 

https://www.curseforge.com/minecraft/mc-mods/nodami
I don't care if it takes manual coding as I know Java and just want to know how to do it. Thanks!

-Natn8r

Joined Dec 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hi, did you figure it out…
Tue, 12/21/2021 - 18:31

Hi, did you figure it out already? I am having the same problem. Thanks