Suggestion Closed · Implemented

Plugin integration - EntityRegainHealthEvent not called on Mythic mob healing

#6568 opened by Unknown 1 year ago

Unknownreported this suggestion

Hello, I'm working on integrating my plugin HealthBar-Reloaded with MythicMobs and I've run into a small issue with the "heal" skill. When the Mythic mob is healed, the EntityRegainHealthEvent is not fired. This prevents my plugin (and any others) from detecting the health change due to the skill and updating it correctly. Would it be possible to have this event triggered whenever a mob regains health?

Minecraft: 1.21.4 / MythicMobs (free) version: 5.9.5

ExampleMobs.yml configuration:

SkeletonKing:
  Type: WITHER_SKELETON
  Display: '&6Skeleton King'
  Health: 20
  Damage: 1
  Skills:
  - skill{s=SummonSkeletons} @self 0.1
  - heal{amount=50} @self ~onDamaged <50%
  Equipment:
  - IRON_HELMET HEAD
  Drops:
  - GOLD_NUGGET{display="Gold Coin"} 1to2 0.5
  Options:
    AlwaysShowName: true
    MovementSpeed: 0.2
    MaxCombatDistance: 25
    PreventOtherDrops: true

Mythic mob spawned with: /mythicmobs mobs spawn SkeletonKing

Unknowncommented

@DavideBlade dev build 5504 now also calls that event in addition to our own MythicHealMechanicEvent. Let us know if there is any issue!

Sign in to join the discussion.