
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. |