Recipe - Register Shaped Recipe (Section) — SkBee
Addon: SkBee · Category: Section · Since: 3.0.0
Syntax
register [a] [new] shaped recipeDescription
This section allows you to register a shaped recipe, define the shape and set ingredients. You can optionally add a group and category. **Entries**: - `id` = The ID for your recipe. This is used for recipe discovery and Minecraft's /recipe command. - `result` = The resulting item of this recipe. - `shape` = A list of strings (1 to 3 strings) which each have 1-3 characters (must be the same char count per string). These correspond to the ingredients set for these shapes. (See examples for details.) Blank spaces will just be empty spaces in a crafting grid. - `group` = Define a group to group your recipes together in the recipe book (an example would be having 3 recipes with the same outcome but a variety of ingredients) (optional). - `category` = The recipe book category your recipe will be in (optional).Options are "building", "redstone", "equipment", "misc". - `ingredients` = This section is where you will set the ingredients to correspend with your shape.
Examples
on load:
register shaped recipe:
id: "custom:fancy_stone"
result: stone named "&aFANCY STONE"
shape: "aaa", "aba", "aaa"
group: "bloop"
category: "building"
ingredients:
set ingredient of "a" to stone
set ingredient of "b" to diamond
register shaped recipe:
id: "custom:fancy_sword"
result: diamond sword of unbreaking 5 named "&bStrong Sword"
shape: "a", "a", "b"
ingredients:
set ingredient of "a" to emerald
set ingredient of "b" to stick named "DOOM"
register shaped recipe:
id: "custom:string"
result: 4 of string
shape: "a"
ingredients:
set ingredient of "a" to material choice of minecraft item tag "minecraft:wool"
register shaped recipe:
id: "custom:bee_2"
result: (skull of "MHF_Bee" parsed as offline player) named "&bMr &3Bee"
shape: "x x", " z ", "x x"
ingredients:
set ingredient of "x" to honeycomb
set ingredient of "z" to honey bottle