Compact Crafting

Compact Crafting

9M Downloads

[Request] Clarification on recipes

aaronhowser1 opened this issue ยท 3 comments

commented
{
  "type": "compactcrafting:miniaturization",
  [["recipeSize": 0,]]
  "layers": [ ],
  "catalyst": { },
  "components": { },
  "outputs": [ ]
}

Is recipeSize supposed to be in two layers of brackets? Doesn't that make it an invalid json?

Can you put a completed recipe json somewhere? Here's what I have so far, and it isn't working:

{
        "type": "compactcrafting:miniaturization",
        "recipeSize": 1,
        "layers": [
            {
                "type":"compactcrafting:filled",
                "component": "R"
            },{
                "type":"compactcrafting:filled",
                "component": "I"
            }
        ],
        "catalyst": {
            "id":"minecraft:redstone",
            "Count":1
        },
        "components": {
            "R": {
                "type":"compactcrafting:block",
                "block":"compactmachines:redstone_wire"
            },
            "I": {
                "type":"compactcrafting:block",
                "block":"minecraft:iron_block"
            }
        },
        "outputs": {
            "id":"compactmachines:wall",
            "Count":16
        }
    }

I thought it could be because redstone_wire is the block id, but this doesn't work either:

{
        "type": "compactcrafting:miniaturization",
        "recipeSize": 3,
        "layers": [
            {
                "type":"compactcrafting:filled",
                "component": "W"
            },
            {
                "type":"compactcrafting:mixed",
                "pattern": [
                    ["W","W","W"],
                    ["W","P","W"],
                    ["W","W","W"]
                ]
            },{
                "type":"compactcrafting:filled",
                "component": "W"
            }
        ],
        "catalyst": {
            "id":"minecraft:ender_pearl",
            "Count":1
        },
        "components": {
            "W": {
                "type":"compactcrafting:block",
                "block":"compactmachines:wall"
            },
            "P": {
                "type":"compactcrafting:block",
                "block":"minecraft:oak_planks"
            }
        },
        "outputs": {
            "id":"compactmachines:machine_tiny",
            "Count":1
        }
    }
commented

You can find complete recipe examples in this repo. Also, later versions of Compact Crafting will have a command to generate recipe JSONs for you. However, this is only available in dev builds at the moment which you can find in the Discord.

commented

The [[ and ]] bracket is meant to signify it is optional, although I agree it is confusing.

commented

I would remove the double brackets, personally. It says it's optional in the paragraphs below.

Also, I figured out my issue! I didn't have the outputs as an array.