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

Registers a crafting recipe: input list, output item, amount, and durability/repair parameters. Usually placed under the when mod awakes event.
| Slot | Type | Description |
|---|---|---|
| INPUTS | List slot | Recipe input items. Fill with a list block such as create list
|
| OUTPUT | Item slot | Crafted product. Fill with an item / custom item value block |
| AMOUNT | Number slot | Product amount |
| RESULT_CONDITION | Number slot | Initial durability of the crafted product |
| INGREDIENT_CONDITION | Number slot | Durability consumed from ingredients when crafting |
| IS_REPAIR | Boolean slot | Whether this is a repair recipe (the product repairs an item's durability) |
| INT | Number slot | Intelligence level required to craft |
| Connection | Type | Description |
|---|---|---|
| Top / Bottom | - | no statement connections (declaration block) |
- Add recipes for custom items
- Build repair recipes that restore an item's durability
- Gate recipes behind requirements (intelligence, ingredient durability)
Emits recipe registration code that adds the recipe to the crafting table.
when mod awakes
└── recipe [create list: plank ×3] → output woodenTable amount 1 cond 100 ing cond 0 repair false int 1
Block ID: cu_register_recipe