Recipe - Crafting Recipe (Effect) — SkBee

Addon: SkBee · Category: Effect · Since: 1.0.0

Syntax

register [new] (shaped|shapeless) recipe for %itemtype% (using|with ingredients) %itemtypes/recipechoices% with id %string% [in group %-string%]

Description

Register a new shaped/shapeless recipe for a specific item using custom ingredients. Recipes support items and material choices for ingredients. Material choices allow you to use Minecraft tags or lists of items. The ID will be the name given to this recipe. IDs may only contain letters, numbers, periods, hyphens, a single colon and underscores, NOT SPACES!!! By default, if no namespace is provided, recipes will start with the namespace "minecraft:", this can be changed in the config to whatever you want. IDs are used for recipe discovery/unlocking recipes for players. You may also include an optional group for recipes. These will group the recipes together in the recipe book. <b>NOTE:</b> Recipes with 4 or less ingredients will be craftable in the player's crafting grid.

Examples

on load:
	register new shaped recipe for elytra using air, iron chestplate, air, air, iron chestplate and air with id "my_recipes:elytra"
	set {_s} to emerald named "&3Strong Emerald"
	register new shaped recipe for {_s} using emerald, emerald, air, emerald, emerald and air with id "strong_emerald"
	register new shaped recipe for diamond chestplate named "&3Strong Emerald Chestplate" using {_s}, air, {_s}, {_s}, {_s}, {_s}, {_s}, {_s} and {_s} with id "strong_emerald_chestplate"

	set {_a} to material choice of every plank
	register new shaped recipe for jigsaw block using {_a}, {_a}, {_a}, {_a}, {_a}, {_a}, {_a}, {_a} and {_a} with id "jigsaw"

View source