-
Notifications
You must be signed in to change notification settings - Fork 0
cu_when_drop en
mouse114514 edited this page Sep 12, 2026
·
1 revision

Triggers whenever the player drops an item. Good for drop feedback, drop counters, or drop handling logic.
This is a hat block: it must be placed at the top of a script.
This block has no parameter slots.
| Connection | Type | Description |
|---|---|---|
| Top | - | hat block, cannot connect |
| Bottom | Statement | connected blocks run when an item is dropped |
- Play a sound or shout when dropping
- Count how many items were dropped
- Warn or react before dropping high-risk items
- Fires for any item; combine
item idwith anifblock to tell items apart - Fires after the item has left the inventory
when drop item
├── play sound "drop"
├── change dropCount by 1
└── talk "Dropped an item"
Emits the patch marker //PATCH:DropItem, injected into the DropItem() method.
Block ID: cu_when_drop