{
  "criteria": {
    "place_leaf_trap": {
      "trigger": "minecraft:item_used_on_block",
      "conditions": {
        "player": {
          "slots": {
            "weapon.*": {
              "components": {
                "minecraft:custom_data": {
                  "IsLeafTrap": true
                }
              }
            }
          }
        }
      }
    }
  },
  "requirements": [
    [
      "place_leaf_trap"
    ]
  ],
  "rewards": {
    "function": "overly_realistic:general/leaf_traps/leaf_trap_place"
  }
}