{
  "parent": "nucleus:root",
  "criteria": {
    "helmet": {
      "trigger": "minecraft:inventory_changed",
      "conditions": {
        "player": [
          {
            "condition": "minecraft:entity_properties",
            "entity": "this",
            "predicate": {
              "equipment": {
                "head": {
                  "items": [
                    "minecraft:leather_helmet",
                    "minecraft:diamond_helmet",
                    "minecraft:netherite_helmet"
                  ]
                }
              }
            }
          },
          {
            "condition": "minecraft:inverted",
            "term": {
              "condition": "minecraft:entity_properties",
              "entity": "this",
              "predicate": {
                "nbt": "{Tags:[\"nucleus.player.has_helmet\"]}"
              }
            }
          }
        ]
      }
    },
    "chestplate": {
      "trigger": "minecraft:inventory_changed",
      "conditions": {
        "player": [
          {
            "condition": "minecraft:entity_properties",
            "entity": "this",
            "predicate": {
              "equipment": {
                "chest": {
                  "items": [
                    "minecraft:leather_chestplate",
                    "minecraft:diamond_chestplate",
                    "minecraft:netherite_chestplate"
                  ]
                }
              }
            }
          },
          {
            "condition": "minecraft:inverted",
            "term": {
              "condition": "minecraft:entity_properties",
              "entity": "this",
              "predicate": {
                "nbt": "{Tags:[\"nucleus.player.has_chestplate\"]}"
              }
            }
          }
        ]
      }
    },
    "leggings": {
      "trigger": "minecraft:inventory_changed",
      "conditions": {
        "player": [
          {
            "condition": "minecraft:entity_properties",
            "entity": "this",
            "predicate": {
              "equipment": {
                "legs": {
                  "items": [
                    "minecraft:leather_leggings",
                    "minecraft:diamond_leggings",
                    "minecraft:netherite_leggings"
                  ]
                }
              }
            }
          },
          {
            "condition": "minecraft:inverted",
            "term": {
              "condition": "minecraft:entity_properties",
              "entity": "this",
              "predicate": {
                "nbt": "{Tags:[\"nucleus.player.has_leggings\"]}"
              }
            }
          }
        ]
      }
    },
    "boots": {
      "trigger": "minecraft:inventory_changed",
      "conditions": {
        "player": [
          {
            "condition": "minecraft:entity_properties",
            "entity": "this",
            "predicate": {
              "equipment": {
                "feet": {
                  "items": [
                    "minecraft:leather_boots",
                    "minecraft:diamond_boots",
                    "minecraft:netherite_boots"
                  ]
                }
              }
            }
          },
          {
            "condition": "minecraft:inverted",
            "term": {
              "condition": "minecraft:entity_properties",
              "entity": "this",
              "predicate": {
                "nbt": "{Tags:[\"nucleus.player.has_boots\"]}"
              }
            }
          }
        ]
      }
    }
  },
  "requirements": [
    [
      "helmet",
      "chestplate",
      "leggings",
      "boots"
    ]
  ],
  "rewards": {
    "function": "nucleus:item/equip_armor/main"
  }
}
