Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible to require multiple items but more efficient? #28

Open
lajawi opened this issue Mar 16, 2022 · 0 comments
Open

Possible to require multiple items but more efficient? #28

lajawi opened this issue Mar 16, 2022 · 0 comments

Comments

@lajawi
Copy link

lajawi commented Mar 16, 2022

{
    "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
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant