-
Added .createNavigation override to mob, animal, and tamable mob builders
-
Added .addPartEntity parameter effectively adding part entity/multi-hitbox support
-
Added .onPartHurt function to the part entity builder
-
Added missing brain overrides for living entity/pathfinder mob/tamable mob builders
-
Added EntityJSUtils binding for various class uses
-
Removed InteractionResult binding as it's no longer needed in the .onInteract method in the builders as .onInteract needs no return value anymore
-
Changed "targetEntity" context to "entity" in .isInvulnerableTo method
- Added Tamable Mob Builder
- Added .onTamed override to new Tamable Mob Builder
- Added .tamableFood method to Tamable Mob Builder(similar to isFood method in animal builder)
- Added .tamableFoodPredicate method to Tamable Mob Builder(similar to isFoodPredicate method in animal builder)
- Added .tameOverride method to Tamable Mob Builder used to determine the uuid to set when the mob is tamed
- Changed .onInteract to a Consumer with no InteractionResult return value needed
- Added .tickDeath method override to entity builders
- Added .canBeLeashed override to entity builders
- Improved .isMoving() method in Arrow builder
- Added .isMoving() method to the arrow entity for easier calculations when the arrow is not moving
- Removed isControlledByLocalInstance override because it's a core method with travel conflicts
- Fixed travel method override to default to super if not on the entity as a mount (this also fixes the mob not being able to move when unmounted even when pathfinding)
- Improved ProbeJS typings
- Various small fixes related to textures
-
Fixed loop types not being read in triggerable animations
-
Added travel method override
-
Added .cansteer method override to allow controlling of the entity while the player mounts them
-
Added .isControlledByLocalInstance method override
-
Added .defaultDeathPose method override
-
Fixed .defaultHitGroundSoundEvent method in arrow builder where it only played the default sound on block hit
-
Added .mountJumpingEnabled boolean in builders to enable experimental jumping logic along with a custom keybinding for it
- Fixed bug where if you had an item builder with no .texture field set it makes the item texture invisible
- Added .addTriggerableAnimationController to add a triggerable animation that can be called anywhere from the entity with the new .triggerAnimation method
- Added .addTriggerableAnimation to add a triggerable animation directly from a predicate controller
- Fixed various null builder bugs such as .renderatsqrdistance ect
- Projectile/Arrow builders will now auto-create an item on startup instead of having to specify it in the builder unless the .noItem() method is used
- Fixed Arrow/Projectile item texture locations defaulting to kubejs every time even if another namespace is specified.