{
  "anvil_cost": 8,
  "description": {
    "translate": "enchantment.dnt.conductivity_curse",
    "fallback": "Curse of Conductivity"
  },
  "effects": {
    "minecraft:tick": [
      {
        "effect": {
          "type": "minecraft:summon_entity",
          "entity": "minecraft:lightning_bolt"
        },
        "requirements": {
          "condition": "minecraft:all_of",
          "terms": [
            {
              "condition": "minecraft:weather_check",
              "thundering": true
            },
            {
              "condition": "minecraft:entity_properties",
              "entity": "this",
              "predicate": {
                "location": {
                  "can_see_sky": true
                },
                "periodic_tick": 20
              }
            },
            {
              "chance": {
                "type": "minecraft:enchantment_level",
                "amount": 0.1
              },
              "condition": "minecraft:random_chance"
            }
          ]
        }
      },
      {
        "effect": {
          "type": "minecraft:summon_entity",
          "entity": "minecraft:lightning_bolt"
        },
        "requirements": {
          "condition": "minecraft:all_of",
          "terms": [
            {
              "condition": "minecraft:weather_check",
              "thundering": true
            },
            {
              "condition": "minecraft:entity_properties",
              "entity": "this",
              "predicate": {
                "location": {
                  "can_see_sky": true
                },
                "periodic_tick": 20,
                "slots": {
                  "weapon.mainhand": {
                    "items": "#nova_structures:extra_lightning"
                  }
                }
              }
            },
            {
              "chance": {
                "type": "minecraft:enchantment_level",
                "amount": 0.233333
              },
              "condition": "minecraft:random_chance"
            }
          ]
        }
      },
      {
        "effect": {
          "type": "minecraft:spawn_particles",
          "horizontal_position": {
            "type": "in_bounding_box",
            "scale": 1.2
          },
          "horizontal_velocity": {
            "movement_scale": 0.1
          },
          "particle": {
            "type": "electric_spark"
          },
          "speed": 1.0,
          "vertical_position": {
            "type": "in_bounding_box"
          },
          "vertical_velocity": {
            "base": 0.1
          }
        },
        "requirements": {
          "condition": "minecraft:all_of",
          "terms": [
            {
              "condition": "minecraft:weather_check",
              "thundering": true
            },
            {
              "condition": "minecraft:entity_properties",
              "entity": "this",
              "predicate": {
                "location": {
                  "can_see_sky": true
                }
              }
            },
            {
              "chance": {
                "type": "minecraft:enchantment_level",
                "amount": 0.5
              },
              "condition": "minecraft:random_chance"
            }
          ]
        }
      }
    ]
  },
  "max_cost": {
    "base": 25,
    "per_level_above_first": 10
  },
  "max_level": 1,
  "min_cost": {
    "base": 10,
    "per_level_above_first": 10
  },
  "slots": [
    "any"
  ],
  "supported_items": "#nova_structures:enchantable/metal",
  "weight": 1
}