Bug Closed · Resolved

PreventRandomEquipment option being "activated" on plugin reload

#4083 opened by Unknown 3 years ago

Unknownreported this bug

Summary

The PreventRandomEquipment triggers on every mob spawn/plugin reload, but that makes it impossible for mobs to keep the equipment they may have obtained in the meantime via equip mechanics or the like

Steps to reproduce

Try the following mobs

IAmWorking:
  Type: WITHER_SKELETON
  Equipment:
  - AIR HAND
  AIGoalSelectors:
  - clear
  AITargetSelectors:
  - clear
  Skills:
  - equip{i="diamond_sword:HAND"} @self ~onInteract
  - equip{i="shield:OFFHAND"} @self ~onInteract
IAmNot:
  Template: IAmWorking
  Options:
    PreventRandomEquipment: true

Current behavior

The option triggers during every spawn/plugin reload event

Intended correct behavior

The option triggers only when the entity spawns

Versions

  • Minecraft: 1.19.4
  • Paper: 527
  • MythicMobs: Dev Build 4516
Sign in to join the discussion.