pistol:
    # This has been added automatically so that anything you remove here does not get inherited back in from the default configs
    inherit: false
    icon: spell_icon:160
    icon_disabled: spell_icon_disabled:160
    icon_url: http://textures.minecraft.net/texture/2ba95570c7b712713632d4c0d2fc66906613d3850a596a0267c6d763fe741ac
    category: combat
    quiet: 0
    loud: true
    name: Fire Mode - Pistol
    require_health_percentage: 100
    actions:
        cast:
        - class: CustomProjectile
          actions:
          - class: Damage
    effects:
        cast:
        -  sound: entity_zombie_attack_wooden_door
           sound_pitch: 2
           sound_volume: 0.5
        -  sound: entity_skeleton_hurt
           sound_pitch: 2
           sound_volume: 0.5
        -  sound: block_amethyst_cluster_break
           sound_pitch: 2
           sound_volume: 0.5
        -  sound: block_amethyst_cluster_place
           delay: 250
           sound_pitch: 2
           sound_volume: 0.5
        -  class: EffectSingle
           location: origin
           color_override: color
        tick:
        - particle: sweep_attack
          location: target
          particle_count: 3
          particle_offset_x: 0.1
          particle_offset_y: 0
          particle_offset_z: 0.1
        hit_block:
        -  class: EffectSingle
           location: target
           particle: block_crack
           particle_count: 50
           particle_offset_x: 0.2
           particle_offset_y: 1
           particle_offset_z: 0.2
        hit_entity:
        -  class: EffectSingle
           location: target
           particle: redstone
           particle_count: 30
           particle_offset_x: 0.2
           particle_offset_y: 0.2
           particle_offset_z: 0.2
        hit:
        -  sound: entity_player_attack_knockback
           sound_pitch: 2
           location: target
           sound_volume: 0.6
        -  sound: entity_player_hurt
           sound_pitch: 2
           location: target
           sound_volume: 0.6
        -  sound: block_note_block_pling
           sound_pitch: 2
           location: target
           sound_volume: 0.6
        -  sound: block_beacon_deactivate
           sound_pitch: 1.8
           sound_volume: 0.9
           location: target
        -  class: EffectSingle
           location: target
           particle: fireworks_spark
           particle_count: 10
           particle_offset_x: 0.3
           particle_offset_y: 0.3
           particle_offset_z: 0.3
           sound: magic.hit
           sound_volume: .3
           particle_data: 0.1
    parameters:
        allow_max_range: true
        velocity: 300
        range: 48
        hitbox: true
        hitbox_size: 2
        target_type: Damageable
        player_damage: 4
        entity_damage: 4
        target_breakables: 1
        cooldown: 0
        charges: 8
        charge_regeneration: 1
        color: "00FFAA"