Unkillable Undead

Started by akisephila on

Topic category: Help with MCreator software

Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Unkillable Undead

So, I've exported my mod and everything works fine, but suddenly for whatever reason, all undead mobs can't be killed, because SOMEHOW, my mod has changed the way attacks work to only use the "instant damage" potion effect (which obviously doesnt work on undead mobs).
Why on earth has this happened? I have one weapon that applies the instant damage effect, and yet suddenly all attacks, whether with a weapon in hand (modded or vanilla) or with a bare hand, all cause the instant damage effect????
Is this simply how Mcreator's damage system works? What genius decided this should be the case?

Please help immediately. Extremely annoyed by this bug.

Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Do you have any procedures…
Thu, 04/15/2021 - 00:13

Do you have any procedures that modify damage or mob damage? 

To answer your question, no that's not how MCreator's damage works. It uses vanilla attack values and whatever custom damage systems you have added.

Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I was simply using the…
Thu, 04/15/2021 - 00:26

I was simply using the regular "When Living Entity Hit With Tool" Procedure to apply the effects. I managed to fix the issue by adding an if loop to check if the player is *actually holding the dang item*, but I really... shouldn't have had to?? The name of the default procedure already implies it would only be called when an entity is hit with that specific tool

Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yes, you always have specify…
Sun, 04/18/2021 - 02:48

Yes, you always have specify what item is being used (basically the variable). Since it wasn't specified earlier,  MCreator just decided any item was gonna do what you did in the procedure which resulted in every attack dealing instant damage potion effect.

Below is a small example of what you should always do, if I didn't add a check for the item it would have added a cooldown to every item that I right click with. The reasoning for this is because procedures are global, which means it affects everything unless you tell it not to.

example