Compatibility
Minecraft: Java Edition
1.19.2
Platforms
Supported environments
Creators
Details
Licensed MIT
Published 10 months ago
Updated 10 months ago
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. |


