what are the differences between damage types + how to ignore iframes using the "deal damage" block

Started by notduc on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
what are the differences between damage types + how to ignore iframes using the "deal damage" block
  1. Do damage types matter other than the death message?
  2. Is there a way to deal damage ignoring i-frames (when they turn red) but still have effects? (like knockback)

 


Questions regarding custom damage types:

  1. Is there a way to make it display missing hearts? (like how when a player attacks)
  2. can you make it ignore iframes?
Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Depends on how you want to…
Sun, 11/24/2024 - 22:03
  1. Depends on how you want to display them, but it's certainly possible
  2. Yes, take [entityiterator] for example, you can put the following in a custom code snippet before applying the damage: entityiterator.invulnerableTime = 0;
Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is there a way to do that…
Tue, 11/26/2024 - 04:57

Is there a way to do that without custom code? And can you make custom damage types ignore iframes?

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Technically you can avoid…
Wed, 11/27/2024 - 22:07

Technically you can avoid using custom code, but it's much simpler to just use a custom code snippet as such: https://imgur.com/JQgJpZ9
 

It should be possible to make custom damage types ignore iframes. If you detect when an entity takes damage from your custom damage source, you can set their iframe duration to 0.

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How long does it last? The…
Sun, 12/15/2024 - 19:12

How long does it last? The IFrame remover