Skip to content

cu_register_recipe en

mouse114514 edited this page Sep 12, 2026 · 1 revision

Register Recipe

Register Recipe

Overview

Registers a crafting recipe: input list, output item, amount, and durability/repair parameters. Usually placed under the when mod awakes event.

Slots

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

Connections

Connection Type Description
Top / Bottom - no statement connections (declaration block)

Typical Uses

  • Add recipes for custom items
  • Build repair recipes that restore an item's durability
  • Gate recipes behind requirements (intelligence, ingredient durability)

Generated Code

Emits recipe registration code that adds the recipe to the crafting table.

Example

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


中文 | Registration Blocks | Block Reference

Clone this wiki locally