Copper Hopper

Copper Hopper

99.3k Downloads

Copper Hopper and Minecart lack recipe advancements

anoomolu opened this issue ยท 0 comments

commented

Hiya! I play with the recipe book enabled, and noticed that the above recipes don't unlock when obtaining a Hopper and Minecart respectively (at least on 1.20.1). The below can be placed in a json in data/advancements/recipes/ to get this working:

{
  "parent": "minecraft:recipes/root",
  "criteria": {
    "has_item": {
      "conditions": {
        "items": [
          {
            "items": [
              "minecraft:hopper"
            ]
          }
        ]
      },
      "trigger": "minecraft:inventory_changed"
    },
    "has_the_recipe": {
      "conditions": {
        "recipe": "copperhopper:copper_hopper"
      },
      "trigger": "minecraft:recipe_unlocked"
    }
  },
  "requirements": [
    [
      "has_item",
      "has_the_recipe"
    ]
  ],
  "rewards": {
    "recipes": [
      "copperhopper:copper_hopper"
    ]
  },
  "sends_telemetry_event": false
}

Replace the hopper with a minecart and copper_hopper with copper_hopper_minecart and the other recipe should work fine. Thanks for yet another lovely mod!