{
  "criteria": {
    "use_stone_hatchet": {
      "trigger": "minecraft:item_used_on_block",
      "conditions": {
        "location": [
          {
            "condition": "location_check",
            "predicate": {
              "block": {
                "blocks": "#spruce_logs"
              }
            }
          }
        ],
        "player": {
          "slots": {
            "weapon.*": {
              "predicates": {
                "custom_data": {
                  "or_tool_type": "axe"
                }
              }
            }
          }
        }
      }
    }
  },
  "requirements": [
    [
      "use_stone_hatchet"
    ]
  ],
  "rewards": {
    "function": "overly_realistic:players/items/axe_use_on_logs/player_use_axe_on_log"
  }
}