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.
This event is triggered when a player picks up an item with physics-based interactions.
| 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. |