KubeJS Item Physics
KubeJS Item Physics is an addon for KubeJS that enhances item interactions by introducing physics-based events. This allows modders to script custom behaviors when players pick up items, enabling more dynamic and immersive mechanics.
Features
- ๐ฎ Physics-Based Item Pickup Events โ Modify how items are collected based on scripted interactions.
- ๐ง KubeJS Event Integration โ Use JavaScript to define custom physics behaviors.
- ๐ ๏ธ Access to Player, Hand, and Item Data โ Retrieve essential information for precise control over item interactions.
Available Event
`KubeJSItemPhysics.playerPhysicsPickupEvent(event =>
This event is triggered when a player picks up an item with physics-based interactions.
Event Methods
| Method |
Description |
event.getEntity() |
Returns the PlayerEntity who picked up the item. |
event.getHand() |
Returns the Hand used to pick up the item. |
event.getItem() |
Returns the ItemEntity being picked up. |