/ Magical Lucky Blocks \
/   by  Fortchain100   \

/ 003001: Fire Staff
group(ID=arrow,amount=#rand(7,16);type=item,ID=lucky:magical_lucky_bow,NBTTag=(Luck=100,CustomModelData=1003001,Enchantments=#luckyBowEnchantments,Drops=["group(type=entity,ID=small_fireball,pos=#bowPos,NBTTag=(NoGravity=1,Motion=#bowMotion,power=111,item=(id=minecraft:blaze_powder),trail=(frequency=0.5,drops=[\"type=particle,ID=smoke,posY=#bExactPosY+0.4\"]),impact=[\"group(type=block,ID=fire;type=particle,ID=enchanted_hit,posY=#bExactPosY+0.4;type=explosion,radius=0,fire=true;type=entity,ID=falling_block,amount=#randList(0,0,0,0,1,1,1,2,2,2,3),posOffset='#'circleOffset(#rand(1,3)),NBTTag=(BlockState=(Name=fire),Fuse=50b,Motion='#'randLaunchMotion))\"]))"],display=(Name=#jsonStr(text="$4Fireball"))))@luck=2
group(ID=arrow,amount=#rand(7,16);type=item,ID=lucky:magical_lucky_bow,NBTTag=(Luck=50,CustomModelData=1003001,Enchantments=#luckyBowEnchantments,Drops=["group:1:(type=command,ID=\"/tell #pName Please wait for a moment before reloading\";group(type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=minecraft:blaze_powder),trail=(frequency=0.5,drops=[\"type=particle,ID=smoke,posY=#bExactPosY+0.4\"]),impact=[\"group:1:(type=command,ID="/tell #pName Please wait for a moment before reloading..";group(type=block,ID=fire;type=particle,ID=enchanted_hit,posY=#bExactPosY+0.4;type=explosion,radius=#rand(1,2),fire=true))\"])))"],display=(Name=#jsonStr(text="$4Fire Explosion"))))@luck=2
group(ID=arrow,amount=#rand(7,16);type=item,ID=lucky:magical_lucky_bow,NBTTag=(Luck=25,CustomModelData=1003001,Enchantments=#luckyBowEnchantments,Drops=["group:1:(type=command,ID=\"/tell #pName Please wait for a moment before reloading\";type=command,ID=\"/tell #pName Please wait for a moment before reloading\";group(type=effect,ID=\"slow_falling\",duration=10;type=command,ID=\"/teleport #pName ~ ~4 ~\";type=command,ID=\"/teleport #pName ~ ~7 ~\",delay=0.1;type=command,ID=\"/teleport #pName ~ ~9 ~\",delay=0.2;type=command,ID=\"/teleport #pName ~ ~10 ~\",delay=0.3))"],display=(Name=#jsonStr(text="$4Fire Jetpack"))))@luck=2
group(ID=arrow,amount=#rand(7,16);type=item,ID=lucky:magical_lucky_bow,NBTTag=(Luck=12,CustomModelData=1003001,Enchantments=#luckyBowEnchantments,Drops=["group:1:(type=command,ID=\"/tell #pName Please wait for a moment before reloading\";type=command,ID=\"/tell #pName Please wait for a moment before reloading\";type=command,ID=\"/tell #pName Please wait for a moment before reloading\";type=command,ID=\"/tell #pName Please wait for a moment before reloading\";type=command,ID=\"/tell #pName Please wait for a moment before reloading\";group(type=explosion,radius=0,fire=true;type=effect,ID=\"speed\",duration=4,amplifier=3;type=effect,ID=\"strength\",duration=4))"],display=(Name=#jsonStr(text="$4Flaming Rage"))))@luck=2

/ 003002: Ice Staff
group(ID=arrow,amount=#rand(7,16);type=item,ID=lucky:magical_lucky_bow,NBTTag=(Luck=100,CustomModelData=1003002,Enchantments=#luckyBowEnchantments,Drops=["group(type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=minecraft:packed_ice),trail=(frequency=0.5,drops=[\"type=particle,ID=crit,posY=#bExactPosY+0.4\"]),impact=[\"group:1:(group(type=particle,ID=enchanted_hit,posY=#bExactPosY+0.4;type=effect,ID=slowness,range=3,duration=1))\"]))"],display=(Name=#jsonStr(text="$bIcicle"))))@luck=2
group(ID=arrow,amount=#rand(7,16);type=item,ID=lucky:magical_lucky_bow,NBTTag=(Luck=50,CustomModelData=1003002,Enchantments=#luckyBowEnchantments,Drops=["group:1:(type=command,ID=\"/tell #pName Please wait for a moment before reloading\";group(type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=minecraft:packed_ice),trail=(frequency=0.5,drops=[\"type=particle,ID=crit,posY=#bExactPosY+0.4\"]),impact=[\"group:1:(type=command,ID=\"/tell #pName Please wait for a moment before reloading\";group(type=particle,ID=snowball,posY=#bExactPosY+0.4;type=effect,ID=slowness,range=2,duration=2;type=block,ID=snow;type=entity,ID=snowball,amount=21,posY='#'bPosY+#rand(2,8),delay=#rand(0,0.4)))\"])))"],display=(Name=#jsonStr(text="$bHail"))))@luck=2
group(ID=arrow,amount=#rand(7,16);type=item,ID=lucky:magical_lucky_bow,NBTTag=(Luck=25,CustomModelData=1003002,Enchantments=#luckyBowEnchantments,Drops=["group:1:(type=command,ID=\"/tell #pName Please wait for a moment before reloading\";type=command,ID=\"/tell #pName Please wait for a moment before reloading\";group(type=command,ID=\"/teleport #pName ~ ~2 ~\";type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=minecraft:packed_ice),trail=(frequency=0.5,drops=[\"type=particle,ID=crit,posY=#bExactPosY+0.4\"]),impact=[\"group:1:(group(type=particle,ID=enchanted_hit;type=effect,ID=slowness,range=3,duration=2,amplifier=2))\"])))"],display=(Name=#jsonStr(text="$bIce Jump"))))@luck=2
group(ID=arrow,amount=#rand(7,16);type=item,ID=lucky:magical_lucky_bow,NBTTag=(Luck=12,CustomModelData=1003002,Enchantments=#luckyBowEnchantments,Drops=["group:1:(type=command,ID=\"/tell #pName Please wait for a moment before reloading\";type=command,ID=\"/tell #pName Please wait for a moment before reloading\";type=command,ID=\"/tell #pName Please wait for a moment before reloading\";type=command,ID=\"/tell #pName Please wait for a moment before reloading\";group(type=effect,ID=resistance,duration=8,amplifier=1;type=particle,ID=crit,posY=#bExactPosY+0.4))"],display=(Name=#jsonStr(text="$bIron Shield"))))@luck=2

/ 003003: Earth Staff
group(ID=arrow,amount=#rand(7,16);type=item,ID=lucky:magical_lucky_bow,NBTTag=(Luck=100,CustomModelData=1003003,Enchantments=#luckyBowEnchantments,Drops=["group(type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=minecraft:dirt),trail=(frequency=0.5,drops=[\"type=particle,ID=dirt,posY=#bExactPosY+0.4\"]),impact=[\"group:1:(group(type=effect,ID=harming,range=2;type=entity,ID=falling_block,amount=#randList(0,0,0,0,1,1,1,2,2,2,3),posOffset='#'circleOffset(#rand(1,3)),NBTTag=(BlockState=(Name=#randList(dirt,dirt,dirt,coarse_dirt)),Fuse=50b,Motion='#'randLaunchMotion)))\"]))"],display=(Name=#jsonStr(text="$2Block Throw"))))@luck=2
group(ID=arrow,amount=#rand(7,16);type=item,ID=lucky:magical_lucky_bow,NBTTag=(Luck=50,CustomModelData=1003003,Enchantments=#luckyBowEnchantments,Drops=["group:1:(type=command,ID=\"/tell #pName Please wait for a moment before reloading\";group(type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=minecraft:dirt),trail=(frequency=0.5,drops=[\"type=particle,ID=dirt,posY=#bExactPosY+0.4\"]),impact=[\"group:1:(group(type=explosion,radius=2,fire=false,type=effect,ID=harming,range=4,amplfier=1;type=entity,ID=falling_block,amount=#randList(1,1,1,2,2,3),posOffset='#'circleOffset(#rand(1,3)),NBTTag=(BlockState=(Name=#randList(dirt,dirt,dirt,coarse_dirt,dirt,gravel)),Fuse=50b,Motion='#'randLaunchMotion)))\"])))"],display=(Name=#jsonStr(text="$2Earthquake"))))@luck=2
group(ID=arrow,amount=#rand(7,16);type=item,ID=lucky:magical_lucky_bow,NBTTag=(Luck=25,CustomModelData=1003003,Enchantments=#luckyBowEnchantments,Drops=["group:1:(type=command,ID=\"/tell #pName Please wait for a moment before reloading\";type=command,ID=\"/tell #pName Please wait for a moment before reloading\";group(type=command,ID=\"/teleport #pName ~ ~4 ~\";type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=minecraft:dirt),trail=(frequency=0.5,drops=[\"type=particle,ID=dirt,posY=#bExactPosY+0.4\"]),impact=[\"group:1:(group(type=particle,ID=enchanted_hit;type=effect,ID=harming,range=2))\"])))"],display=(Name=#jsonStr(text="$2Block Jump"))))@luck=2
group(ID=arrow,amount=#rand(7,16);type=item,ID=lucky:magical_lucky_bow,NBTTag=(Luck=12,CustomModelData=1003003,Enchantments=#luckyBowEnchantments,Drops=["group:1:(type=command,ID=\"/tell #pName Please wait for a moment before reloading\";type=command,ID=\"/tell #pName Please wait for a moment before reloading\";type=command,ID=\"/tell #pName Please wait for a moment before reloading\";type=command,ID=\"/tell #pName Please wait for a moment before reloading\";group(type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=minecraft:dirt),trail=(frequency=0.5,drops=[\"type=particle,ID=wooden_shovel,posY=#bExactPosY+0.4\"]),impact=[\"group:1:(group(type=effect,ID=harming,range=2;type=effect,ID=blindness,range=3,duration=2,amplifier=4;type=command,ID=\"/fill ~ ~1 ~ ~ ~-1 ~ air destroy\";type=command,ID=\"/setblock ~1 ~ ~ air destroy\";type=command,ID=\"/setblock ~-1 ~ ~ air destroy\";type=command,ID=\"/setblock ~ ~ ~1 air destroy\";type=command,ID=\"/setblock ~ ~ ~-1 air destroy\";type=entity,ID=falling_block,amount=#randList(0,0,0,0,1,1,1,2,2,2,3),posOffset='#'circleOffset(#rand(1,3)),NBTTag=(BlockState=(Name=#randList(dirt,dirt,dirt,coarse_dirt,dirt,gravel)),Fuse=50b,Motion='#'randLaunchMotion)))\"])))"],display=(Name=#jsonStr(text="$2Earth Hole"))))@luck=2

/ 003004: Wind Staff
group(ID=arrow,amount=#rand(7,16);type=item,ID=lucky:magical_lucky_bow,NBTTag=(Luck=100,CustomModelData=1003004,Enchantments=#luckyBowEnchantments,Drops=["group(type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=minecraft:nether_star),trail=(frequency=0.5,drops=[\"type=particle,ID=crit,posY=#bExactPosY+0.4\"]),impact=[\"group:1:(group(type=command,ID=\"/teleport @e[distance=..2] ~ ~2 ~\",range=2))\"]))"],display=(Name=#jsonStr(text="$fWind Punch"))))@luck=2
group(ID=arrow,amount=#rand(7,16);type=item,ID=lucky:magical_lucky_bow,NBTTag=(Luck=50,CustomModelData=1003004,Enchantments=#luckyBowEnchantments,Drops=["group:1:(type=command,ID=\"/tell #pName Please wait for a moment before reloading\";group(type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=minecraft:nether_star),trail=(frequency=0.5,drops=[\"type=particle,ID=crit,posY=#bExactPosY+0.4\"]),impact=[\"group:1:(group(type=effect,ID=\"instant_damage\",range=2;type=command,ID=\"/teleport @e[distance=..2] ~ ~5 ~\",range=2))\"])))"],display=(Name=#jsonStr(text="$fAir Blast"))))@luck=2
group(ID=arrow,amount=#rand(7,16);type=item,ID=lucky:magical_lucky_bow,NBTTag=(Luck=25,CustomModelData=1003004,Enchantments=#luckyBowEnchantments,Drops=["group:1:(type=command,ID=\"/tell #pName Please wait for a moment before reloading\";type=command,ID=\"/tell #pName Please wait for a moment before reloading\";group(type=command,ID=\"/teleport #pName ~ ~1 ~\",delay=#randList(0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1.0,1.1,1.2,1.3,1.4,1.5,1.6,1.7,1.8,1.9,2.0,2.1,2.2,2.3,2.4,2.5,2.6,2.7,2.8,2.9,3.0,3.1,3.2,3.3,3.4,3.5,3.6,3.7,3.8,3.9,4.0),amount=99)"],display=(Name=#jsonStr(text="$fAir Walk")))))@luck=2
group(ID=arrow,amount=#rand(7,16);type=item,ID=lucky:magical_lucky_bow,NBTTag=(Luck=12,CustomModelData=1003004,Enchantments=#luckyBowEnchantments,Drops=["group:1:(type=command,ID=\"/tell #pName Please wait for a moment before reloading\";type=command,ID=\"/tell #pName Please wait for a moment before reloading\";type=command,ID=\"/tell #pName Please wait for a moment before reloading\";type=command,ID=\"/tell #pName Please wait for a moment before reloading\";group(type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=minecraft:nether_star),trail=(frequency=0.5,drops=[\"type=particle,ID=crit,posY=#bExactPosY+0.4\"]),impact=[\"group:1:(group(type=effect,ID=\"instant_damage\",range=3,amplifier=2))\"])))"],display=(Name=#jsonStr(text="$fWind Ball"))))@luck=2

/ 003005: Shadow Staff
group(ID=arrow,amount=#rand(7,16);type=item,ID=lucky:magical_lucky_bow,NBTTag=(Luck=100,CustomModelData=1003005,Enchantments=#luckyBowEnchantments,Drops=["group:1:(group(type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=minecraft:air),trail=(frequency=0.5,drops=[\"type=particle,ID=witch,posY=#bExactPosY+0.4\"]),impact=[\"group:1:(group(type=entity,ID=lucky:lucky_projectile,posX=#bPosX,posY=#bPosY,posZ=#bPosZ,NBTTag=(Motion=#randLaunchMotion(0.6,15),item=(id=minecraft:air),trail=(frequency=0.5,drops=[\"group(type=particle,ID=witch)\"]),impact=[\"group(type=effect,ID=\"instant_damage\",range=1)\"]);type=effect,ID=\"instant_damage\",range=2))\"])))"],display=(Name=#jsonStr(text="$5Shadow Ball"))))@luck=2
group(ID=arrow,amount=#rand(7,16);type=item,ID=lucky:magical_lucky_bow,NBTTag=(Luck=50,CustomModelData=1003005,Enchantments=#luckyBowEnchantments,Drops=["group:1:(type=command,ID=\"/tell #pName Please wait for a moment before reloading\";group(type=command,ID=\"/effect give @e[distance=1..4] instant_damage 1 1\"))"],display=(Name=#jsonStr(text="$5Shadow Wave"))))@luck=2
group(ID=arrow,amount=#rand(7,16);type=item,ID=lucky:magical_lucky_bow,NBTTag=(Luck=25,CustomModelData=1003005,Enchantments=#luckyBowEnchantments,Drops=["group:1:(type=command,ID=\"/tell #pName Please wait for a moment before reloading\";type=command,ID=\"/tell #pName Please wait for a moment before reloading\";group(type=command,ID=\"/teleport #pName ~ ~-1 ~\",delay=#randList(0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1.0,1.1,1.2,1.3,1.4,1.5,1.6),amount=42)"],display=(Name=#jsonStr(text="$5Shadow Walk")))))@luck=2
group(ID=arrow,amount=#rand(7,16);type=item,ID=lucky:magical_lucky_bow,NBTTag=(Luck=12,CustomModelData=1003005,Enchantments=#luckyBowEnchantments,Drops=["group:1:(type=command,ID=\"/tell #pName Please wait for a moment before reloading\";type=command,ID=\"/tell #pName Please wait for a moment before reloading\";type=command,ID=\"/tell #pName Please wait for a moment before reloading\";type=command,ID=\"/tell #pName Please wait for a moment before reloading\";group(type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=minecraft:iron_sword),trail=(frequency=0.5,drops=[\"type=particle,ID=witch,posY=#bExactPosY+0.4\"]),impact=[\"group:1:(group(type=command,ID=\"/effect give #pName instant_health 1 1\";type=effect,ID=\"instant_damage\",range=3,amplifier=1))\"])))"],display=(Name=#jsonStr(text="$5Life Steal"))))@luck=2

/ 003006: Lightning Staff
group(ID=arrow,amount=#rand(7,16);type=item,ID=lucky:magical_lucky_bow,NBTTag=(Luck=100,CustomModelData=1003006,Enchantments=#luckyBowEnchantments,Drops=["group:1:(group(type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=minecraft:air),trail=(frequency=0.5,drops=[\"type=particle,ID=electric_spark,posY=#bExactPosY+0.4\"]),impact=[\"group(type=effect,ID=instant_damage,range=4,delay=0.1;type=effect,ID=instant_damage,range=1)\"])))"],display=(Name=#jsonStr(text="$eLightning Ball"))))@luck=2
group(ID=arrow,amount=#rand(7,16);type=item,ID=lucky:magical_lucky_bow,NBTTag=(Luck=50,CustomModelData=1003006,Enchantments=#luckyBowEnchantments,Drops=["group:1:(type=command,ID=\"/tell #pName Please wait for a moment before reloading\";group(type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=minecraft:air),trail=(frequency=0.5,drops=[\"type=particle,ID=electric_spark,posY=#bExactPosY+0.4\"]),impact=[\"group(type=entity,ID=lightning_bolt)\"])))"],display=(Name=#jsonStr(text="$eLightning Hit"))))@luck=2
group(ID=arrow,amount=#rand(7,16);type=item,ID=lucky:magical_lucky_bow,NBTTag=(Luck=25,CustomModelData=1003006,Enchantments=#luckyBowEnchantments,Drops=["group:1:(type=command,ID=\"/tell #pName Please wait for a moment before reloading\";type=command,ID=\"/tell #pName Please wait for a moment before reloading\";group(type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=minecraft:air),trail=(frequency=0.5,drops=[\"type=particle,ID=electric_spark,posY=#bExactPosY+0.4\"]),impact=[\"group(type=command,ID=\"/teleport #pName #bPosX #bPosY #bPosZ\")\"])))"],display=(Name=#jsonStr(text="$eElectric Teleportation"))))@luck=2
group(ID=arrow,amount=#rand(7,16);type=item,ID=lucky:magical_lucky_bow,NBTTag=(Luck=12,CustomModelData=1003006,Enchantments=#luckyBowEnchantments,Drops=["group:1:(type=command,ID=\"/tell #pName Please wait for a moment before reloading\";type=command,ID=\"/tell #pName Please wait for a moment before reloading\";type=command,ID=\"/tell #pName Please wait for a moment before reloading\";type=command,ID=\"/tell #pName Please wait for a moment before reloading\";group(type=explosion,radius=0,fire=false;type=command,ID=\"/effect give #pName speed 5 2\";type=command,ID=\"/effect give #pName jump_boost 5 3\"))"],display=(Name=#jsonStr(text="$eOverloading"))))@luck=2

/ 003007: Poison Staff
group(ID=arrow,amount=#rand(7,16);type=item,ID=lucky:magical_lucky_bow,NBTTag=(Luck=100,CustomModelData=1003007,Enchantments=#luckyBowEnchantments,Drops=["group:1:(group(type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=minecraft:air),trail=(frequency=0.5,drops=[\"type=particle,ID=sneeze,posY=#bExactPosY+0.4\"]),impact=[\"group(type=effect,ID=instant_damage,range=2)\"])))"],display=(Name=#jsonStr(text="$aPoison Ball"))))@luck=2
group(ID=arrow,amount=#rand(7,16);type=item,ID=lucky:magical_lucky_bow,NBTTag=(Luck=50,CustomModelData=1003007,Enchantments=#luckyBowEnchantments,Drops=["group:1:(type=command,ID=\"/tell #pName Please wait for a moment before reloading\";group(type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=minecraft:air),trail=(frequency=0.5,drops=[\"type=particle,ID=sneeze,posY=#bExactPosY+0.4\"]),impact=[\"group(type=particle,ID=splashpotion,size=(1.5,0.5,1.5),amount=37,delay=#randList(0.0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1.0,1.1,1.2,1.3,1.4,1.5,1.6,1.7,1.8,1.9,2.0),potion=poison;type=effect,ID=poison,duration=3,range=3,amount=100,delay=#randList(0.0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1.0,1.1,1.2,1.3,1.4,1.5,1.6,1.7,1.8,1.9,2.0))\"])))"],display=(Name=#jsonStr(text="$aPoison Cloud"))))@luck=2
group(ID=arrow,amount=#rand(7,16);type=item,ID=lucky:magical_lucky_bow,NBTTag=(Luck=25,CustomModelData=1003007,Enchantments=#luckyBowEnchantments,Drops=["group:1:(type=command,ID=\"/tell #pName Please wait for a moment before reloading\";type=command,ID=\"/tell #pName Please wait for a moment before reloading\";group(type=command,ID=\"/teleport #pName ~ ~4 ~\",delay=0.05;type=particle,ID=splashpotion,size=(1.5,0.5,1.5),particleAmount=80;type=command,ID=\"/effect give @e[distance=1..4] poison 3 0\"))"],display=(Name=#jsonStr(text="$aPoison Jump"))))@luck=2
group(ID=arrow,amount=#rand(7,16);type=item,ID=lucky:magical_lucky_bow,NBTTag=(Luck=12,CustomModelData=1003007,Enchantments=#luckyBowEnchantments,Drops=["group:1:(type=command,ID=\"/tell #pName Please wait for a moment before reloading\";type=command,ID=\"/tell #pName Please wait for a moment before reloading\";type=command,ID=\"/tell #pName Please wait for a moment before reloading\";type=command,ID=\"/tell #pName Please wait for a moment before reloading\";group(type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=minecraft:air),trail=(frequency=0.5,drops=[\"type=particle,ID=sneeze,posY=#bExactPosY+0.4\"]),impact=[\"group(type=particle,ID=splashpotion,size=(1.5,0.5,1.5),potion=poison;type=effect,ID=instant_damage,range=1;type=effect,ID=poison,duration=3,range=2,amplifier=1)\"])))"],display=(Name=#jsonStr(text="$aPoison Whip"))))@luck=2

/ 003008: Musical Staff
group(ID=arrow,amount=#rand(7,16);type=item,ID=lucky:magical_lucky_bow,NBTTag=(Luck=100,CustomModelData=1003008,Enchantments=#luckyBowEnchantments,Drops=["group:1:(group(type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=music_disc_strad),trail=(frequency=0.5,drops=[\"type=particle,ID=note,posY=#bExactPosY+0.4\"]),impact=[\"group(type=command,ID=\"/playsound lbmagical:fx_badchord player @a ~ ~ ~ 16 1 0.4\";type=effect,ID=nausea,range=2,duration=#rand(2,5))\"])))"],display=(Name=#jsonStr(text="$3Bad Chord"))))@luck=2
group(ID=arrow,amount=#rand(7,16);type=item,ID=lucky:magical_lucky_bow,NBTTag=(Luck=50,CustomModelData=1003008,Enchantments=#luckyBowEnchantments,Drops=["group:1:(type=command,ID=\"/tell #pName Please wait for a moment before reloading\";group(type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=note_block),trail=(frequency=0.5,drops=[\"group(type=command,ID=\"/playsound lbmagical:fx_beatload player @a ~ ~ ~ 16 1 0.4\";type=particle,ID=note,posY=#bExactPosY+0.4)\"]),impact=[\"group(type=command,ID=\"/playsound lbmagical:fx_beathit player @a ~ ~ ~ 16 1 0.4\";type=block,ID=note_block;type=block,ID=air,delay=0.1;type=explosion,radius=2,fire=false,delay=0.1)\"])))"],display=(Name=#jsonStr(text="$3Musical Beat"))))@luck=2
group(ID=arrow,amount=#rand(7,16);type=item,ID=lucky:magical_lucky_bow,NBTTag=(Luck=25,CustomModelData=1003008,Enchantments=#luckyBowEnchantments,Drops=["group:1:(type=command,ID=\"/tell #pName Please wait for a moment before reloading\";type=command,ID=\"/tell #pName Please wait for a moment before reloading\";group(type=explosion,radius=0,fire=false;type=command,ID=\"/playsound lbmagical:fx_perfect player @a ~ ~ ~ 16 1 0.4\";type=command,ID=\"/effect give #pName speed 10 1\";type=command,ID=\"/effect give #pName jump_boost 10 3\"))"],display=(Name=#jsonStr(text="$3Perfect Melody"))))@luck=2
group(ID=arrow,amount=#rand(7,16);type=item,ID=lucky:magical_lucky_bow,NBTTag=(Luck=12,CustomModelData=1003008,Enchantments=#luckyBowEnchantments,Drops=["group:1:(type=command,ID=\"/tell #pName Please wait for a moment before reloading\";type=command,ID=\"/tell #pName Please wait for a moment before reloading\";type=command,ID=\"/tell #pName Please wait for a moment before reloading\";type=command,ID=\"/tell #pName Please wait for a moment before reloading\";group(type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=music_disc_strad),trail=(frequency=0.5,drops=[\"type=particle,ID=note,posY=#bExactPosY+0.4,amount=10\"]),impact=[\"group(type=command,ID=\"/playsound lbmagical:fx_professional player @a ~ ~ ~ 16 1 0.4\";type=effect,ID=#randList(slowness,mining_fatigue,instant_damage,nausea,hunger,weakness,unlock),range=2,duration=#rand(2,4))\"])))"],display=(Name=#jsonStr(text="$3Professional Musician"))))@luck=2

/ 003009: Mage Robes
group:#rand(1,3):(ID=leather_helmet,NBTTag=(display=(color=16456458,Name=#jsonStr(text="$4Fire Mage Cap")),Enchantments=[(id=fire_protection,lvl=5)]);ID=leather_chestplate,NBTTag=(display=(color=16456458,Name=#jsonStr(text="$4Fire Mage Jacket")),Enchantments=[(id=fire_protection,lvl=5)]);ID=leather_leggings,NBTTag=(display=(color=16456458,Name=#jsonStr(text="$4Fire Mage Pants")),Enchantments=[(id=fire_protection,lvl=5)]);ID=leather_boots,NBTTag=(display=(color=16456458,Name=#jsonStr(text="$4Fire Mage Shoes")),Enchantments=[(id=fire_protection,lvl=5)]))@luck=1
group:#rand(1,3):(ID=leather_helmet,NBTTag=(display=(color=54768,Name=#jsonStr(text="$bIce Mage Cap")),Enchantments=[(id=respiration,lvl=5)]);ID=leather_chestplate,NBTTag=(display=(color=54768,Name=#jsonStr(text="$bIce Mage Jacket")),Enchantments=[(id=thorns,lvl=5)]);ID=leather_leggings,NBTTag=(display=(color=54768,Name=#jsonStr(text="$bIce Mage Pants")),Enchantments=[(id=thorns,lvl=5)]);ID=leather_boots,NBTTag=(display=(color=54768,Name=#jsonStr(text="$bIce Mage Shoes")),Enchantments=[(id=frost_walker,lvl=5)]))@luck=1
group:#rand(1,3):(ID=leather_helmet,NBTTag=(display=(color=1148441,Name=#jsonStr(text="$2Earth Mage Cap")),Enchantments=[(id=blast_protection,lvl=5)]);ID=leather_chestplate,NBTTag=(display=(color=1148441,Name=#jsonStr(text="$2Earth Mage Jacket")),Enchantments=[(id=blast_protection,lvl=5)]);ID=leather_leggings,NBTTag=(display=(color=1148441,Name=#jsonStr(text="$2Earth Mage Pants")),Enchantments=[(id=blast_protection,lvl=5)]);ID=leather_boots,NBTTag=(display=(color=1148441,Name=#jsonStr(text="$2Earth Mage Shoes")),Enchantments=[(id=blast_protection,lvl=5)]))@luck=1
group:#rand(1,3):(ID=leather_helmet,NBTTag=(display=(color=16250871,Name=#jsonStr(text="$fAir Mage Cap")),Enchantments=[(id=projectile_protection,lvl=5)]);ID=leather_chestplate,NBTTag=(display=(color=16250871,Name=#jsonStr(text="$fAir Mage Jacket")),Enchantments=[(id=projetile_protection,lvl=5)]);ID=leather_leggings,NBTTag=(display=(color=16250871,Name=#jsonStr(text="$fAir Mage Pants")),Enchantments=[(id=projectile_protection,lvl=5)]);ID=leather_boots,NBTTag=(display=(color=16250871,Name=#jsonStr(text="$fAir Mage Shoes")),Enchantments=[(id=feather_falling,lvl=5)]))@luck=1
group:#rand(1,3):(ID=leather_helmet,NBTTag=(display=(color=9247983,Name=#jsonStr(text="$5Shadow Mage Cap")),Enchantments=[(id=swift_sneak,lvl=5)]);ID=leather_chestplate,NBTTag=(display=(color=9247983,Name=#jsonStr(text="$5Shadow Mage Jacket")),Enchantments=[(id=swift_sneak,lvl=5)]);ID=leather_leggings,NBTTag=(display=(color=9247983,Name=#jsonStr(text="$5Shadow Mage Pants")),Enchantments=[(id=swift_sneak,lvl=5)]);ID=leather_boots,NBTTag=(display=(color=9247983,Name=#jsonStr(text="$5Shadow Mage Shoes")),Enchantments=[(id=swift_sneak,lvl=5)]))@luck=1
group:#rand(1,3):(ID=leather_helmet,NBTTag=(display=(color=15722529,Name=#jsonStr(text="$eLightning Mage Cap")),Enchantments=[(id=channeling,lvl=5)]);ID=leather_chestplate,NBTTag=(display=(color=15722529,Name=#jsonStr(text="$eLightning Mage Jacket")),Enchantments=[(id=channeling,lvl=5)]);ID=leather_leggings,NBTTag=(display=(color=15722529,Name=#jsonStr(text="$eLightning Mage Pants")),Enchantments=[(id=channeling,lvl=5)]);ID=leather_boots,NBTTag=(display=(color=15722529,Name=#jsonStr(text="$eLightning Mage Shoes")),Enchantments=[(id=channeling,lvl=5)]))@luck=1
group:#rand(1,3):(ID=leather_helmet,NBTTag=(display=(color=51200,Name=#jsonStr(text="$aPoison Mage Cap")),Enchantments=[(id=thorns,lvl=5)]);ID=leather_chestplate,NBTTag=(display=(color=51200,Name=#jsonStr(text="$aPoison Mage Jacket")),Enchantments=[(id=thorns,lvl=5)]);ID=leather_leggings,NBTTag=(display=(color=51200,Name=#jsonStr(text="$aPoison Mage Pants")),Enchantments=[(id=thorns,lvl=5)]);ID=leather_boots,NBTTag=(display=(color=51200,Name=#jsonStr(text="$aPoison Mage Shoes")),Enchantments=[(id=thorns,lvl=5)]))@luck=1
group:#rand(1,3):(ID=leather_helmet,NBTTag=(display=(color=29686,Name=#jsonStr(text="$3Musical Mage Cap")),Enchantments=[(id=unbreaking,lvl=5)]);ID=leather_chestplate,NBTTag=(display=(color=29686,Name=#jsonStr(text="$3Musical Mage Jacket")),Enchantments=[(id=unbreaking,lvl=5)]);ID=leather_leggings,NBTTag=(display=(color=29686,Name=#jsonStr(text="$3Musical Mage Pants")),Enchantments=[(id=unbreaking,lvl=5)]);ID=leather_boots,NBTTag=(display=(color=29686,Name=#jsonStr(text="$3Musical Mage Shoes")),Enchantments=[(id=unbreaking,lvl=5)]))@luck=1

/ 003010: Magic Cards
group(type=item,ID=lucky:magical_lucky_potion,amount=#rand(1,3),NBTTag=(CustomModelData=1003031,display=(Name=#jsonStr(text="$fMagic Knockback")),Drops=["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=1
group(type=item,ID=lucky:magical_lucky_potion,amount=#rand(1,3),NBTTag=(CustomModelData=1003032,display=(Name=#jsonStr(text="$6Magic Fire")),Drops=["group(type=block,ID=fire,posOffset=#circleOffset(0,3),amount=50;type=block,ID=flowing_lava;type=particle,ID=splashpotion,potion=fire_resistance)"]))@luck=1
group(type=item,ID=lucky:magical_lucky_potion,amount=#rand(1,3),NBTTag=(CustomModelData=1003033,display=(Name=#jsonStr(text="$0Magic Blindness")),Drops=["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=1
group(type=item,ID=lucky:magical_lucky_potion,amount=#rand(1,3),NBTTag=(CustomModelData=1003034,display=(Name=#jsonStr(text="$2Magic Sickness")),Drops=["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=1
group(type=item,ID=lucky:magical_lucky_potion,amount=#rand(1,3),NBTTag=(CustomModelData=1003035,display=(Name=#jsonStr(text="$4Magic Damage")),Drops=["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=1
group(type=item,ID=lucky:magical_lucky_potion,amount=#rand(1,3),NBTTag=(CustomModelData=1003036,display=(Name=#jsonStr(text="$cMagic Explosion")),Drops=["group(type=difficulty,ID=hard;type=explosion,damage=4;type=particle,ID=splashpotion,potion=harming)"]))@luck=1
group(type=item,ID=lucky:magical_lucky_potion,amount=#rand(1,3),NBTTag=(CustomModelData=1003037,display=(Name=#jsonStr(text="$aMagic Poison")),Drops=["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=1
group(type=item,ID=lucky:magical_lucky_potion,amount=#rand(1,3),NBTTag=(CustomModelData=1003038,display=(Name=#jsonStr(text="$3Magic Monsters")),Drops=["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=1
group(type=item,ID=lucky:magical_lucky_potion,NBTTag=(CustomModelData=1003039,display=(Name=#jsonStr(text="$5Magic Deffects")),Drops=["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=1@chance=0.7
group(type=item,ID=lucky:magical_lucky_potion,amount=#rand(1,3),NBTTag=(CustomModelData=1003040,display=(Name=#jsonStr(text="$7Magic Meteroite")),Drops=["type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=stone),trail=(frequency=0.1,drops=[\"type=block,ID=stone,delay=0.4\",\"type=block,ID=stone,meta=1,delay=0.4@chance=0.3\"]),impact=[\"group(type=explosion,damage=4,fire=true;type=structure,ID=meteor,delay=0.4)\"])"]))@luck=1
group(type=item,ID=lucky:magical_lucky_potion,amount=#rand(1,3),NBTTag=(CustomModelData=1003041,display=(Name=#jsonStr(text="$eMagic Hole")),Drops=["type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=iron_pickaxe),trail=(frequency=0.5,drops=[\"type=particle,ID=block.dirt\"]),impact=[\"group(type=structure,ID=drill_hole,posY=#bPosY-1;type=particle,ID=block.dirt,posY=#bExactPosY-7,size=(2.0,3.0,2.0),particleAmount=2000;type=sound,ID=block.gravel.break,volume=2.0)\"])"]))@luck=1
group(type=item,ID=lucky:magical_lucky_potion,amount=#rand(1,3),NBTTag=(CustomModelData=1003042,display=(Name=#jsonStr(text="$fMagic Web")),Drops=["type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=cobweb),impact=[\"type=fill,ID=cobweb,size=(3,2,3),posOffset=(-1,0,-1)\"])"]))@luck=1

group(type=item,ID=lucky:magical_lucky_potion,amount=#rand(1,3),NBTTag=(CustomModelData=1003061,display=(Name=#jsonStr(text="$bMagic Speed")),Drops=["group(type=effect,ID=speed,range=4,amplifier=2,duration=15;type=particle,ID=splashpotion,potion=swiftness;type=item,ID=#randList(cookie,sugar),posOffset=#circleOffset(0.0,2.0),amount=30)"]))@luck=1
group(type=item,ID=lucky:magical_lucky_potion,amount=#rand(1,3),NBTTag=(CustomModelData=1003062,display=(Name=#jsonStr(text="$6Magic Strength")),Drops=["group(type=effect,ID=strength,range=4,amplifier=1,duration=15;type=effect,ID=resistance,range=4,amplifier=1,duration=15;type=particle,ID=splashpotion,potion=strength)"]))@luck=1
group(type=item,ID=lucky:magical_lucky_potion,amount=#rand(1,3),NBTTag=(CustomModelData=1003063,display=(Name=#jsonStr(text="$dMagic Health")),Drops=["group(type=effect,ID=instant_health,range=4,amplifier=3;type=effect,ID=regeneration,range=4,amplifier=1,duration=15;type=particle,ID=splashpotion,potion=healing;type=particle,ID=heart,size=(1.5,0.5,1.5),particleAmount=300)"]))@luck=1
group(type=item,ID=lucky:magical_lucky_potion,amount=#rand(1,3),NBTTag=(CustomModelData=1003064,display=(Name=#jsonStr(text="$eMagic Jump")),Drops=["group(type=effect,ID=jump_boost,range=4,amplifier=2,duration=15;type=particle,ID=splashpotion,potion=leaping;type=entity,ID=rabbit,posOffset=#circleOffset(0.0,2.0),amount=8)"]))@luck=1
group(type=item,ID=lucky:magical_lucky_potion,amount=#rand(1,3),NBTTag=(CustomModelData=1003065,display=(Name=#jsonStr(text="$fMagic Invisibility")),Drops=["group(type=effect,ID=invisibility,range=4,duration=15;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=1
group(type=item,ID=lucky:magical_lucky_potion,amount=#rand(1,3),NBTTag=(CustomModelData=1003066,display=(Name=#jsonStr(text="$6Magic Boost")),Drops=["group(type=effect,ID=health_boost,range=4,amplifier=1,duration=15;type=effect,ID=absorption,range=4,amplifier=1,duration=15;type=particle,ID=splashpotion,potion=healing)"]))@luck=1
group(type=item,ID=lucky:magical_lucky_potion,amount=#rand(1,3),NBTTag=(CustomModelData=1003067,display=(Name=#jsonStr(text="$cMagic Saturation")),Drops=["group(type=effect,ID=saturation,range=4,amplifier=3,duration=15;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_beef,cooked_rabbit,cookie,golden_apple,golden_carrot,melon,mushroom_stew,potato,pumpkin_pie,rabbit_stew,beef,salmon,mutton),amount=7)"]))@luck=1
group(type=item,ID=lucky:magical_lucky_potion,NBTTag=(CustomModelData=1003068,display=(Name=#jsonStr(text="$6Magic Effects")),Drops=["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=3)"]))@luck=1@chance=0.7

group(type=item,ID=lucky:magical_lucky_potion,amount=#rand(1,2),NBTTag=(display=(Name=#jsonStr(text="$5$lWild Card"))))@luck=2@chance=0.7


/ 003011: Enchantments
ID=enchanted_book,NBTTag=(StoredEnchantments=#randEnchantment),amount=#rand(7,10)@luck=1
ID=enchanted_book,NBTTag=(StoredEnchantments=#randList(#luckySwordEnchantments,#luckyBowEnchantments,#luckyCrossbowEnchantments,#luckyTridentEnchantments,#luckyToolEnchantments,#luckyAxeEnchantments,#luckyFishingRodEnchantments,#luckyHelmetEnchantments,#luckyChestplateEnchantments,#luckyLeggingsEnchantments,#luckyBootsEnchantments)),amount=#randList(1,1,1,2)@luck=2
group(ID=bookshelf,amount=#rand(0,6);ID=lapis_lazuli,amount=#rand(0,9);ID=#randList(air,chipped_anvil,damaged_anvil,enchanting_table,grindstone),amount=#randList(0,1);type=entity,ID=experience_bottle,NBTTag=(Motion=#randLaunchMotion),amount=#rand(7,37))@luck=1
ID=enchanted_book,amount=#rand(7,10)@luck-1

/ 003012: Enchanted Items etc.
group(ID=obsidian,amount=9;ID=end_crystal)@luck=1
group(ID=apple,amount=16;ID=golden_apple,amount=4;ID=enchanted_golden_apple)@luck=2@chance=0.9
ID=experience_bottle,amount=64@luck=1
ID=experience_bottle,amount=160@luck=2
ID=experience_bottle,amount=420@luck=2@chance=0.5
group(ID=coal,amount=#rand(8,24);ID=gunpowder,amount=#rand(5,13);ID=blaze_powder,amount=#rand(3,7))@luck=0

/ 003013: Structures
type=structure,ID=lbmagical_igloobase@luck=0@chance=0.7
type=structure,ID=lbmagical_swamphut@luck=0@chance=0.8
type=structure,ID=lbmagical_library@luck=1@chance=0.6
group(ID=cobblestone,amount=14;ID=gold_block,amount=4;ID=beacon)@luck=1@chance=0.8
group(ID=gold_block,amount=9;ID=redstone_torch,amount=4;ID=netherrack;ID=fire_charge)@luck=-1@chance=0.8

/ 003014: Applied Magic
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=-1
group(type=block,ID=fire,posOffset=#circleOffset(0,3),amount=50;type=block,ID=flowing_lava;type=particle,ID=splashpotion,potion=fire_resistance)@luck=-1
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=-1
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=-1
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=-1
group(type=difficulty,ID=hard;type=explosion,damage=4;type=particle,ID=splashpotion,potion=harming)"]@luck=-1
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=-1
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=-1
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)@chance=0.7@luck=-1
type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=stone),trail=(frequency=0.1,drops=["type=block,ID=stone,delay=0.4","type=block,ID=stone,meta=1,delay=0.4@chance=0.3"]),impact=["group(type=explosion,damage=4,fire=true;type=structure,ID=meteor,delay=0.4)"])@luck=-1
type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=iron_pickaxe),trail=(frequency=0.5,drops=["type=particle,ID=block.dirt"]),impact=["group(type=structure,ID=drill_hole,posY=#bPosY-1;type=particle,ID=block.dirt,posY=#bExactPosY-7,size=(2.0,3.0,2.0),particleAmount=2000;type=sound,ID=block.gravel.break,volume=2.0)"])@luck=-1
type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=cobweb),impact=["type=fill,ID=cobweb,size=(3,2,3),posOffset=(-1,0,-1)"])@luck=-1
group(type=entity,ID=small_fireball,pos=#bowPos,NBTTag=(NoGravity=1,Motion=#bowMotion,power=111,item=(id=minecraft:blaze_powder),trail=(frequency=0.5,drops=["type=particle,ID=smoke,posY=#bExactPosY+0.4"]),impact=["group(type=block,ID=fire;type=particle,ID=enchanted_hit,posY=#bExactPosY+0.4;type=explosion,radius=0,fire=true;type=entity,ID=falling_block,amount=#randList(0,0,0,0,1,1,1,2,2,2,3),posOffset='#'circleOffset(#rand(1,3)),NBTTag=(BlockState=(Name=fire),Fuse=50b,Motion='#'randLaunchMotion))"]))@luck=-1
group:1:(group(type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=minecraft:blaze_powder),trail=(frequency=0.5,drops=["type=particle,ID=smoke,posY=#bExactPosY+0.4"]),impact=["group:1:(group(type=block,ID=fire;type=particle,ID=enchanted_hit,posY=#bExactPosY+0.4;type=explosion,radius=#rand(1,2),fire=true))"])))@luck=-1
group:1:(group(type=effect,ID="slow_falling",duration=10;type=command,ID="/teleport #pName ~ ~4 ~";type=command,ID="/teleport #pName ~ ~7 ~",delay=0.1;type=command,ID="/teleport #pName ~ ~9 ~",delay=0.2;type=command,ID="/teleport #pName ~ ~10 ~",delay=0.3))@luck=-1
group:1:(group(type=explosion,radius=0,fire=true;type=effect,ID="speed",duration=4,amplifier=3;type=effect,ID="strength",duration=4))@luck=1
group(type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=minecraft:packed_ice),trail=(frequency=0.5,drops=["type=particle,ID=crit,posY=#bExactPosY+0.4"]),impact=["group:1:(group(type=particle,ID=enchanted_hit,posY=#bExactPosY+0.4;type=effect,ID=slowness,range=3,duration=1))"]))@luck=-1
group:1:(group(type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=minecraft:packed_ice),trail=(frequency=0.5,drops=["type=particle,ID=crit,posY=#bExactPosY+0.4"]),impact=["group:1:(group(type=particle,ID=snowball,posY=#bExactPosY+0.4;type=effect,ID=slowness,range=2,duration=2;type=block,ID=snow;type=entity,ID=snowball,amount=21,posY='#'bPosY+#rand(2,8),delay=#rand(0,0.4)))"])))@luck=-1
group:1:(group(type=command,ID="/teleport #pName ~ ~2 ~";type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=minecraft:packed_ice),trail=(frequency=0.5,drops=["type=particle,ID=crit,posY=#bExactPosY+0.4"]),impact=["group:1:(group(type=particle,ID=enchanted_hit;type=effect,ID=slowness,range=3,duration=2,amplifier=2))"])))@luck=-1
group:1:(group(type=effect,ID=resistance,duration=8,amplifier=1;type=particle,ID=crit,posY=#bExactPosY+0.4))@luck=1
group(type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=minecraft:dirt),trail=(frequency=0.5,drops=["type=particle,ID=dirt,posY=#bExactPosY+0.4"]),impact=["group:1:(group(type=effect,ID=harming,range=2;type=entity,ID=falling_block,amount=#randList(0,0,0,0,1,1,1,2,2,2,3),posOffset='#'circleOffset(#rand(1,3)),NBTTag=(BlockState=(Name=#randList(dirt,dirt,dirt,coarse_dirt)),Fuse=50b,Motion='#'randLaunchMotion)))"]))@luck=-1
group:1:(group(type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=minecraft:dirt),trail=(frequency=0.5,drops=["type=particle,ID=dirt,posY=#bExactPosY+0.4"]),impact=["group:1:(group(type=explosion,radius=2,fire=false,type=effect,ID=harming,range=4,amplfier=1;type=entity,ID=falling_block,amount=#randList(1,1,1,2,2,3),posOffset='#'circleOffset(#rand(1,3)),NBTTag=(BlockState=(Name=#randList(dirt,dirt,dirt,coarse_dirt,dirt,gravel)),Fuse=50b,Motion='#'randLaunchMotion)))"])))@luck=-1
group:1:(group(type=command,ID="/teleport #pName ~ ~4 ~";type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=minecraft:dirt),trail=(frequency=0.5,drops=["type=particle,ID=dirt,posY=#bExactPosY+0.4"]),impact=["group:1:(group(type=particle,ID=enchanted_hit;type=effect,ID=harming,range=2))"])))@luck=-1
group:1:(group(type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=minecraft:dirt),trail=(frequency=0.5,drops=["type=particle,ID=wooden_shovel,posY=#bExactPosY+0.4"]),impact=["group:1:(group(type=effect,ID=harming,range=2;type=effect,ID=blindness,range=3,duration=2,amplifier=4;type=command,ID="/fill ~ ~1 ~ ~ ~-1 ~ air destroy";type=command,ID="/setblock ~1 ~ ~ air destroy";type=command,ID="/setblock ~-1 ~ ~ air destroy";type=command,ID="/setblock ~ ~ ~1 air destroy";type=command,ID="/setblock ~ ~ ~-1 air destroy";type=entity,ID=falling_block,amount=#randList(0,0,0,0,1,1,1,2,2,2,3),posOffset='#'circleOffset(#rand(1,3)),NBTTag=(BlockState=(Name=#randList(dirt,dirt,dirt,coarse_dirt,dirt,gravel)),Fuse=50b,Motion='#'randLaunchMotion)))"])))@luck=-1
group(type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=minecraft:nether_star),trail=(frequency=0.5,drops=["type=particle,ID=crit,posY=#bExactPosY+0.4"]),impact=["group:1:(group(type=command,ID="/teleport @e[distance=..2] ~ ~2 ~",range=2))"]))@luck=-1
group:1:(group(type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=minecraft:nether_star),trail=(frequency=0.5,drops=["type=particle,ID=crit,posY=#bExactPosY+0.4"]),impact=["group:1:(group(type=effect,ID="instant_damage",range=2;type=command,ID="/teleport @e[distance=..2] ~ ~5 ~",range=2))"])))@luck=-1
group:1:(group(type=command,ID="/teleport #pName ~ ~1 ~",delay=#randList(0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1.0,1.1,1.2,1.3,1.4,1.5,1.6,1.7,1.8,1.9,2.0,2.1,2.2,2.3,2.4,2.5,2.6,2.7,2.8,2.9,3.0,3.1,3.2,3.3,3.4,3.5,3.6,3.7,3.8,3.9,4.0),amount=99)@luck=-1
group:1:(group(type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=minecraft:nether_star),trail=(frequency=0.5,drops=["type=particle,ID=crit,posY=#bExactPosY+0.4"]),impact=["group:1:(group(type=effect,ID="instant_damage",range=3,amplifier=2))"])))@luck=-1
group:1:(group(type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=minecraft:air),trail=(frequency=0.5,drops=["type=particle,ID=witch,posY=#bExactPosY+0.4"]),impact=["group:1:(group(type=entity,ID=lucky:lucky_projectile,posX=#bPosX,posY=#bPosY,posZ=#bPosZ,NBTTag=(Motion=#randLaunchMotion(0.6,15),item=(id=minecraft:air),trail=(frequency=0.5,drops=["group(type=particle,ID=witch)"]),impact=["group(type=effect,ID="instant_damage",range=1)"]);type=effect,ID="instant_damage",range=2))"])))@luck=-1
group:1:(group(type=command,ID="/effect give @e[distance=1..4] instant_damage 1 1"))
group:1:(group(type=command,ID="/teleport #pName ~ ~-1 ~",delay=#randList(0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1.0,1.1,1.2,1.3,1.4,1.5,1.6),amount=42)
group:1:(group(type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=minecraft:iron_sword),trail=(frequency=0.5,drops=["type=particle,ID=witch,posY=#bExactPosY+0.4"]),impact=["group:1:(group(type=command,ID="/effect give #pName instant_health 1 1";type=effect,ID="instant_damage",range=3,amplifier=1))"])))@luck=-1
group:1:(group(type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=minecraft:air),trail=(frequency=0.5,drops=["type=particle,ID=electric_spark,posY=#bExactPosY+0.4"]),impact=["group(type=effect,ID=instant_damage,range=4,delay=0.1;type=effect,ID=instant_damage,range=1)"])))@luck=-1
group:1:(group(type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=minecraft:air),trail=(frequency=0.5,drops=["type=particle,ID=electric_spark,posY=#bExactPosY+0.4"]),impact=["group(type=entity,ID=lightning_bolt)"])))@luck=-1
group:1:(group(type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=minecraft:air),trail=(frequency=0.5,drops=["type=particle,ID=electric_spark,posY=#bExactPosY+0.4"]),impact=["group(type=command,ID="/teleport #pName #bPosX #bPosY #bPosZ")"])))@luck=-1
group:1:(group(type=explosion,radius=0,fire=false;type=command,ID="/effect give #pName speed 5 2";type=command,ID="/effect give #pName jump_boost 5 3"))
group:1:(group(type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=minecraft:air),trail=(frequency=0.5,drops=["type=particle,ID=sneeze,posY=#bExactPosY+0.4"]),impact=["group(type=effect,ID=instant_damage,range=2)"])))@luck=-1
group:1:(group(type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=minecraft:air),trail=(frequency=0.5,drops=["type=particle,ID=sneeze,posY=#bExactPosY+0.4"]),impact=["group(type=particle,ID=splashpotion,size=(1.5,0.5,1.5),amount=37,delay=#randList(0.0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1.0,1.1,1.2,1.3,1.4,1.5,1.6,1.7,1.8,1.9,2.0),potion=poison;type=effect,ID=poison,duration=3,range=3,amount=100,delay=#randList(0.0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1.0,1.1,1.2,1.3,1.4,1.5,1.6,1.7,1.8,1.9,2.0))"])))@luck=-1
group:1:(group(type=command,ID="/teleport #pName ~ ~4 ~",delay=0.05;type=particle,ID=splashpotion,size=(1.5,0.5,1.5),particleAmount=80;type=command,ID="/effect give @e[distance=1..4] poison 3 0"))@luck=-1
group:1:(group(type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=minecraft:air),trail=(frequency=0.5,drops=["type=particle,ID=sneeze,posY=#bExactPosY+0.4"]),impact=["group(type=particle,ID=splashpotion,size=(1.5,0.5,1.5),potion=poison;type=effect,ID=instant_damage,range=1;type=effect,ID=poison,duration=3,range=2,amplifier=1)"])))@luck=-1
group:1:(group(type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=music_disc_strad),trail=(frequency=0.5,drops=["type=particle,ID=note,posY=#bExactPosY+0.4"]),impact=["group(type=command,ID="/playsound lbmagical:fx_badchord player @a ~ ~ ~ 16 1 0.4";type=effect,ID=nausea,range=2,duration=#rand(2,5))"])))
group:1:(group(type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=note_block),trail=(frequency=0.5,drops=["group(type=command,ID="/playsound lbmagical:fx_beatload player @a ~ ~ ~ 16 1 0.4";type=particle,ID=note,posY=#bExactPosY+0.4)"]),impact=["group(type=command,ID="/playsound lbmagical:fx_beathit player @a ~ ~ ~ 16 1 0.4";type=block,ID=note_block;type=block,ID=air,delay=0.1;type=explosion,radius=2,fire=false,delay=0.1)"])))
group:1:(group(type=explosion,radius=0,fire=false;type=command,ID="/playsound lbmagical:fx_perfect player @a ~ ~ ~ 16 1 0.4";type=command,ID="/effect give #pName speed 10 1";type=command,ID="/effect give #pName jump_boost 10 3"))
group:1:(group(type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=music_disc_strad),trail=(frequency=0.5,drops=["type=particle,ID=note,posY=#bExactPosY+0.4,amount=10"]),impact=["group(type=command,ID="/playsound lbmagical:fx_professional player @a ~ ~ ~ 16 1 0.4";type=effect,ID=#randList(slowness,mining_fatigue,instant_damage,nausea,hunger,weakness,unlock),range=2,duration=#rand(2,4))"])))


/ ========== TOOLS & ARMOR ==========

/ all wood, stone and gold tools
group(ID=wooden_sword;ID=wooden_shovel;ID=wooden_pickaxe;ID=wooden_axe;ID=wooden_hoe)@luck=0
group(ID=stone_sword;ID=stone_shovel;ID=stone_pickaxe;ID=stone_axe;ID=stone_hoe)@luck=0
group(ID=golden_sword;ID=golden_shovel;ID=golden_pickaxe;ID=golden_axe;ID=golden_hoe)@luck=1

/ 2-3 iron tools
group:#rand(2,3):(ID=iron_shovel;ID=iron_pickaxe;ID=iron_axe;ID=iron_sword;ID=iron_hoe)@luck=1

/ 1-2 diamond tools
group:#rand(1,2):(ID=diamond_sword;ID=diamond_shovel;ID=diamond_pickaxe;ID=diamond_axe;ID=diamond_hoe)@luck=2

/ all leather and gold armor
group(ID=leather_helmet;ID=leather_chestplate;ID=leather_leggings;ID=leather_boots)@luck=0
group(ID=golden_helmet;ID=golden_chestplate;ID=golden_leggings;ID=golden_boots;ID=golden_horse_armor)@luck=1

/ 2-3 chain and iron armor
group:#rand(2,3):(ID=chainmail_helmet;ID=chainmail_chestplate;ID=chainmail_leggings;ID=chainmail_boots)@luck=2
group:#rand(2,3):(ID=iron_helmet;ID=iron_chestplate;ID=iron_leggings;ID=iron_boots;ID=iron_horse_armor)@luck=1

/ 1-2 diamond armor
group:#rand(1,2):(ID=diamond_helmet;ID=diamond_chestplate;ID=diamond_leggings;ID=diamond_boots;ID=diamond_horse_armor)@luck=2

/ all horse armor
group(ID=iron_horse_armor;ID=golden_horse_armor;ID=diamond_horse_armor)@luck=2

/ bow and arrows
group(ID=bow;ID=arrow,amount=#rand(16,32))@luck=1

/ ========== BLOCKS ==========

ID=sponge@luck=0
ID=tnt,amount=8@luck=1
ID=obsidian,amount=#rand(5,10)@luck=1
ID=enchanting_table@luck=2
ID=end_portal_frame,amount=#rand(2,6)@luck=2
ID=dragon_egg@luck=1
ID=ender_chest,amount=2@luck=0
ID=beacon@luck=2
ID=dropper,amount=8@luck=0
ID=hay_block,amount=8@luck=0

/ chests
type=block,ID=chest,tileEntity=(Items=#chestLootTable("chests/spawn_bonus_chest"))@luck=0
type=block,ID=chest,tileEntity=(Items=#chestLootTable("chests/simple_dungeon"))@luck=1
type=block,ID=chest,tileEntity=(Items=#chestLootTable("chests/stronghold_corridor"))@luck=1
type=block,ID=chest,tileEntity=(Items=#chestLootTable("chests/shipwreck_map"))@luck=1

/ ========= ITEMS ==========

ID=gold_ingot,amount=#rand(8,16)@luck=1
ID=stick@luck=-1
ID=painting,amount=4@luck=0
ID=saddle,amount=2@luck=0
ID=cake@luck=0
ID=rotten_flesh@luck=-1
ID=nether_star@luck=2
ID=poppy,NBTTag=(display=(Name=#jsonStr(text="Romantic Rose",color=dark_red)))@luck=-1
ID=rabbit_stew,amount=#rand(5,7)@luck=1

/ ========== GROUPS ==========

/ bookshelves and books
group(ID=bookshelf,amount=#rand(6,12);ID=book,amount=#rand(8,16))@luck=0

/ pumpkins and jack o'lanterns
group(ID=pumpkin,amount=#rand(8,16);ID=jack_o_lantern,amount=#rand(8,16))@luck=0

/ golden apples
group(ID=golden_apple,amount=#rand(2,4);ID=enchanted_golden_apple,amount=#rand(1,2))@luck=2

/ buckets
group(ID=bucket,amount=#rand(1,2);ID=water_bucket,amount=#rand(1,2);ID=lava_bucket,amount=#rand(1,2);ID=milk_bucket,amount=#rand(1,2))@luck=0

/ meat (raw and cooked)
group:1:(group(ID=porkchop,amount=#rand(8,16);ID=cooked_porkchop,amount=#rand(4,8));group(ID=salmon,amount=#rand(8,16);ID=cooked_salmon,amount=#rand(4,8));group(ID=beef,amount=#rand(8,16);ID=cooked_beef,amount=#rand(4,8));group(ID=chicken,amount=#rand(8,16);ID=cooked_chicken,amount=#rand(4,8));group(ID=mutton,amount=#rand(8,16);ID=cooked_mutton,amount=#rand(4,8));group(ID=rabbit,amount=#rand(8,16);ID=cooked_rabbit,amount=#rand(4,8)))@luck=1

/ vegetable food (carrots, potatoes, pumpkin pie)
group:1:(group(ID=carrot,amount=#rand(8,16);ID=golden_carrot,amount=#rand(4,8));group(ID=potato,amount=#rand(8,16);ID=baked_potato,amount=#rand(4,8);ID=poisonous_potato,amount=#rand(2,4));group(ID=pumpkin_pie,amount=#rand(6,12)))@luck=1

/ ender pearls and eyes
group(ID=ender_pearl,amount=10;ID=ender_eye,amount=5)@luck=2

/ potions
ID=#randList(potion,splash_potion,lingering_potion),NBTTag=(Potion=#randPotion),amount=#rand(4,8)@luck=1

/ spawn eggs
ID=#randSpawnEgg,amount=#rand(4,8)@luck=1

/ heads
group:#rand(1,3):(ID=skeleton_skull;ID=wither_skeleton_skull;ID=zombie_head;ID=player_head;ID=creeper_head)@luck=0

/ jukebox and music discs
group(ID=jukebox;ID=#randList(music_disc_11,music_disc_13,music_disc_blocks,music_disc_chirp,music_disc_far,music_disc_mall,music_disc_mellohi,music_disc_stal,music_disc_strad,music_disc_wait,music_disc_ward),amount=#rand(1,3))@luck=1

/ brewing
group(ID=ender_pearl,amount=#rand(1,3);ID=blaze_rod,amount=#rand(1,3);ID=ghast_tear,amount=#rand(1,3);ID=gold_nugget,amount=#rand(1,3);ID=nether_wart,amount=#rand(1,3);ID=spider_eye,amount=#rand(1,3);ID=fermented_spider_eye,amount=#rand(1,3);ID=blaze_powder,amount=#rand(1,3);ID=magma_cream,amount=#rand(1,3);ID=ender_eye,amount=#rand(1,3);ID=glistering_melon_slice,amount=#rand(1,3);ID=rabbit_foot,amount=#rand(1,3);type=particle,ID=splashpotion,potion="fire_resistance")@luck=2

/ redstone
group(ID=dispenser,amount=2;ID=note_block,amount=1;ID=sticky_piston,amount=4;ID=piston,amount=4;ID=tnt,amount=6;ID=lever,amount=2;ID=stone_pressure_plate,amount=2;ID=oak_pressure_plate,amount=2;ID=redstone_torch,amount=8;ID=stone_button,amount=2;ID=oak_trapdoor,amount=2;ID=iron_trapdoor,amount=2;ID=oak_fence_gate,amount=1;ID=redstone_lamp,amount=4;ID=tripwire_hook,amount=2;ID=oak_button,amount=2;ID=light_weighted_pressure_plate,amount=1;ID=heavy_weighted_pressure_plate,amount=1;ID=daylight_detector,amount=1;ID=hopper,amount=4;ID=dropper,amount=#rand(2,4);ID=oak_door,amount=1;ID=iron_door,amount=1;ID=redstone,amount=#rand(32,64);ID=repeater,amount=8;ID=comparator,amount=2;type=particle,ID=splashpotion,potion="healing")@luck=2

/ colorful
group(group:1:(ID=#randColor_wool,amount=#rand(32,64);ID=#randColor_terracotta,amount=#rand(32,64);ID=#randColor_dye,amount=#rand(32,64));type=particle,ID=splashpotion,potion=#randPotion,amount=10)@luck=1

/ iron, gold, diamond, emerald, lapis, with fireworks
group(
    ID=iron_ingot,amount=#rand(8,16);
    ID=gold_ingot,amount=#rand(8,16);
    ID=diamond,amount=#rand(8,16);
    ID=emerald,amount=#rand(8,16);
    ID=lapis_lazuli,amount=#rand(8,16);
    type=entity,ID=firework_rocket,NBTTag=(
        LifeTime=20,FireworksItem=(id=firework_rocket,Count=1,tag=#randFireworksRocket)
    ),amount=20,posOffset=#circleOffset(0,2)
)@luck=2

/ quartz
group(
    ID=quartz_slab,amount=#rand(4,8);
    ID=nether_quartz_ore,amount=#rand(16,32);
    ID=quartz_block,amount=#rand(4,8);
    ID=quartz_block,damage=1,amount=#rand(4,8);
    ID=quartz_block,damage=2,amount=#rand(4,8);
    ID=quartz_stairs,amount=#rand(4,8);ID=quartz,amount=#rand(24,32);
    type=particle,ID=splashpotion,potion="invisibility"
)@luck=1

/ fish
group(ID=fishing_rod;ID=#randList(cod,pufferfish,salmon,tropical_fish),amount=#rand(10,20))@luck=1

/ random jokes
group:1:(ID=clock,NBTTag=(display=(Name=#jsonStr(text="You're wasting your time")));ID=tropical_fish,NBTTag=(display=(Name=#jsonStr(text="I'm funny")));ID=pufferfish,NBTTag=(display=(Name=#jsonStr(text="Oooooh!"))))@luck=-1

/ flowers
ID=#randList(dandelion,poppy,blue_orchid,allium,azure_bluet,pink_tulip,oxeye_daisy),amount=64@luck=0

/ enchantment books
ID=enchanted_book,NBTTag=(StoredEnchantments=#randEnchantment),amount=#rand(7,10)@luck=1

/ prismarine
group(ID=prismarine,amount=#rand(4,8);ID=prismarine,damage=1,amount=#rand(4,8);ID=prismarine,damage=2,amount=#rand(4,8);ID=sea_lantern,amount=#rand(4,8);ID=prismarine_shard,amount=#rand(15,30);ID=prismarine_crystals,amount=#rand(10,20);type=particle,ID=splashpotion,potion="invisibility")@luck=1

/ ========== ENTITIES ==========

/ lucky mobs
group:1:(
    type=entity,ID=cow,NBTTag=(CustomName=#jsonStr(text="Lucky Cow",color=yellow,bold=true),CustomNameVisible=true);
    type=entity,ID=chicken,NBTTag=(CustomName=#jsonStr(text="Lucky Chicken",color=yellow,bold=true),CustomNameVisible=true);
    type=entity,ID=sheep,NBTTag=(CustomName=#jsonStr(text="Lucky Sheep",color=yellow,bold=true),CustomNameVisible=true);
    type=entity,ID=rabbit,NBTTag=(CustomName=#jsonStr(text="Lucky Rabbit",color=yellow,bold=true),CustomNameVisible=true);
    type=entity,ID=squid,NBTTag=(CustomName=#jsonStr(text="Unlucky Squid",color=yellow,bold=true),CustomNameVisible=true)
)@luck=0

/ colored sheep
type=entity,ID=sheep,NBTTag=(CustomName=#jsonStr(text="$cM$6r. $eR$aa$2i$bn$3b$5o$dw"),CustomNameVisible=true,Color=#rand(0,15)),posOffset=#circleOffset(4),amount=16@luck=1

/ eggs + diamonds
group(type=entity,ID=egg,NBTTag=(Motion=#randLaunchMotion(0.6,15)),amount=40;type=entity,ID=item,NBTTag=(Item=(id=diamond,Count=1),Motion=#randLaunchMotion(0.7,18)),amount=20)@luck=2

/ thrown exp bottles
type=entity,ID=experience_bottle,NBTTag=(Motion=#randLaunchMotion),amount=#rand(16,32)@luck=2

/ launched tnt
type=entity,ID=tnt,NBTTag=(Fuse=50b,Motion=#randLaunchMotion),amount=15@luck=-2

/ lightning creeper
group(type=difficulty,ID=hard;type=entity,ID=creeper;type=entity,ID=lightning_bolt)@luck=-2
/ giant
group(type=difficulty,ID=hard;type=entity,ID=giant)@luck=-2
/ wither
group(type=difficulty,ID=hard;type=entity,ID=wither)@chance=0.1@luck=-2
/ ghast
group(type=difficulty,ID=hard;type=entity,ID=ghast)@chance=0.2@luck=-2
/ elder guardian
group(type=difficulty,ID=hard;type=entity,ID=guardian,NBTTag=(Elder=1))@chance=0.5@luck=-2
/ killer rabbit
group(type=difficulty,ID=hard;type=entity,ID=rabbit,NBTTag=(RabbitType=99))@luck=-1

/ bob the zombie
group(type=difficulty,ID=hard;type=entity,ID=zombie,NBTTag=(
    HandItems=[(id=diamond_sword,Count=1,tag=(Enchantments=#luckySwordEnchantments))],
    ArmorItems=[(id=diamond_boots,Count=1,tag=(Enchantments=#luckyBootsEnchantments)),(id=diamond_leggings,Count=1,tag=(Enchantments=#luckyLeggingsEnchantments)),(id=diamond_chestplate,Count=1,tag=(Enchantments=#luckyChestplateEnchantments)),(id=diamond_helmet,Count=1,tag=(Enchantments=#luckyHelmetEnchantments))],
    HandDropChances=[0.5f,0f],ArmorDropChances=[0.3f,0.3f,0.3f,0.3f],
    CustomName=#jsonStr(text="Bob",color=blue,bold=true),CustomNameVisible=true)
)@luck=-2

/ ghostly horseman skeleton
group(type=difficulty,ID=hard;type=entity,ID=bat,NBTTag=(
    Silent=true,
    active_effects=[(id=invisibility,duration=100000,amplifier=1,show_particles=false)],
    Passengers=[(id=skeleton_horse,Tame=true,Type=4,
        Passengers=[(id=skeleton,
            HandItems=[(id=bow,Count=1,tag=(Enchantments=#luckyBowEnchantments))],
            ArmorItems=[(id=chainmail_boots,Count=1,tag=(Enchantments=#luckyBootsEnchantments)),(id=chainmail_leggings,Count=1,tag=(Enchantments=#luckyLeggingsEnchantments)),(id=chainmail_chestplate,Count=1,tag=(Enchantments=#luckyChestplateEnchantments)),(id=chainmail_helmet,Count=1,tag=(Enchantments=#luckyHelmetEnchantments))],
            HandDropChances=[0.5f,0f],ArmorDropChances=[0.3f,0.3f,0.3f,0.3f],
            CustomName=#jsonStr(text="Ghostly Horseman",color=gray,bold=true),CustomNameVisible=true)
        ])
    ])
)@luck=-2

/ stacked villager and cows
type=entity,ID=cow,NBTTag=(Passengers=[(id=cow,Passengers=[(id=cow,Passengers=[(id=cow,Passengers=[(id=cow,Passengers=[(id=cow,Passengers=[(id=cow,Passengers=[(id=cow,Passengers=[(id=villager,VillagerData=(profession=nitwit))])])])])])])])])@luck=0

/ horses
type=entity,ID=#randList(horse,skeleton_horse,zombie_horse),amount=12,posOffset=#circleOffset(4),NBTTag=(Tame=true,Owner=#pUUIDArray)@luck=1

/ llamas
type=entity,ID=llama,amount=8,posOffset=#circleOffset(4),NBTTag=(CustomName=#jsonStr(text=#randList(Llaura,Llauretta,Llavender,Llinda,Llisa,Llouise,Llucy,Llydia),color=dark_purple,bold=true),Variant=#rand(0,3),CustomNameVisible=true)@luck=0

/ witch with bats
group(type=difficulty,ID=hard;type=entity,ID=witch;type=entity,ID=bat,posY=#bPosY+#rand(0,2),posOffset=#circleOffset(0,1),amount=64)@luck=-1
/ huge slime and magma cube
group:1:(type=entity,ID=slime,NBTTag=(Size=10);type=entity,ID=magma_cube,NBTTag=(Size=10))@luck=-2

/ pet wolves
group(type=entity,ID=wolf,amount=#rand(5,10),posOffset=#circleOffset(3),NBTTag=(CollarColor=#rand(0,15),Owner=#pUUIDArray,Sitting=true);type=particle,ID="heart",size=(2,0,2),particleAmount=20)@luck=1
/ pet cats
group(type=entity,ID=cat,amount=#rand(5,10),posOffset=#circleOffset(3),NBTTag=(CatType=#rand(0,10),CollarColor=#rand(0,15),Owner=#pUUIDArray,Sitting=true);type=particle,ID="heart",size=(2,0,2),particleAmount=20)@luck=1
/ pet rabbits
group(type=entity,ID=rabbit,amount=#rand(5,10),posOffset=#circleOffset(3),NBTTag=(RabbitType=#rand(0,5));type=particle,ID="heart",size=(2,0,2),particleAmount=20)@luck=1


/ falling blocks (iron, gold, diamond, emerald)
group(type=fill,ID=air,size=(1,8,1);type=entity,ID=falling_block,posY=#bPosY+7,NBTTag=(BlockState=(Name=iron_block));type=particle,ID=large_smoke,size=(1,2,1),particleAmount=500;type=sound,ID=block.fire.extinguish)@luck=0

group(type=fill,ID=air,size=(1,8,1);type=entity,ID=falling_block,posY=#bPosY+7,NBTTag=(BlockState=(Name=gold_block));type=particle,ID=flame,size=(1,2,1),particleAmount=500;type=sound,ID=entity.ghast.shoot)@luck=0

group(type=fill,ID=air,size=(1,8,1);type=entity,ID=falling_block,posY=#bPosY+7,NBTTag=(BlockState=(Name=diamond_block));type=entity,ID=lightning_bolt)@luck=1

group(type=fill,ID=air,size=(1,8,1);type=entity,ID=falling_block,posY=#bPosY+7,NBTTag=(BlockState=(Name=emerald_block));type=particle,ID=happy_villager,size=(1,2,1),particleAmount=500;type=sound,ID=block.grass.break)@luck=0

group(type=fill,ID=air,size=(1,8,1);type=entity,ID=falling_block,posY=#bPosY+7,NBTTag=(BlockState=(Name=lapis_block));type=particle,ID=splash,size=(1,2,1),particleAmount=1000;type=sound,ID=entity.player.swim)@luck=0

/ colorful pole
group(type=fill,ID=air,size=(1,51,1);
    group(
        NBTTag=(BlockState=(Name=red_glazed_terracotta)),posY=#bPosY+5;
        NBTTag=(BlockState=(Name=orange_glazed_terracotta)),posY=#bPosY+10;
        NBTTag=(BlockState=(Name=yellow_glazed_terracotta)),posY=#bPosY+15;
        NBTTag=(BlockState=(Name=lime_glazed_terracotta)),posY=#bPosY+20;
        NBTTag=(BlockState=(Name=light_blue_glazed_terracotta)),posY=#bPosY+25;
        NBTTag=(BlockState=(Name=blue_glazed_terracotta)),posY=#bPosY+30;
        NBTTag=(BlockState=(Name=purple_glazed_terracotta)),posY=#bPosY+35;
        NBTTag=(BlockState=(Name=magenta_glazed_terracotta)),posY=#bPosY+40;
        NBTTag=(BlockState=(Name=pink_glazed_terracotta)),posY=#bPosY+45
    ),type=entity,ID=falling_block;
    type=entity,ID=falling_block,NBTTag=(BlockState=(Name=diamond_block)),posY=#bPosY+50;
    type=entity,ID=lightning_bolt,posY=#bPosY+10,delay=5.3
)@luck=2

/ tnt pole
group(type=fill,ID=air,size=(1,51,1);
    type=entity,ID=falling_block,NBTTag=(BlockState=(Name=redstone_block)),posY=#bPosY+5;
    group(posY=#bPosY+10;posY=#bPosY+15;posY=#bPosY+20;posY=#bPosY+25;posY=#bPosY+30;posY=#bPosY+35;posY=#bPosY+40;posY=#bPosY+45;posY=#bPosY+50),type=entity,ID=falling_block,NBTTag=(BlockState=(Name=tnt))
)@luck=2

/ baby player
type=entity,ID=armor_stand,NBTTag=(Small=true,NoBasePlate=true,ShowArms=true,HandItems=[(id=stone_pickaxe,Count=1)],ArmorItems=[(id=leather_boots,Count=1,tag=(display=(color=#randColor))),(id=leather_leggings,Count=1,tag=(display=(color=#randColor))),(id=leather_chestplate,Count=1,tag=(display=(color=#randColor))),(id=player_head,Count=1,tag=(SkullOwner=#pName))],Rotation=[#pYaw+180f,0f],CustomName=#jsonStr(text="Baby #pName"),CustomNameVisible=true)@luck=0

/ ==== Monster Apocalyple ====

group(
    / sword, difficulty, time, potion effects
    ID=wooden_sword;
    type=difficulty,ID=hard;
    type=time,ID=18750;
    type=effect,ID=slowness,duration=30,amplifier=4;
    type=effect,ID=blindness,duration=30;
    group:1:(
        / zombies, creepers, spiders & cave spiders, silverfish & endermites, guardians
        type=entity,ID=zombie,amount=#rand(20,50);
        type=entity,ID=creeper,amount=#rand(10,30);
        group(type=entity,ID=spider,amount=#rand(15,45);type=entity,ID=cave_spider,amount=#rand(5,10));
        group(type=entity,ID=silverfish,amount=#rand(15,45);type=entity,ID=endermite,amount=#rand(5,10));
        type=entity,ID=guardian,amount=#rand(10,30);
        / all at once
        group(
            type=entity,ID=zombie,amount=#rand(20,50);
            type=entity,ID=creeper,amount=#rand(10,30);
            group(type=entity,ID=spider,amount=#rand(15,45);type=entity,ID=cave_spider,amount=#rand(5,10);
            type=entity,ID=silverfish,amount=#rand(15,45);type=entity,ID=endermite,amount=#rand(5,10);
            type=entity,ID=guardian,amount=#rand(10,30))
        )
    ),posOffset=#circleOffset(8,10)
)@luck=-2

/ ========== STRUCTURES ==========

/ anvil cage
group(
    type=structure,ID=cage,pos=#pPos,rotation=#pDirect;
    type=fill,ID=air,size=(1,70,1),pos=#pPos;type=fill,ID=anvil,size=(1,2,1),pos=(#pPosX,#pPosY+70,#pPosZ)
)@luck=-2

/ lava cage
group(
    type=structure,ID=cage,pos=#pPos,rotation=#pDirect;
    type=block,ID=lava,pos=(#pPosX,#pPosY+3,#pPosZ)
)@luck=-2

/ water cage
type=structure,ID=water_cage,pos=#pPos@luck=-2

/ lava pit
group(
    type=fill,ID=air,size=(3,20,3),pos=(#pPosX-1,#pPosY-20,#pPosZ-1);
    type=fill,ID=lava,size=(3,1,3),pos=(#pPosX-1,#pPosY-20,#pPosZ-1);
    type=fill,ID=cobweb,size=(3,1,3),pos=(#pPosX-1,#pPosY-19,#pPosZ-1)
)@luck=-2

/ lucky buildings
type=structure,ID=lucky_fort,pos=#pPos@luck=2
type=structure,ID=lucky_temple,pos=#pPos@chance=0.4@luck=2

/ bedrock problem
type=structure,ID=bedrock_problem,rotation=#pDirect@luck=-1

/ explosion
group(type=difficulty,ID=hard;type=explosion,radius=6)@luck=-2

/ choice of 2 lucky blocks
group:1:(type=structure,ID=lucky_choice_left,rotation=#pDirect;type=structure,ID=lucky_choice_right,rotation=#pDirect)@luck=0

/ wishing wells
group(
    type=structure,ID=wishing_well;type=message,ID="A wishing well? Maybe you should throw in a coin...";
    type=command,ID=/give #pName gold_nugget{display:{Name:"{\"text\":\"Coin\",\"color\":\"gold\"}"}};
    type=block,ID=lucky:lucky_block,posY=#bPosY-3,NBTTag=(Drops=["group(
        type=message,ID=\"$bYour wish came true!\";
        type=block,ID=air,posY='#'bPosY+3;
        type=block,ID=beacon,posY='#'bPosY+2;
        type=entity,ID=firework_rocket,NBTTag=(LifeTime=20,FireworksItem=(id=firework_rocket,Count=1,tag='#'randFireworksRocket)),amount=20,posY='#'bPosY+3,posOffset='#'circleOffset(2);
        ID=gold_ingot,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(2);
        ID=diamond,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(2);
        ID=emerald,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(2);
        ID=lapis_lazuli,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(2)
    )"])
)@luck=2

group(
    type=structure,ID=wishing_well;type=message,ID="A wishing well? Maybe you should throw in a coin...";
    type=command,ID=/give #pName gold_nugget{display:{Name:"{\"text\":\"Coin\",\"color\":\"gold\"}"}};
    type=block,ID=lucky:lucky_block,posY=#bPosY-3,NBTTag=(Drops=["group(
        type=message,ID=\"$eYour wish came true! (If you like potatoes)\";
        type=block,ID=air,posY='#'bPosY+3;
        type=block,ID=beacon,posY='#'bPosY+2;
        ID=potato,amount=128,posY='#'bPosY+10,posOffset='#'circleOffset(2);
        ID=baked_potato,amount=64,posY='#'bPosY+10,posOffset='#'circleOffset(2);
        ID=poisonous_potato,amount=32,posY='#'bPosY+10,posOffset='#'circleOffset(2)
    )"])
)@luck=1

group(
    type=structure,ID=wishing_well;
    type=message,ID="A wishing well? Maybe you should throw in a coin...";
    type=command,ID=/give #pName gold_nugget{display:{Name:"{\"text\":\"Coin\",\"color\":\"gold\"}"}};
    type=block,ID=lucky:lucky_block,posY=#bPosY-3,NBTTag=(Drops=["group(
        type=message,ID=\"$4Your death wish came true!\";
        type=block,ID=air,posY='#'bPosY+3;
        type=block,ID=beacon,posY='#'bPosY+2;
        type=entity,ID=tnt,NBTTag=(Fuse=50b,Motion='#'randLaunchMotion),posY='#'bPosY+7,amount=20
    )"])
)@luck=-2

/ bouncing castle
type=structure,ID=bouncing_castle,pos=#pPos,rotation=#pDirect

/ giant lucky blocks
type=structure,ID=giant_lucky_block_good,rotation=#pDirect@luck=2
type=structure,ID=giant_lucky_block_bad,rotation=#pDirect@luck=-2
