/ good effects

/ speed
group(
    type=effect,ID=speed,range=4,amplifier=2,duration=600;
    type=particle,ID=splashpotion,potion=swiftness;
    type=item,ID=#randList(cookie,sugar),posOffset=#circleOffset(0.0,2.0),amount=30
)@luck=2


/ haste
group(
    type=effect,ID=haste,range=4,amplifier=2,duration=600;
    type=particle,ID=splashpotion,potion=haste;
    type=item,ID=#randList(iron_nugget,torch),posOffset=#circleOffset(0.0,2.0),amount=30
)@luck=2

/ fire resistance
group(
    type=effect,ID=fire_resistance,range=4,amplifier=2,duration=600;
    type=particle,ID=splashpotion,potion=fire_resistance;
    type=item,ID=#randList(fire_charge,fire_charge,fire_charge,blaze_powder),posOffset=#circleOffset(0.0,2.0),amount=20
)@luck=2

/ water resistance
group(
    type=effect,ID=water_breathing,range=4,amplifier=2,duration=600;
    type=particle,ID=splashpotion,potion=water_breathing;
    type=item,ID=#randList(prismarine_shard,prismarine_shard,prismarine_crystal),posOffset=#circleOffset(0.0,2.0),amount=20
)@luck=2

/ night vision
group(
    type=effect,ID=night_vision,range=4,amplifier=2,duration=600;
    type=particle,ID=splashpotion,potion=night_vision;
    type=item,ID=#randList(carrot,carrot,golden_carrot),posOffset=#circleOffset(0.0,2.0),amount=20
)@luck=2

/ slow falling
group(
    type=effect,ID=slow_falling,range=4,amplifier=2,duration=600;
    type=particle,ID=splashpotion,potion=slow_falling;
    type=item,ID=#randList(feather,feather),posOffset=#circleOffset(0.0,2.0),amount=20
)@luck=2

/ hero of the village
group(
    type=effect,ID=hero_of_the_village,range=4,amplifier=2,duration=600;
    type=particle,ID=splashpotion,potion=hero_of_the_village;
	type=entity,ID=Villager,posOffset=#circleOffset(0.0,4.0);
    type=item,ID=#randList(emerald,seeds,wheat,seeds),posOffset=#circleOffset(0.0,2.0),amount=20
)@luck=2

/ strenth + resistance + armor
group(
    type=effect,ID=strength,range=4,amplifier=1,duration=600;
    type=effect,ID=resistance,range=4,amplifier=1,duration=600;
    type=particle,ID=splashpotion,potion=strength;
    type=item,ID=stone_sword,posOffset=#circleOffset(0.0,2.0);
    type=item,ID=leather_helmet,posOffset=#circleOffset(0.0,2.0);
    type=item,ID=leather_chestplate,posOffset=#circleOffset(0.0,2.0);
    type=item,ID=leather_leggings,posOffset=#circleOffset(0.0,2.0);
    type=item,ID=leather_boots,posOffset=#circleOffset(0.0,2.0)
)@luck=2

/ instant health + regeneration
group(
    type=effect,ID=instant_health,range=4,amplifier=3;
    type=effect,ID=regeneration,range=4,amplifier=1,duration=300;
    type=particle,ID=splashpotion,potion=healing;
    type=particle,ID=heart,size=(1.5,0.5,1.5),particleAmount=300
)@luck=2

/ jump boost
group(
    type=effect,ID=jump_boost,range=4,amplifier=2,duration=600;
    type=particle,ID=splashpotion,potion=leaping;
    type=entity,ID=rabbit,posOffset=#circleOffset(0.0,2.0),amount=8
)@luck=2

/ invisibility
group(
    type=effect,ID=invisibility,range=4,duration=300;
    type=particle,ID=splashpotion,potion=invisibility;
    type=particle,ID=poof,size=(2.0,1.0,2.0),particleAmount=300,amount=30,delay=#rand(0.0,8.0)
)@luck=2

/ health boost + absorption
group(
    type=effect,ID=health_boost,range=4,amplifier=1,duration=600;
    type=effect,ID=absorption,range=4,amplifier=1,duration=600;
    type=particle,ID=splashpotion,potion=healing;
    type=entity,ID=horse,NBTTag=(OwnerUUID=#pUUID,ArmorItem=(id=golden_horse_armor,Count=1),SaddleItem=(id=saddle,Count=1))
)@luck=2

/ saturation
group(
    type=effect,ID=saturation,range=4,amplifier=3,duration=600;
    type=particle,ID=splashpotion,potion=strength;
    type=block,ID=cake;
    type=item,ID=#randList(apple,baked_potato,bread,carrot,cooked_chicken,cooked_salmon,
        cooked_mutton,cooked_porkchop,cooked_beef,cooked_rabbit,cookie,golden_apple,golden_carrot,
        melon,mushroom_stew,potato,pumpkin_pie,rabbit_stew,beef,salmon,mutton,porkchop
    ),amount=20
)@luck=2

/ enchanting bottles
type=entity,ID=experience_bottle,NBTTag=(
    Motion=#motionFromDirection(#rand(0,360),-70,0.4)
),amount=#rand(20,30)@luck=2

/ enchanting books
group(
    type=item,ID=anvil;
    ID=enchanted_book,NBTTag=(StoredEnchantments=#randEnchantment),posOffset=#circleOffset(0.0,2.0),amount=#rand(7,10);
    type=particle,ID=splashpotion,potion=strength
)@luck=2

/ positive potions
group(
    type=entity,ID=potion,NBTTag=(
        Item=(id=splash_potion,tag=(Potion=#randList(
            night_vision,leaping,fire_resistance,swiftness,
            water_breathing,healing,regeneration,strength
        )),Count=1),
        Motion=#motionFromDirection(#rand(0,360),-70,0.4)
    ),amount=10
)@luck=2@chance=0.1




/ bad effects

/ knockback
group(
    type=effect,ID=special_knockback,power=2.5,range=4,delay=0.1;
    type=particle,ID=splashpotion,potion=swiftness;
    type=particle,ID=poof,size=(1.5,1.0,1.5),particleAmount=500
)@luck=-2

/ fire + lava
group(
    type=block,ID=fire,posOffset=#circleOffset(0,3),amount=50;
    type=block,ID=flowing_lava;type=particle,ID=splashpotion,potion=fire_resistance
)@luck=-2

/ blindness + slowness
group(
    type=effect,ID=blindness,range=4,duration=10;
    type=effect,ID=slowness,range=4,duration=10;
    type=particle,ID=splashpotion,potion=slowness;
    type=particle,ID=large_smoke,size=(2.0,1.0,2.0),particleAmount=300,amount=30,delay=#rand(0.0,8.0)
)@luck=-2

/ nausea + hunger
group(
    type=effect,ID=nausea,range=4,duration=10;
    type=effect,ID=hunger,range=3,amplifier=8,duration=10;
    type=particle,ID=splashpotion,potion=poison;
    type=difficulty,ID=hard;
    type=entity,ID=slime;
    type=particle,ID=item_slime,size=(1.5,0.5,1.5),particleAmount=500
)@luck=-2

/ instant damage
group(
    type=effect,ID=instant_damage,range=4;
    type=particle,ID=splashpotion,potion=harming;
    type=entity,ID=lucky:lucky_projectile,NBTTag=(
        Motion=#motionFromDirection(#rand(0,360),-50,0.4),
        item=(id=iron_sword),
        damage=4.0
    ),amount=20
)@luck=-2

/ explosion
group(
    type=difficulty,ID=hard;
    type=explosion,damage=4;
    type=particle,ID=splashpotion,potion=harming
)@luck=-2

/ poison
group(
    type=effect,ID=poison,range=4,duration=30;
    type=particle,ID=splashpotion,potion=poison;
    type=difficulty,ID=hard;
    type=entity,ID=cave_spider;
    type=item,ID=#randList(rotten_flesh,spider_eye,fermented_spider_eye),posOffset=#circleOffset(0.0,2.0),amount=30
)@luck=-2

/ weakness + monsters
group(
    type=effect,ID=weakness,range=4,duration=30;
    type=particle,ID=splashpotion,potion=weakness;
    type=difficulty,ID=hard;
    type=entity,ID=#randList(zombie,skeleton,spider),posOffset=#circleOffset(0.0,2.0),amount=#rand(7,10)
)@luck=-2

/ wither
group(
    type=effect,ID=wither,range=4,duration=30;
    type=particle,ID=splashpotion,potion=weakness;
    type=item,ID=bone,posOffset=#circleOffset(0.0,2.0),amount=10;
    type=item,ID=bone_meal,posOffset=#circleOffset(0.0,2.0),amount=10;
    type=item,ID=skeleton_skull,posOffset=#circleOffset(0.0,2.0)
)@luck=-2

/ negative potions
group(
    type=entity,ID=potion,NBTTag=(
        Item=(id=splash_potion,tag=(Potion=#randList(
            slowness,harming,poison,weakness
        )),Count=1),
        Motion=#motionFromDirection(#rand(0,360),-70,0.4)
    ),amount=10
)@luck=-2@chance=0.1



/ other