Custom potion effects didn't work on boss-type entity

Started by BBBOY on

Topic category: Help with MCreator software

Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Custom potion effects didn't work on boss-type entity

I made a weapon enchantment that applies a custom potion effect to a target entity, but it doesn't work on boss-type entity (wither and ender dragon). Is there any way to make it work?

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If you're using the 'item in…
Tue, 01/02/2024 - 12:40

If you're using the 'item in main hand' or 'item in inventory tick' trigger, it's possible it's only targeting players holding the item. Try making a procedure that triggers on entity update tick, (not player update tick), checks if the item in the main hand of the event/target entity has your custom enchantment, and, if it does, apply the potion effect. (Also double check your entity doesn't have potion immunity turned on- it's also possible enabling a boss bar turns this on by default, in which case you might have to remove it manually.)