CRAFTING SHAPELESS
Here is the explanation of the parameters you provided, along with the explanation for the shapeless crafting example:
type
: The type of recipe. For shapeless crafting, it should be set to"minecraft:crafting_shapeless"
.category
: The category of the recipe. It can be set to"blocks"
,"food"
, or"misc"
.key
: This section defines the materials used in the recipe. Each key corresponds to an ingredient item used in the recipe.result
: The output of the crafting recipe.item
: The item produced as a result of the recipe.count
: The quantity of the item.
In a shapeless crafting recipe, the arrangement of items on the crafting grid does not matter; they can be placed in any order. All specified ingredients in the key
section will be consumed to create the output item specified in the result
section.
Here's an example of a shapeless crafting recipe using the items "item1"
, "item2"
, and "item3"
to craft "coreextensions:item4"
:
{
"type": "minecraft:crafting_shapeless",
"category": "misc",
"ingredients": [
{ "item": "coreextensions:item1" },
{ "item": "coreextensions:item2" },
{ "item": "coreextensions:item3" }
],
"result": {
"item": "coreextensions:item4",
"count": 1
}
}
Remember to place this recipe file in the appropriate directory within your data pack as you specified earlier. This will allow the game to recognize and use your custom shapeless crafting recipe.
!The type of material to fill in should not exceed 9
Last updated