Shapeless Recipe Section - ShaneBeee/SkBee GitHub Wiki

Registering a shapeless recipe has never been so easy.
You may be wondering "why should I use this over the recipe effect?"
Simple answer is it makes your code much more readable, and helps understand errors a lot easier than dealing with everything in one extremely long line.

Typically you will want to put these recipes sections in an on load or on skript load event.

Format:

register shapeless recipe:
	id: <String>
	result: <ItemStack>
	group: [String]
	category: [String]
	ingredients: 
		<Section>

ID:

REQUIRED
The ID for your recipe. This is used for recipe discovery and Minecraft's /recipe command.
This needs to follow Minecraft's namespace:key format.
Namespaces may only contain lowercase alphanumeric characters, periods, underscores, and hyphens.
Namespaces are optional, if left out it will default to the namespace in the SkBee config.
Keys may only contain lowercase alphanumeric characters, periods, underscores, hyphens, and forward slashes.

Example:

id: "custom:my_fancy_recipe"

Result:

REQUIRED
The resulting item of this recipe. Global variables are accepted here.

Example:

result: diamond sword of unbreaking 3 named "Mr Swordy Sword Sword"

Group:

OPTIONAL
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).

Examples:

group: "my_custom_stuff"

Category:

OPTIONAL
The recipe book category your recipe will be in (optional) [Requires MC 1.19+].
This is the little category boxes on the left side of the recipe book GUI.
Options are "building", "redstone", "equipment", "misc".

Ingredients:

REQUIRED
This section allows you to define ingredients.
Using a simple effect you can easily create ingredients for your recipe:
add %itemstack/materialchoice% to ingredients .
You can use an ItemStack or MaterialChoice here to define the items in your recipe.

Examples:

ingredients:
    add string to ingredients
    add material choice of every wool to ingredients

Global variables are accepted here.
Yes, you CAN spawn entities in this section. I dunno why you'd want to, ask @sovdeeth about this one

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 every plank 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
⚠️ **GitHub.com Fallback** ⚠️