90% of ad revenue goes to creators. Go ad-free while supporting creators with Modrinth Plus. Subscribe today!
Changelog
New Features
- Added
setMoveControl
,setLookControl
, andsetJumpControl
methods to mob builders.
These methods allow custom control over entity movement, looking behavior, and jumping behavior through provided function implementations. - Added custom LookControl, MoveControl, and JumpControl builders via
EntityJSUtils
binding.
These builders can be called using:EntityJSUtils.createLookControl()
EntityJSUtils.createMoveControl()
EntityJSUtils.createJumpControl()
Bug Fixes
- Fixed PathNavigation method: Improved the flexibility and handling of custom path navigation logic for entities.
- Removed shadowed fields from certain mobs: Cleaned up duplicated or shadowed fields to prevent unintended behavior in mob logic.
- Fixed various mob interaction methods (
mobInteract
): Adjusted interaction methods to properly default to thesuper
implementation when needed. - Added missing
mobInteract
methods in some vanilla builders: Ensured proper implementation of interaction methods in vanilla entity builders. createNavigation
now callssuper
in vanilla builders: Ensures the defaultsuper
method is used when nocreateNavigation
method is provided in the builder.
Dependencies
Files
entityjs-1.1.0-1.21.jar(2.02 MiB) Primary Download
Details
Licensed GPL-3.0-only
Published 10 months ago
Updated a month ago