mojira.dev
MC-264008

Conflict in datapack recipes that use the same ingredients but have different shape

Context:

I have a datapack with these 2 recipes:

```
{
    "type": "minecraft:crafting_shaped",
    "pattern": [
        "#W",
        "#W"
    ],
    "key": {
        "#": {
            "item": "minecraft:potato"
        },
        "W": {
            "item": "minecraft:wheat"
        }
    },
    "result": {
        "item": "minecraft:porkchop",
        "count": 1
    }
}
```
and

```
{
    "type": "minecraft:crafting_shaped",
    "pattern": [
        "#P",
        "#P"
    ],
    "key": {
        "#": {
            "item": "minecraft:wheat"
        },
        "P": {
            "item": "minecraft:potato"
        }
    },
    "result": {
        "item": "minecraft:beef",
        "count": 1
    }
}
```
 
When testing in game, both ingredient arrangements output a porkchop (see attachments), despite the fact that one of them should output beef.

Attachments

Comments 4

Recipes can be horizontally mirrored. They are both actually the same. Not a bug.

Oh, I didn't know about that. Thanks.

This can be closed then.

"crafting_shaped" implies this is a unique shape. A new type that most recipes default to should be crafting_shaped_mirrored_x (and a crafting_shaped_mirrored_y wouldn't hurt) since this affects user-created things in a way you cannot avoid.

That would be a change/feature request, not a bug. Shaped recipes have always worked this way.

daenvil

(Unassigned)

Unconfirmed

(Unassigned)

1.20.1

Retrieved