Easy Anvils [Forge & Fabric]

Easy Anvils [Forge & Fabric]

22M Downloads

[Bug]: Can't trigger "Item used on block" advancement whern trying to repair an anvil

Disketaa opened this issue ยท 0 comments

commented

Mod Loader (Required)

Fabric

Minecraft Version(s) (Required)

1.21.1

Mod Version(s) (Required)

21.1.0

Other Mods Involved (Required)

Yes

Notes (Required)

Can't trigger my advancement using "Wax on" reference:
(The trigger should happen when you use iron block on a damaged anvil)

{
  "display": {
    "icon": {
      "id": "minecraft:damaged_anvil"
    },
    "title": {
      "translate": "advancements.story.repair_anvil.title"
    },
    "description": {
      "translate": "advancements.story.repair_anvil.description"
    }
  },
  "parent": "minecraft:story/obtain_anvil",
  "criteria": {
    "repair_anvil": {
      "trigger": "minecraft:item_used_on_block",
      "conditions": {
        "location": [
          {
            "condition": "minecraft:location_check",
            "predicate": {
              "block": {
                "blocks": [
                  "minecraft:chipped_anvil",
                  "minecraft:damaged_anvil"
                ]
              }
            }
          },
          {
            "condition": "minecraft:match_tool",
            "predicate": {
              "items": "minecraft:iron_block"
            }
          }
        ]
      }
    }
  },
  "requirements": [
    [
      "repair_anvil"
    ]
  ]
}

latest.log (Required)

not a crash