skylinerw / guides

Creative Commons Attribution 4.0 International
166 stars 29 forks source link

Possible to require multiple items but more efficient? #28

Open lajawi opened 2 years ago

lajawi commented 2 years ago
{
    "type": "minecraft:crafting_shapeless",
    "ingredients": [
        {
            "item": "minecraft:stone"
        },
        {
            "item": "minecraft:coal"
        }
    ],
    "result": {
        "item": "minecraft:coal_ore",
        "count": 1
    }
}

I'm making some custom recipes, and was wondering whether it is possible to make one item be required more than one of but without duplicating it in the file? In this recipe I want minecraft:coal be included at least 2 times, but the only way I know of currently is by adding coal two times like this:

{
  "item": "minecraft:coal"
},
{
  "item": "minecraft:coal"
}

Is there any way I can do this more efficient (maybe something like count like for the result), e.g. like this:


{
  "item": "minecraft:coal",
  "count": 2
}