{
  "model": {
    "type": "minecraft:select",
    "property": "minecraft:display_context",
    "cases": [
      {
        "when": ["gui", "ground", "fixed", "on_shelf"],
        "model": {
          "type": "minecraft:condition",
          "property": "minecraft:component",
          "component": "minecraft:enchantments",
          "predicate": "minecraft:enchantments",
          "value": [{"enchantments": "minecraft:impaling", "levels": 5}, {"enchantments": "minecraft:loyalty", "levels": 3}],
          "on_true": { "type": "minecraft:model", "model": "cit_new:item/tools/trident/loyalty_impaling" },
          "on_false": {
            "type": "minecraft:condition",
            "property": "minecraft:component",
            "component": "minecraft:enchantments",
            "predicate": "minecraft:enchantments",
            "value": [{"enchantments": "minecraft:impaling", "levels": 5}, {"enchantments": "minecraft:riptide", "levels": 3}],
            "on_true": { "type": "minecraft:model", "model": "cit_new:item/tools/trident/riptide_impaling" },
            "on_false": {
              "type": "minecraft:condition",
              "property": "minecraft:component",
              "component": "minecraft:enchantments",
              "predicate": "minecraft:enchantments",
              "value": [{"enchantments": "minecraft:impaling", "levels": 5}],
              "on_true": { "type": "minecraft:model", "model": "cit_new:item/tools/trident/impaling" },
              "on_false": {
                "type": "minecraft:condition",
                "property": "minecraft:component",
                "component": "minecraft:enchantments",
                "predicate": "minecraft:enchantments",
                "value": [{"enchantments": "minecraft:loyalty", "levels": 3}],
                "on_true": { "type": "minecraft:model", "model": "cit_new:item/tools/trident/loyalty" },
                "on_false": {
                  "type": "minecraft:condition",
                  "property": "minecraft:component",
                  "component": "minecraft:enchantments",
                  "predicate": "minecraft:enchantments",
                  "value": [{"enchantments": "minecraft:riptide", "levels": 3}],
                  "on_true": { "type": "minecraft:model", "model": "cit_new:item/tools/trident/riptide" },
                  "on_false": { "type": "minecraft:model", "model": "minecraft:item/trident" }
                }
              }
            }
          }
        }
      }
    ],
    "fallback": {
      "type": "minecraft:condition",
      "property": "minecraft:using_item",
      "on_false": {
        "type": "minecraft:special",
        "base": "minecraft:item/trident_in_hand",
        "model": { "type": "minecraft:trident" }
      },
      "on_true": {
        "type": "minecraft:special",
        "base": "minecraft:item/trident_throwing",
        "model": { "type": "minecraft:trident" }
      }
    }
  }
}