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

Triggers whenever the player picks up an item. Good for pickup feedback, pickup counters, or pickup-driven 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 picked up |
- Play a sound or shout when picking up
- Count how many items were picked up
- Inspect/alter inventory right after a pickup
- Fires for any item; if you need to tell items apart, combine the
item id/item namevalue blocks with anifblock - Fires after the item has entered the inventory
when pick up item
├── play sound "pickup"
├── change pickupCount by 1
└── talk "Picked up item x" + pickupCount
Emits the patch marker //PATCH:PickUpItem, injected into the PickUpItem() method.
Block ID: cu_when_pickup