Entity Damage Immunities don't have custom damage types

Started by Isalick34 on

Topic category: Feature requests and ideas for MCreator

Last seen on 15:36, 21. May 2024
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Entity Damage Immunities don't have custom damage types

I noticed that in the Behavior section of entities, the "Entity Immune to" section doesn't include custom damage types yet, so It would be nice if that was added.

Last seen on 03:20, 20. May 2024
Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You could use the 'On entity…
Wed, 04/24/2024 - 23:54

You could use the 'On entity hurt' global trigger, and check if damage source = custom damage AND entity type = entity type you want it to be immune to. Should it return true, cancel the event.

It could still show some effects of damage, but the not the i-frames and the entity won't be hurt overall.

Last seen on 15:36, 21. May 2024
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how do you cancel the event?
Thu, 04/25/2024 - 01:13

how do you cancel the event?

Last seen on 03:20, 20. May 2024
Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
In 'advanced procedures',…
Fri, 04/26/2024 - 12:33

In 'advanced procedures', you will find a block called 'Cancel event that triggered global trigger'. Because the block only cancels global triggers, it's why you need to use a global trigger for the procedure to work.

Last seen on 15:36, 21. May 2024
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
oh ok thanks
Fri, 04/26/2024 - 13:19

oh ok thanks

Last seen on 15:36, 21. May 2024
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This actually helps a ton…
Fri, 04/26/2024 - 13:25

This actually helps a ton because this allows me to get NBT data from an entity as it dies by canceling the event and then killing them again with the provided damage source.

Last seen on 03:20, 20. May 2024
Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
No problem!
Sat, 04/27/2024 - 04:09

No problem!