{
  "condition": "minecraft:any_of",
  "terms": [
    {
      "condition": "minecraft:entity_properties",
      "entity": "this",
      "predicate": {
        "slots": {
          "container.*": {
            "items": "minecraft:structure_block",
            "predicates": { "custom_data": { "tool_trim_smithing_template": true } }
          }
        }
      }
    },
    {
      "condition": "minecraft:entity_properties",
      "entity": "this",
      "predicate": {
        "slots": {
          "weapon.offhand": {
            "items": "minecraft:structure_block",
            "predicates": { "custom_data": { "tool_trim_smithing_template": true } }
          }
        }
      }
    },
    {
      "condition": "minecraft:entity_properties",
      "entity": "this",
      "predicate": {
        "slots": {
          "player.cursor": {
            "items": "minecraft:structure_block",
            "predicates": { "custom_data": { "tool_trim_smithing_template": true } }
          }
        }
      }
    }
  ]
}