{
  "description": {
    "translate": "enchantment.kattersstructures.enlightning",
    "fallback": "Enlightning"
  },
  "supported_items": "minecraft:blaze_rod",
  "weight": 1,
  "max_level": 1,
  "min_cost": {
    "base": 0,
    "per_level_above_first": 0
  },
  "max_cost": {
    "base": 0,
    "per_level_above_first": 0
  },
  "anvil_cost": 100,
  "slots": [
    "mainhand"
  ],
  "effects": {
    "minecraft:hit_block": [
      {
        "effect": {
          "type": "minecraft:change_item_damage",
          "amount": 1
        },
        "requirements": {
          "condition": "minecraft:any_of",
          "terms": [
              {
                "condition": "minecraft:block_state_property",
                "block": "minecraft:lightning_rod"
              },
              {
                "condition": "minecraft:block_state_property",
                "block": "minecraft:exposed_lightning_rod"
              },
              {
                "condition": "minecraft:block_state_property",
                "block": "minecraft:weathered_lightning_rod"
              },
              {
                "condition": "minecraft:block_state_property",
                "block": "minecraft:oxidized_lightning_rod"
              },
              {
                "condition": "minecraft:block_state_property",
                "block": "minecraft:waxed_lightning_rod"
              },
              {
                "condition": "minecraft:block_state_property",
                "block": "minecraft:waxed_exposed_lightning_rod"
              },
              {
                "condition": "minecraft:block_state_property",
                "block": "minecraft:waxed_weathered_lightning_rod"
              },
              {
                "condition": "minecraft:block_state_property",
                "block": "minecraft:waxed_oxidized_lightning_rod"
              }
          ]
        }
      },
      {
        "effect": {
          "type": "minecraft:run_function",
          "function": "kattersstructures:items/raj_lightning_rod/enlightning"
        },
        "requirements": {
          "condition": "minecraft:any_of",
          "terms": [
              {
                "condition": "minecraft:block_state_property",
                "block": "minecraft:lightning_rod"
              },
              {
                "condition": "minecraft:block_state_property",
                "block": "minecraft:exposed_lightning_rod"
              },
              {
                "condition": "minecraft:block_state_property",
                "block": "minecraft:weathered_lightning_rod"
              },
              {
                "condition": "minecraft:block_state_property",
                "block": "minecraft:oxidized_lightning_rod"
              },
              {
                "condition": "minecraft:block_state_property",
                "block": "minecraft:waxed_lightning_rod"
              },
              {
                "condition": "minecraft:block_state_property",
                "block": "minecraft:waxed_exposed_lightning_rod"
              },
              {
                "condition": "minecraft:block_state_property",
                "block": "minecraft:waxed_weathered_lightning_rod"
              },
              {
                "condition": "minecraft:block_state_property",
                "block": "minecraft:waxed_oxidized_lightning_rod"
              }
          ]
        }
      }
    ]
  }
}
