Skip to content

cu_define_item_limb_use en

mouse114514 edited this page Sep 12, 2026 · 1 revision

When Item Limb Used

When Item Limb Used

Overview

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.

Slots

Slot Type Description
ITEM Item slot The item this limb-use behavior is bound to. Fill with a custom item or item value block

Connections

Connection Type Description
Top - hat block, cannot connect
Bottom Statement blocks that run when the player uses this item on a limb

Typical Uses

  • 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

Generated Code

Emits a //ITEM_LIMB_USE_ACTION:<itemID> … //END_ITEM_LIMB_USE_ACTION section that binds the code to the item's limb-use delegate.

Example

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


中文 | Event Blocks | Block Reference

Clone this wiki locally