Skip to content

Crafting

How to play

  • /craft — open the crafting window.
  • /learnrecipe <recipeId> — teach a recipe to the player (recipes must be unlocked before use).
  • /docraft <recipeId> [count] — craft directly without the window.

RecipeRegistry is loaded from YAML at startup. Recipe unlocking is per-player state.

Configuration

data/config/recipes.yaml (bundled default resources/config/recipes.yaml):

COBBLESTONE_BRICK:
  giveType: block          # block | item
  giveId: COBBLESTONE
  giveAmount: 4
  items: ["COBBLESTONE*2", "GRAVEL*1"]   # TYPE*count inputs

Schema: recipes.schema.json. Reload with /reload.

Recipes

Defined in data/config/recipes.yaml. items are TYPE*count inputs; unlock a recipe with /learnrecipe, craft with /craft or /docraft.

Recipe Inputs Output
COBBLESTONE_BRICK COBBLESTONE2, GRAVEL1 4× block COBBLESTONE
DIRT_PILE GRAVEL2, SAND1 2× item DIRT