How to make an explosion immune armor?

Started by VolcanoBoy on

Topic category: Help with modding (Java Edition)

Last seen on 05:53, 24. Apr 2024
Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make an explosion immune armor?

I want make an armor, if wear, when player is immune the explosions. i use 2021.3

Last seen on 01:39, 22. Apr 2024
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The full solution is bugged…
Sat, 03/09/2024 - 08:16

The full solution is bugged right now and will not work (at least for me), but here is the code regardless:



You will want to create a new procedure and recreate this exact setup, but replace the iron armor I used with your own armor pieces.

I'm not sure why the 'explosion' damage source didn't work for me, but if I set to something else like 'fall' for example, it works perfectly when falling off a 100 block cliff.

* If you experience the same issue as I did, I would recommend reporting this as a bug so the explosion damage type can be fixed in the future. *