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

Registers a custom item with its ID, display name, description and sprite. Once registered, the item can be referenced from other blocks (recipes, spawning, use behaviors) through the custom item value block.
Usually placed under the when mod awakes event.
| Slot | Type | Description |
|---|---|---|
| ID | Item slot | Unique identifier of the item. Fill with a custom item value block |
| FULL_NAME | String slot (text) | Display name, default My Item
|
| DESC | String slot (text) | Description, default A description
|
| SPRITE_REF | Sprite slot | The item icon. Fill with a sprite value block |
| Connection | Type | Description |
|---|---|---|
| Top / Bottom | - | no statement connections (declaration block, not chained) |
- Register custom food, medicine, weapons, misc items
- Pair with
when item used/when item limb usedto define behavior - Pair with
register recipeto add crafting recipes
Emits item registration code that adds the item to GlobalItems.
when mod awakes
└── register item id "customSword" name "Sample Sword" desc "A test sword" sprite "sword.png"
Block ID: cu_register_item