{
  "description": {
    "translate": "enchantment.minecraft.channeling"
  },
  "min_cost": {
    "base": 25,
    "per_level_above_first": 0
  },
  "max_cost": {
    "base": 50,
    "per_level_above_first": 0
  },
  "anvil_cost": 8,
  "slots": [
    "mainhand"
  ],
  "supported_items": "#minecraft:enchantable/trident",
  "weight": 1,
  "max_level": 1,
  "effects": {
    "minecraft:hit_block": [
      {
        "effect": {
          "effects": [
            {
              "entity": "minecraft:lightning_bolt",
              "type": "minecraft:summon_entity"
            },
            {
              "sound": "minecraft:item.trident.thunder",
              "volume": 5.0,
              "pitch": 1.0,
              "type": "minecraft:play_sound"
            }
          ],
          "type": "minecraft:all_of"
        },
        "requirements": {
          "terms": [
            {
              "thundering": true,
              "condition": "minecraft:weather_check"
            },
            {
              "predicate": {
                "type": "minecraft:trident"
              },
              "entity": "this",
              "condition": "minecraft:entity_properties"
            },
            {
              "predicate": {
                "can_see_sky": true
              },
              "condition": "minecraft:location_check"
            },
            {
              "block": "minecraft:lightning_rod",
              "condition": "minecraft:block_state_property"
            }
          ],
          "condition": "minecraft:all_of"
        }
      }
    ],
    "minecraft:post_attack": [
      {
        "enchanted": "attacker",
        "affected": "victim",
        "effect": {
          "effects": [
            {
              "entity": "minecraft:lightning_bolt",
              "type": "minecraft:summon_entity"
            },
            {
              "sound": "minecraft:item.trident.thunder",
              "volume": 5.0,
              "pitch": 1.0,
              "type": "minecraft:play_sound"
            }
          ],
          "type": "minecraft:all_of"
        },
        "requirements": {
          "terms": [
            {
              "thundering": true,
              "condition": "minecraft:weather_check"
            },
            {
              "predicate": {
                "location": {
                  "can_see_sky": true
                }
              },
              "entity": "this",
              "condition": "minecraft:entity_properties"
            },
            {
              "predicate": {
                "type": "minecraft:trident"
              },
              "entity": "direct_attacker",
              "condition": "minecraft:entity_properties"
            }
          ],
          "condition": "minecraft:all_of"
        }
      }
    ]
  }
}