-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
None
-
None
-
This server is running CraftBukkit version 3169-Spigot-a483d2c-07ed44a (MC: 1.17) (Implementing API version 1.17-R0.1-SNAPSHOT)
-
Yes
Currently the reason will return as UNKNOWN/DEFAULT as the new reason hasn't been implemented. Vanilla mechanic is that skeletons freeze and convert to strays.
Suggestion as to API/implementation. No commit credit is necessary as the code suggested is extremely generic, just wanting the change implemented.
In EntityTransformEvent.
/**
- When an entity freezes in powder snow and a new entity spawns.
*/
FREEZE,
In CreatureSpawnEvent.
/**
- When a creature is spawned by another entity freezing.
*/
FREEZE,
For implementation. In EntitySkeleton, around Line 89.
this.a(EntityTypes.STRAY, true, EntityTransformEvent.TransformReason.FREEZE, CreatureSpawnEvent.SpawnReason.FREEZE);