frostbolt:
  # This has been added automatically so that anything you remove here does not get inherited back in from the default configs
  inherit: false
  name: Frostbolt
  icon: curse
  category: minegasm
  worth: 80
  earns: 6
  upgrade_required_path: mage
  upgrade_required_casts: 50
  actions:
    cast:
    - class: CustomProjectile
      actions:
      - class: Damage
      - class: PotionEffect
      - class: Aggro
      - class: Deactivate
  effects:
    cast:
    - sound: entity_elder_guardian_curse
      sound_pitch: 1.8
      sound_volume: 0.8
    - class: EffectSingle
      sound: entity_iron_golem_death
      sound_pitch: 1.5
      sound_volume: 0.7
      effectlib:
        class: ConeEffect
        iterations: 15
        particle: redstone
        color: 210B61
        lengthGrow: 0.1
        radiusGrow: 0.003
        updateLocations: false
        updateDirections: false
    tick:
    - location: target
      particle: snowball
      particle_count: 4
      particle_offset_x: 0.01
      particle_offset_y: 0.01
      particle_offset_z: 0.01
    hit:
    - class: EffectSingle
      location: target
      color: 380B61
      firework: star
    - class: EffectSingle
      location: target
      requires_entity_target: true
      effectlib:
        class: SmokeEffect
        iterations: 16
        particle: spell_mob
        color: 210B61
    hit_entity:
    - location: target
      source_location: body
      sound: entity_elder_guardian_curse
      sound_pitch: 0.6
      sound_volume: 1.1
      effectlib:
        class: Modified
        duration: $duration
        parameters:
          radius: 1.5 * sin(t) + 0.5
        effect:
          class: SphereEffect
          particle: spell_mob
          color: 210B61
          particles: 20
          disappear_with_origin_entity: true
    - location: target
      source_location: body
      effectlib:
        class: SphereEffect
        iterations: 4
        particle: villager_happy
        radius: 0.8
        particles: 2
        particle_count: 10
        particle_offset_x: 0.2
        particle_offset_y: 0.2
        particle_offset_z: 0.2
        disappear_with_origin_entity: true
  costs:
    mana: 15
  parameters:
    speed: 5
    range: 16
    target_type: LivingEntity
    target_breakables: 1
    target: other
    duration: 4000
    cooldown: 0
    charges: 1
    charge_regeneration: 0.33
    damage: 6
    hitbox: true
    effect_slow: 2
    effect_hunger: 2
    effect_weakness: 3
    effect_confusion: 5

frostbolt|2:
  parameters:
    charges: 2
    range: 32
    duration: 6000
    effect_confusion: 2
    effect_slow: 3

