Skip to content
Success

Changes

Summary

  1. Paper-only event `skeleton horse trap` and `EntityTrapped` properties for `SkeletonHorse`s (#2446) (commit: 5ea2989) (details)
Commit 5ea298963d7e2e268ef6ef7900f72c84baaabb98 by noreply
Paper-only event `skeleton horse trap` and `EntityTrapped` properties for `SkeletonHorse`s (#2446)

* `EntityTrapped` property for SkeletonHorses

* Paper only event `skeleton horse trap`

Also use updated `instanceof` syntax for `EntityTrapped`

* Update NMS Version

Property does not work in 1.17.1

* Move `trap_time` to its own property: `EntityTrapTime`

* Update `getPropertyString()` and remove redundant checks

Also cast the trap time to a long, because `getTrapTime()` returns the time in ticks, not seconds, so the times would be WAAAYYY off haha.
(commit: 5ea2989)
The file was addedpaper/src/main/java/com/denizenscript/denizen/paper/events/SkeletonHorseTrapScriptEvent.java
The file was modifiedpaper/src/main/java/com/denizenscript/denizen/paper/PaperModule.java
The file was modifiedplugin/src/main/java/com/denizenscript/denizen/objects/properties/PropertyRegistry.java
The file was addedplugin/src/main/java/com/denizenscript/denizen/objects/properties/entity/EntityTrapped.java
The file was addedplugin/src/main/java/com/denizenscript/denizen/objects/properties/entity/EntityTrapTime.java