{
  "parent": "nucleus:root",
  "criteria": {
    "illegal_item": {
      "trigger": "minecraft:inventory_changed",
      "conditions": {
        "items": [
          {
            "nbt": "{nucleus:{illegal_item:1b}}"
          }
        ]
      }
    },
    "death_item": {
      "trigger": "minecraft:inventory_changed",
      "conditions": {
        "items": [
          {
            "nbt": "{nucleus:{id:\"death_item\"}}"
          }
        ]
      }
    }
  },
  "requirements": [
    [
      "illegal_item",
      "death_item"
    ]
  ],
  "rewards": {
    "function": "nucleus:item/clear_illegal_item"
  }
}
