Recipe - Register Shapeless Recipe (Section) — SkBee

Addon: SkBee · Category: Section · Since: 3.0.0

Syntax

register [a] [new] shapeless recipe

Description

This section allows you to register a shapeless recipe and add ingredients. **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. - `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", "equiptment", "misc". - `ingredients` = This section is where you will add the ingredients.

Examples

on load:
	register shapeless recipe:
		id: "custom:string"
		result: 4 string
		ingredients:
			add material choice of every wool to ingredients

	register shapeless recipe:
		id: "custom:totem_of_undying"
		result: totem of undying
		group: "custom tools"
		category: "redstone"
		ingredients:
			add diamond block to ingredients
			add material choice of minecraft item tag "minecraft:planks" to ingredients
			add emerald block to ingredients
			add end rod to ingredients
			add wither skeleton skull to ingredients

	register shapeless recipe:
		id: "custom:end_rod"
		result: end rod
		group: "custom tools"
		category: "redstone"
		ingredients:
			add diamond block to ingredients
			add emerald block to ingredients

View source