{
  "criteria": {
    "break_custom_block": {
      "trigger": "minecraft:player_hurt_entity",
      "conditions": {
        "entity": {
          "type": "interaction",
          "nbt": "{Tags:[\"OverlyRealistic.Block.CavePainting\"]}"
        },
        "player": [
          {
            "condition": "inverted",
            "term": {
              "condition": "entity_properties",
              "entity": "this",
              "predicate": {
                "slots": {
                  "weapon.mainhand": {
                    "items": "#spears"
                  }
                }
              }
            }
          }
        ]
      }
    }
  },
  "requirements": [
    [
      "break_custom_block"
    ]
  ],
  "rewards": {
    "function": "overly_realistic:general/custom_blocks/cave_painting/per_block_interaction/break_block"
  }
}