{
  "anvil_cost": 4,
  "description": {
    "translate": "enchantment.dnt.ghasted",
    "fallback": "Ghasted"
  },
  "effects": {
    "minecraft:projectile_spawned": [
      {
        "requirements": [
          {
            "condition": "minecraft:entity_properties",
            "entity": "this",
            "predicate": {
              "type": "#minecraft:arrows"
            }
          },
          {
            "condition": "minecraft:random_chance",
            "chance": {
            "type": "minecraft:enchantment_level",
            "amount": {
              "type": "minecraft:lookup",
              "values": [
                100,
                0,
                0
              ],
              "fallback": 0
            }
          }
        }
        ],
        "effect": {
          "type": "minecraft:run_function",
          "function": "nova_structures:ghasted_fireball_1"
        }
      },
      {
        "requirements": [
          {
            "condition": "minecraft:entity_properties",
            "entity": "this",
            "predicate": {
              "type": "#minecraft:arrows"
            }
          },
          {
            "condition": "minecraft:random_chance",
            "chance": {
            "type": "minecraft:enchantment_level",
            "amount": {
              "type": "minecraft:lookup",
              "values": [
                0,
                100,
                0
              ],
              "fallback": 0
            }
          }
        }
        ],
        "effect": {
          "type": "minecraft:run_function",
          "function": "nova_structures:ghasted_fireball_2"
        }
      },
      {
        "requirements": [
          {
            "condition": "minecraft:entity_properties",
            "entity": "this",
            "predicate": {
              "type": "#minecraft:arrows"
            }
          },
          {
            "condition": "minecraft:random_chance",
            "chance": {
            "type": "minecraft:enchantment_level",
            "amount": {
              "type": "minecraft:lookup",
              "values": [
                0,
                0,
                100
              ],
              "fallback": 100
            }
          }
        }
        ],
        "effect": {
          "type": "minecraft:run_function",
          "function": "nova_structures:ghasted_fireball_3"
        }
      }
    ],
    "minecraft:crossbow_charge_time": {
      "type": "minecraft:add",
      "value": {
        "type": "minecraft:linear",
        "base": 1.5,
        "per_level_above_first": 0.5
      }
    }
  },
  "exclusive_set": "#nova_structures:exclusive_set/ghasted",
  "max_cost": {
    "base": 40,
    "per_level_above_first": 20
  },
  "max_level": 3,
  "min_cost": {
    "base": 1,
    "per_level_above_first": 20
  },
  "slots": [
    "mainhand"
  ],
  "supported_items": "#minecraft:enchantable/crossbow",
  "weight": 50
}