-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Minor
-
None
-
Affects Version/s: None
-
None
-
4514-Spigot-d5ca3f8-a720008 (MC: 1.21.6) (Implementing API version 1.21.6-R0.1-SNAPSHOT)
-
N/A
-
Yes
Updating a Skeleton's main-hand, through API or through vanilla commands, fails to update their weapon goals resulting in them becoming 'passive' or maintaining a melee goal when they should prefer a ranged attack goal.
Steps to reproduce:
- Summon a skeleton (`/summon skeleton`)
- Replace their main-hand weapon via command (`/item replace entity @n[type=skeleton] weapon with iron_sword`
- If not already; enter survival mode to allow the skeleton to be aggressive.
- The skeleton should become passive and will no longer target you.
Note: this does also work with a skeleton summoned with a sword or no item in their hand and replacing the item with a bow; in this instance the skeleton remains hostile and will just beat you with the bow instead of shooting it.