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

Defines the "limb use" behavior for a specific custom item (using the item on a body part, e.g. applying a bandage to a wound). When the player uses this item on a limb, the connected blocks below run.
This is the only kind of hat block that carries a slot: it has one item slot (ITEM) that selects which item this behavior belongs to.
| Slot | Type | Description |
|---|---|---|
| ITEM | Item slot | The item this limb-use behavior is bound to. Fill with a custom item or item value block |
| Connection | Type | Description |
|---|---|---|
| Top | - | hat block, cannot connect |
| Bottom | Statement | blocks that run when the player uses this item on a limb |
- Custom bandage: restore skin/muscle health and stop bleeding on a limb
- Custom splint: mend fractures and undislocate joints
- Custom dressing: reduce infection and pain
Emits a //ITEM_LIMB_USE_ACTION:<itemID> … //END_ITEM_LIMB_USE_ACTION section that binds the code to the item's limb-use delegate.
when myBandage item limb used
├── set limb skin health 目标肢体 to limb skin health + 30
├── set limb bleed 目标肢体 to 0
└── talk "Bandaged"
Block ID: cu_define_item_limb_use