OwnerAttack / OwnerTarget Disappears bug
Summary
The moment you create a mob that has the AITargetSelectors "OwnerAttacker" and/or "OwnerTarget", and the mob has an owner, and its owner attacks or is attacked, the mob will disappear.
MC Version: 1.21.8 Server: Paper MM Version: 5.10.0 Premium: No Java: 21
Steps to reproduce
Disappears when owned (Most of the time)
- Create a mob with AITargetSelectors "OwnerAttacker" and/or "OwnerTarget".
- Create a Skill "TestSkillOwner" that works "~onInteract" with "@Trigger".
- The Skill should place the Trigger as its owner with the Skill "-setowner".
- The owner must attack or be attacked, the mob will disappear and throw a console error. Or the mob will disappear once it gets an owner..
Disappears when owned (Only when the owner takes damage by entity or the owner attacks another entity)
- Create a mob. (MOB https://pastebin.com/6jrQpn62) (SKILLS https://pastebin.com/9mifVez6)
- Create a Skill "TestSkillOwner" that works "~onInteract" with "@Trigger".
- The Skill should place the Trigger as its owner with the Skill "-setowner".
- Create a Skill "TestSkill" que funcione hacia él mismo cada 100 ticks.
- The Skill will only work if the mob caster has an owner.
- The Skill will use the "runaitargetselector" mechanic and will place clear, attacker, OwnerAttacker, OwnerTarget.
- The owner must attack or be attacked, the mob will disappear and throw a console error.
Current behavior
The mob disappears.
Intended correct behavior
The mob attacks the attacked entity or Owner's attacker.
Server log file
Edited by Roaoming Roesink