Stonecutting Recipe - ShaneBeee/SkBee GitHub Wiki
Stonecutting recipes allow you to create custom recipes for, wait for it.... stonecutters. (This is obviously for 1.14+)
Here is the basic Syntax:
register [new] stone cutt(ing|er) recipe for %itemtype% (using|with ingredient) %itemtype% with id %string% [in group %string%]
Let's break it down:
Registering a recipe for an item:
register [new] stone cutt(ing|er) recipe for %itemtype%
Here we are setting the item which will be the result of this recipe.
Special Note:
Recipes must be registered in a Skript load event. This is due to the fact that recipes are only sent to the player when they log onto the server. If a recipe is registered after the player joins, they will need to re-log to receive the recipe. By only using the Skript load event this ensures all recipes are only registered when the server starts up.
Setting the ingredients:
(using|with ingredient) %itemtype%
Here we are going to set the ingredient for this recipe.
Setting the ID:
with id %string%
Here we set the ID (namespace) for the recipe. This will register the recipe to the server with a specific namespace, ex:
with id "my_item"
this will register as SkRecipe:my_item
This id can be used to unlock recipes with this addon, or via Minecraft's recipe command, ie:
/minecraft:recipe give player_name SkRecipe:my_item
When unlocking a recipe via this addon, SkRecipe:
is not required, this only required when typing it into Minecraft's commands.
Setting a group:
[in group %string%]
Groups are optional. This will group multiple recipes together. When you open up your recipe book, the recipes will be stacked, when you hover over the recipe you will see the item cycling thru the available recipes, when you right click the recipe, it'll show all the available recipes in this group.
Special Note:
Minecraft currently does not have a recipe book for stone cutters so adding a group is virtually useless.
Let's bring it all together:
Setting some recipes:
on skript load:
register new stone cutting recipe for oak sapling using oak log with id "cutting_oak" in group "cutting_logs"
register new stone cutting recipe for birch sapling using oak log with id "cutting_birch" in group "cutting_logs"
register new stone cutting recipe for spruce sapling using oak log with id "cutting_spruce" in group "cutting_logs"
register new stone cutting recipe for jungle sapling using oak log with id "cutting_jungle" in group "cutting_logs"
As you can see in these examples I created 4 new recipes. They all use the same ingredient which shows you that an oak log can be cut into many different items.
Here is a visual representation of these recipes: