/===SPECIAL EFFECTS===

/ powerful sword
type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=diamond_sword),damage=50.0)@luck=2

/ arrow stream
type=entity,ID=arrow,pos=#bowPos,NBTTag=(Motion=#bowMotion,Color=-1),amount=35,delay=#rand(0.0,3.0)@luck=2

/ knockback
type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(
    Motion=#bowMotion,
    item=(id=feather),
    impact=["group(
        type=effect,ID=special_knockback,power=1.85,range=4,delay=0.1;
        type=particle,ID=poof,size=(1.8,1.1,1.8),particleAmount=500
    )"]
)@luck=2

/ potions
type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(
    Motion=#bowMotion(1.0,2.0),
    item=(id=splash_potion,tag=(Potion=#randList(poison,weakness,slowness,harming))),
    impact=["group(
        type=effect,ID=#randList(19,18,2,7),range=4,amplifier=#rand(1,3),duration=30;
        type=particle,ID=splashpotion,potion=#randList(poison,weakness,slowness,harming)
    )"]
),amount=#rand(7,10)@luck=2

/ very powerful tnt
type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(
    Motion=#bowMotion,
    item=(id=tnt),
    trail=(frequency=0.2,drops=["type=particle,ID=smoke"]),
    impact=["group(type=difficulty,ID=hard;type=explosion,damage=8)"]
)@luck=2

/ iron golem
type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(
    Motion=#bowMotion,
    item=(id=iron_block),
    impact=["group(type=difficulty,ID=hard;type=entity,ID=iron_golem)"]
)@luck=2

/ iron golem
type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(
    Motion=#bowMotion,
    item=(id=iron_block),
    impact=["group(type=difficulty,ID=hard;type=entity,ID=iron_golem)"]
)@luck=2

/ a lot of monsters
type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(
    Motion=#bowMotion(1.0,2.0),
    item=(id=#randList(zombie_spawn_egg,skeleton_spawn_egg,spider_spawn_egg)),
    impact=["group(
        type=difficulty,ID=hard;
        type=entity,ID=#randList(zombie,skeleton,spider),posOffset=#circleOffset(0,2)
    )"]
),amount=#rand(10,25)@luck=2


/ === NORMAL ARROW ===

type=entity,ID=arrow,pos=#bowPos,NBTTag=(Motion=#bowMotion,Color=-1)@chance=20