/ ========== 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=#rand(8,24)@luck=1
ID=obsidian,amount=#rand(16,24)@luck=1
ID=enchanting_table@luck=2
ID=ender_chest,amount=2@luck=0
ID=beacon@luck=2
ID=dropper,amount=8@luck=0
ID=hay_block,amount=#rand(0,8)@luck=0
ID=log,amount=#rand(1,16)@luck=1
ID=stone,amount=#rand(1,16)@luck=1
ID=bedrock,amount=#rand(1,16)@luck=1
ID=stained_hardened_clay,damage=#rand(0,15),amount=#rand(1,32)@luck=1
ID=wool,damage=#rand(0,15),amount=#rand(1,32)@luck=1
ID=stained_glass,damage=#rand(0,15),amount=#rand(1,32)@luck=1

/ chests
type=block,ID=chest,tileEntity=(Items=#chestVillageBlacksmith)@luck=0
type=block,ID=chest,tileEntity=(Items=#chestBonusChest)@luck=1
type=block,ID=chest,tileEntity=(Items=#chestDungeonChest)@luck=1
type=block,ID=chest,tileEntity=(Items=#chest(contents=[(id=iron_ingot,maxAmount=8,weight=10),(id=gold_ingot,maxAmount=4,weight=10),(id=diamond,maxAmount=4,weight=10),(id=emerald,maxAmount=4,weight=10),(id=dye,Damage=4,maxAmount=4,weight=10),(id=lucky:lucky_block,maxAmount=2,weight=10),(id=golden_apple,maxAmount=2,weight=10),(id=golden_apple,Damage=1,maxAmount=2,weight=10)],maxTotalAmount=12))@luck=2

/ ========= 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=boat,amount=128,NBTTag=(display=(Name="$4Inventory filling Boat"))@luck=0
ID=rotten_flesh,amount=#rand(128,1024)@luck=-1
ID=nether_star@luck=2
ID=red_flower,NBTTag=(display=(Name="$cRomantic Rose"))@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=lit_pumpkin,amount=#rand(8,16))@luck=0
/ golden apples
group(ID=golden_apple,amount=#rand(2,4);ID=golden_apple,amount=#rand(1,2),damage=1)@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=fish,amount=#rand(8,16);ID=cooked_fish,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=potion,damage=#randPotionDamage,amount=#rand(4,8)@luck=1
/ spawn eggs
ID=spawn_egg,damage=#randSpawnEggDamage,amount=#rand(4,8)@luck=1
/ heads
ID=skull,damage=#rand(0,4),amount=#rand(1,3)@luck=0
/ jukebox music discs
group(ID=jukebox;ID=#rand(2256,2267),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=speckled_melon,amount=#rand(1,3);ID=rabbit_foot,amount=#rand(1,3);type=particle,ID=2002,damage=3)@luck=2
/ redstone
group(ID=dispenser,amount=2;ID=noteblock,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=wooden_pressure_plate,amount=2;ID=redstone_torch,amount=8;ID=stone_button,amount=2;ID=trapdoor,amount=2;ID=iron_trapdoor,amount=2;ID=fence_gate,amount=1;ID=redstone_lamp,amount=4;ID=tripwire_hook,amount=2;ID=wooden_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=wooden_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=2002,damage=9)@luck=2
/ colorful
group(group:1:(ID=wool,damage=#rand(0,15),amount=#rand(32,64);ID=stained_hardened_clay,damage=#rand(0,15),amount=#rand(32,64);ID=dye,damage=#rand(0,15),amount=#rand(32,64));type=particle,ID=2002,damage=#randPotionParticle,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=dye,damage=4,amount=#rand(8,16);type=entity,ID=FireworksRocketEntity,NBTTag=(LifeTime=20,FireworksItem=(id=fireworks,tag=#randFireworksRocket)),amount=20,posOffset=#circleOffset(0,2))@luck=2
/ quartz
group(ID=stone_slab,damage=7,amount=#rand(4,8);ID=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=2002,damage=14)@luck=1
/ fish
group(ID=fishing_rod;ID=349,damage=#rand(0,3),amount=#rand(10,20))@luck=1
/ message with mushroom
group(type=command,ID="/tell #pName Listen to me, #pName. You are in grave danger. You need to run. Now. Take this mushroom, it is your only hope.",commandSender="PlayerInDistress";ID=red_mushroom,NBTTag=(display=(Name="$cOnly Hope")))@luck=-1
/ random jokes
group:1:(ID=clock,NBTTag=(display=(Name="You're wasting your time"));ID=fish,damage=2,NBTTag=(display=(Name="I'm funny"));ID=fish,damage=3,NBTTag=(display=(Name="Oooooh!")))@luck=-1
/ flowers
group(ID=red_flower,damage=#rand(0,8),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=2002,damage=14)@luck=1

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

/ lucky mobs
group:1:(type=entity,ID=Pig,NBTTag=(CustomName="$e$lLucky Pig",CustomNameVisible=true);type=entity,ID=Cow,NBTTag=(CustomName="$e$lLucky Cow",CustomNameVisible=true);type=entity,ID=Chicken,NBTTag=(CustomName="$e$lLucky Chicken",CustomNameVisible=true);type=entity,ID=Sheep,NBTTag=(CustomName="$e$lLucky Sheep",CustomNameVisible=true);type=entity,ID=Rabbit,NBTTag=(CustomName="$e$lLucky Rabbit",CustomNameVisible=true);type=entity,ID=Squid,NBTTag=(CustomName="$e$lUnlucky Squid",CustomNameVisible=true))@luck=0
/ colored sheep
type=entity,ID=Sheep,NBTTag=(CustomName="$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=ThrownEgg,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=ThrownExpBottle,NBTTag=(Motion=#randLaunchMotion),amount=#rand(16,32)@luck=2
/ launched tnt
type=entity,ID=PrimedTnt,NBTTag=(Fuse=50b,Motion=#randLaunchMotion),amount=15@luck=-2

/ lightning creeper
group(type=difficulty,ID=hard;type=entity,ID=Creeper;type=entity,ID=LightningBolt)@luck=-2
/ giant
group(type=difficulty,ID=hard;type=entity,ID=Giant)@luck=-2
/ wither
group(type=difficulty,ID=hard;type=entity,ID=WitherBoss)@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
/ lightning creeper
group(type=difficulty,ID=hard;type=entity,ID=Creeper;type=entity,ID=LightningBolt)@luck=-2
/ bob zombie
group(type=difficulty,ID=hard;type=entity,ID=Zombie,NBTTag=(Equipment=[(id=diamond_sword,Count=1,tag=(ench=#luckySwordEnchantments)),(id=diamond_helmet,Count=1,tag=(ench=#luckyHelmetEnchantments)),(id=diamond_chestplate,Count=1,tag=(ench=#luckyChestplateEnchantments)),(id=diamond_leggings,Count=1,tag=(ench=#luckyLeggingsEnchantments)),(id=diamond_boots,Count=1,tag=(ench=#luckyBootsEnchantments))],DropChances=[#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f],CustomName="$e$lBob",CustomNameVisible=true))@luck=-2

/ ghostly horseman skeleton
group(type=difficulty,ID=hard;type=entity,ID=Skeleton,NBTTag=(Equipment=[(id=bow,Count=1,tag=(ench=#luckyBowEnchantments)),(id=chainmail_helmet,Count=1,tag=(ench=#luckyHelmetEnchantments)),(id=chainmail_chestplate,Count=1,tag=(ench=#luckyChestplateEnchantments)),(id=chainmail_leggings,Count=1,tag=(ench=#luckyLeggingsEnchantments)),(id=chainmail_boots,Count=1,tag=(ench=#luckyBootsEnchantments))],DropChances=[#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f],CustomName="$7$lGhostly Horseman",CustomNameVisible=true,Riding=(id=EntityHorse,Tame=true,Type=4,Riding=(id=Bat,Silent=true,ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)]))))@luck=-2

/ stacked villager and pigs
type=entity,ID=Villager,NBTTag=(Riding=(id=Pig,Riding=(id=Pig,Riding=(id=Pig,Riding=(id=Pig,Riding=(id=Pig,Riding=(id=Pig,Riding=(id=Pig))))))))@luck=0

/ horses
type=entity,ID=EntityHorse,amount=12,posOffset=#circleOffset(4),NBTTag=(Type=#rand(0,4),Tame=true)@luck=1

/ 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=LavaSlime,NBTTag=(Size=10))@luck=-2

/ pet wolves
group(type=entity,ID=Wolf,amount=#rand(5,10),posOffset=#circleOffset(3),NBTTag=(CollarColor=#rand(0,14),Owner=#pName,Sitting=1);type=particle,ID="heart",size=(2,0,2),particleAmount=20)@luck=1
/ pet cats
group(type=entity,ID=Ozelot,amount=#rand(5,10),posOffset=#circleOffset(3),NBTTag=(CatType=#rand(0,3),Owner=#pName,Sitting=1);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),Owner=#pName,Sitting=1);type=particle,ID="heart",size=(2,0,2),particleAmount=20)@luck=1

/ hero villagers
type=entity,ID=Villager,NBTTag=(Offers=(Recipes=[(buy=(id=diamond,Count=#rand(20,25)),sell=(id=lucky:virus_lucky_sword,Count=1,tag=(ench=#luckySwordEnchantments)),maxUses=1),(buy=(id=diamond,Count=#rand(20,25)),sell=(id=bow,Count=1,tag=(ench=#luckyBowEnchantments,display=(Name="$aVirus Bow"))),maxUses=1),(buy=(id=diamond,Count=#rand(10,15)),sell=(id=fishing_rod,Count=1,tag=(ench=#luckyFishingRodEnchantments,display=(Name="$aVirus Fishing Rod"))),maxUses=1),(buy=(id=diamond,Count=#rand(10,15)),sell=(id=potion,Damage=8195,Count=1,tag=(CustomPotionEffects=#luckyPotionEffects,display=(Name="$2Desinfective Potion"))),maxUses=1),(buy=(id=diamond,Count=#rand(7,12)),sell=(id=potion,Damage=16428,Count=1,tag=(CustomPotionEffects=#unluckyPotionEffects,display=(Name="$4Infectious Potion"))),maxUses=1)]),CustomName="$aVirus Villager",CustomNameVisible=true)@luck=1
type=entity,ID=Villager,NBTTag=(Offers=(Recipes=[(buy=(id=diamond,Count=#rand(12,17)),sell=(id=lootplusplus:vlb.virus_helmet,Count=1,tag=(ench=#luckyHelmetEnchantments)),maxUses=1),(buy=(id=diamond,Count=#rand(20,25)),sell=(id=lootplusplus:vlb.virus_chestplate,Count=1,tag=(ench=#luckyChestplateEnchantments)),maxUses=1),(buy=(id=diamond,Count=#rand(15,20)),sell=(id=lootplusplus:vlb.virus_leggings,Count=1,tag=(ench=#luckyLeggingsEnchantments)),maxUses=1),(buy=(id=diamond,Count=#rand(12,17)),sell=(id=lootplusplus:vlb.virus_boots,Count=1,tag=(ench=#luckyBootsEnchantments)),maxUses=1)]),CustomName="$aVirus Villager",CustomNameVisible=true)@luck=1
type=entity,ID=Villager,NBTTag=(Offers=(Recipes=[(buy=(id=diamond,Count=#rand(10,15)),sell=(id=lootplusplus:vlb.virus_shovel,Count=1,tag=(ench=#luckyToolEnchantments)),maxUses=1),(buy=(id=diamond,Count=#rand(15,20)),sell=(id=lootplusplus:vlb.virus_pickaxe,Count=1,tag=(ench=#luckyToolEnchantments)),maxUses=1),(buy=(id=diamond,Count=#rand(15,20)),sell=(id=lootplusplus:vlb.virus_axe,Count=1,tag=(ench=#luckyAxeEnchantments)),maxUses=1),(buy=(id=diamond,Count=#rand(10,15)),sell=(id=diamond_hoe,Count=1,tag=(ench=#luckyToolEnchantments,display=(Name="$aVirus Hoe"))),maxUses=1)]),CustomName="$aVirus Villager",CustomNameVisible=true)@luck=1

/ falling blocks (iron, gold, diamond, emerald)
group(type=fill,ID=air,size=(1,8,1);type=entity,ID=FallingSand,posY=#bPosY+7,NBTTag=(Block=iron_block);type=particle,ID=largesmoke,size=(1,2,1),particleAmount=500;type=sound,ID=random.fizz)@luck=0
group(type=fill,ID=air,size=(1,8,1);type=entity,ID=FallingSand,posY=#bPosY+7,NBTTag=(Block=gold_block);type=particle,ID=flame,size=(1,2,1),particleAmount=500;type=sound,ID=item.fireCharge.use)@luck=0
group(type=fill,ID=air,size=(1,8,1);type=entity,ID=FallingSand,posY=#bPosY+7,NBTTag=(Block=diamond_block);type=entity,ID=LightningBolt)@luck=1
group(type=fill,ID=air,size=(1,8,1);type=entity,ID=FallingSand,posY=#bPosY+7,NBTTag=(Block=emerald_block);type=particle,ID=happyVillager,size=(1,2,1),particleAmount=500;type=sound,ID=dig.grass)@luck=0
group(type=fill,ID=air,size=(1,8,1);type=entity,ID=FallingSand,posY=#bPosY+7,NBTTag=(Block=lapis_block);type=particle,ID=splash,size=(1,2,1),particleAmount=1000;type=sound,ID=game.neutral.swim.splash)@luck=0

/ colorful pole
group(type=fill,ID=air,size=(1,51,1);group(NBTTag=(Block=stained_hardened_clay,Data=14),posY=#bPosY+5;NBTTag=(Block=stained_hardened_clay,Data=1),posY=#bPosY+10;NBTTag=(Block=stained_hardened_clay,Data=4),posY=#bPosY+15;NBTTag=(Block=stained_hardened_clay,Data=5),posY=#bPosY+20;NBTTag=(Block=stained_hardened_clay,Data=3),posY=#bPosY+25;NBTTag=(Block=stained_hardened_clay,Data=11),posY=#bPosY+30;NBTTag=(Block=stained_hardened_clay,Data=10),posY=#bPosY+35;NBTTag=(Block=stained_hardened_clay,Data=2),posY=#bPosY+40;NBTTag=(Block=stained_hardened_clay,Data=6),posY=#bPosY+45),type=entity,ID=FallingSand;type=entity,ID=FallingSand,NBTTag=(Block=diamond_block),posY=#bPosY+50;type=entity,ID=LightningBolt,posY=#bPosY+10,delay=5.3)@luck=2

/ tnt pole
group(type=fill,ID=air,size=(1,51,1);type=entity,ID=FallingSand,NBTTag=(Block=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=FallingSand,NBTTag=(Block=tnt))@luck=1
group(type=fill,ID=air,size=(1,51,1);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=FallingSand,NBTTag=(Block=lootplusplus:vlb.virus_block))@luck=2
group(type=fill,ID=air,size=(1,51,1);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=FallingSand,NBTTag=(Block=lootplusplus:vlb.toiletpaper_block))@luck=2
group(type=fill,ID=air,size=(1,51,1);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=FallingSand,NBTTag=(Block=lootplusplus:vlb.virus_deko))@luck=2
group(type=fill,ID=air,size=(1,51,1);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=FallingSand,NBTTag=(Block=lootplusplus:vlb.toiletpaper_deko))@luck=2
group(type=fill,ID=air,size=(1,51,1);type=entity,ID=FallingSand,NBTTag=(Block=lootplusplus:vlb.light))@luck=0
type=fill,ID=tnt,size=(3,3,3),damage=#rand(0,1)@luck=-1@chance=5


/ baby player
type=entity,ID=ArmorStand,NBTTag=(Small=true,NoBasePlate=true,ShowArms=true,Equipment=[(id=stone_pickaxe,Count=1),(id=leather_boots,Count=1,tag=(display=(color=#rand(0,16777215)))),(id=leather_leggings,Count=1,tag=(display=(color=#rand(0,16777215)))),(id=leather_chestplate,Count=1,tag=(display=(color=#rand(0,16777215)))),(id=skull,Damage=3,Count=1,tag=(SkullOwner=#pName))],Rotation=[#pYaw+180f,0f],CustomName="Baby #pName",CustomNameVisible=true)@luck=0

/ ==== Monster Apocalypse ====
/ sword, difficulty, time, potion effects
group(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; \
/ zombies, creepers, spiders & cave spiders, silverfish & endermites, guardians
group:1:(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=CaveSpider,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
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=CaveSpider,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 ==========

/ traps
type=structure,ID=anvil_trap,pos=#pPos,rotation=#pDirect@luck=-2
type=structure,ID=lava_trap,pos=#pPos,rotation=#pDirect@luck=-2
type=structure,ID=water_trap,pos=#pPos@luck=-2  
type=structure,ID=pit_trap,pos=#pPos@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

/ 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 1 0 {display:{Name:\"$6Coin\"}}";type=block,ID=lucky:lucky_block_virus,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=FireworksRocketEntity,NBTTag=(LifeTime=20,FireworksItem=(id=fireworks,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=dye,damage=4,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 1 0 {display:{Name:\"$6Coin\"}}";type=block,ID=lucky:lucky_block_virus,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 1 0 {display:{Name:\"$6Coin\"}}";type=block,ID=lucky:lucky_block_virus,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=PrimedTnt,NBTTag=(Fuse=50b,Motion='#'randLaunchMotion),posY='#'bPosY+7,amount=20)"]))@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 1 0 {display:{Name:\"$6Coin\"}}";type=block,ID=lucky:lucky_block_virus,posY=#bPosY-3,NBTTag=(Drops=["group(type=message,ID=\"$aYour infectious wish came true!\";type=block,ID=air,posY='#'bPosY+3;type=block,ID=beacon,posY='#'bPosY+2;type=entity,ID=FireworksRocketEntity,NBTTag=(LifeTime=20,FireworksItem=(id=fireworks,tag='#'randFireworksRocket)),amount=20,posY='#'bPosY+3,posOffset='#'circleOffset(2);ID=lootplusplus:vlb.virus,amount='#'rand(16,32),posY='#'bPosY+10,posOffset='#'circleOffset(2);ID=lootplusplus:vlb.toiletpaper,amount='#'rand(8,24),posY='#'bPosY+10,posOffset='#'circleOffset(2))"]))@luck=2

type=structure,ID=vlb.hospital,rotation=#pDirect,pos=#pPos@luck=1@chance=3
type=structure,ID=vlb.quarantene,rotation=#pDirect,pos=#pPos@luck=-1@chance=3
type=structure,ID=vlb.stayhome,rotation=#pDirect,pos=#pPos@luck=1@chance=3
type=structure,ID=vlb.supermarket,rotation=#pDirect,pos=#pPos@luck=1@chance=3
type=structure,ID=vlb.virus,rotation=#pDirect,pos=#pPos@luck=2@chance=3

/ ========== ENCHANTED + LUCKY ITEMS ==========

/ hero bow
ID=bow,NBTTag=(ench=#luckyBowEnchantments,display=(Name="$r$9Virus Bow"),Unbreakable=true)@luck=2
/ hero fishing rod
ID=fishing_rod,NBTTag=(ench=#luckyFishingRodEnchantments,display=(Name="$r$9Virus Fishing Rod"))@luck=2
/ hero tools
group:#rand(1,2):(ID=lootplusplus:vlb.virus_shovel,NBTTag=(ench=#luckyToolEnchantments);ID=lootplusplus:vlb.virus_pickaxe,NBTTag=(ench=#luckyToolEnchantments);ID=lootplusplus:vlb.virus_axe,NBTTag=(ench=#luckyAxeEnchantments))@luck=5
group:1:(ID=lootplusplus:vlb.toiletpaper_pickaxe,NBTTag=(ench=#luckyToolEnchantments);ID=lootplusplus:vlb.toiletpaper_sword,NBTTag=(ench=#luckySwordEnchantments,HideFlags=34,display=(Lore=["","$r$9+2,50"])))@luck=5
/ hero armor
group:#rand(1,2):(ID=lootplusplus:vlb.virus_helmet,NBTTag=(ench=#luckyHelmetEnchantments);ID=lootplusplus:vlb.virus_chestplate,NBTTag=(ench=#luckyChestplateEnchantments);ID=lootplusplus:vlb.virus_leggings,NBTTag=(ench=#luckyLeggingsEnchantments);ID=lootplusplus:vlb.virus_boots,NBTTag=(ench=#luckyBootsEnchantments))@luck=1@chance=10
group:#rand(1,2):(ID=lootplusplus:vlb.toiletpaper_helmet,NBTTag=(ench=#luckyHelmetEnchantments);ID=lootplusplus:vlb.toiletpaper_chestplate,NBTTag=(ench=#luckyChestplateEnchantments);ID=lootplusplus:vlb.toiletpaper_leggings,NBTTag=(ench=#luckyLeggingsEnchantments);ID=lootplusplus:vlb.toiletpaper_boots,NBTTag=(ench=#luckyBootsEnchantments))@luck=1@chance=10
/ hero potion
ID=potion,damage=8195,NBTTag=(CustomPotionEffects=#luckyPotionEffects,display=(Name="$9Desinfective Potion"))@luck=1@chance=5
/ unlucky potion
ID=potion,damage=16428,NBTTag=(CustomPotionEffects=#unluckyPotionEffects,display=(Name="$4Infective Potion"))@luck=1@chance=5

/ lucky items
type=item,ID=lucky:virus_lucky_sword,NBTTag=(Unbreakable=true,HideFlags=2,display=(Lore=["","$r$9+COVID-19 Attack Damage"]),AttributeModifiers=[(AttributeName="generic.attackDamage",Name="generic.attackDamage",Amount=13,Operation=0,UUIDLeast=670610,UUIDMost=929800,Slot="mainhand")],Luck=#randList(-100,-50,0,50,100))@chance=1.5@luck=1@chance=2
type=item,ID=lucky:virus_lucky_potion,NBTTag=(Luck=#randList(-100,-50,0,50,100)),amount=#rand(8,16)@chance=1.5@luck=1@chance=5
group(type=item,ID=lucky:virus_lucky_sword,NBTTag=(Unbreakable=true,HideFlags=2,display=(Lore=["","$r$9+COVID-19 Attack Damage"]),AttributeModifiers=[(AttributeName="generic.attackDamage",Name="generic.attackDamage",Amount=13,Operation=0,UUIDLeast=670610,UUIDMost=929800,Slot="mainhand")],Luck=#randList(-100,-50,0,50,100));type=item,ID=lucky:virus_lucky_potion,NBTTag=(Luck=#randList(-100,-50,0,50,100)),amount=#rand(2,8);type=entity,ID=FireworksRocketEntity,NBTTag=(LifeTime=20,FireworksItem=(id=fireworks,tag=#randFireworksRocket)),amount=20,posOffset=#circleOffset(0,2))@luck=1@chance=2
type=item,ID=lootplusplus:vlb.sanitizer,amount=#rand(1,8)@luck=0@chance=3
type=item,ID=lootplusplus:vlb.face_mask@luck=0@chance=2
group(type=item,ID=lootplusplus:vlb.infested_stick,amount=#rand(1,8);type=particle,ID=happyVillager,size=(0.5,0.5,0.5),particleAmount=20;type=sound,ID=note.pling,volume=8)@luck=0@chance=10


group(type=item,ID=lootplusplus:vlb.virus_helmet,NBTTag=(Unbreakable=true);type=particle,ID=happyVillager,size=(0.5,0.5,0.5),particleAmount=20;type=sound,ID=note.pling,volume=8)@luck=2@chance=1
group(type=item,ID=lootplusplus:vlb.virus_chestplate,NBTTag=(Unbreakable=true);type=particle,ID=happyVillager,size=(0.5,0.5,0.5),particleAmount=20;type=sound,ID=note.pling,volume=8)@luck=2@chance=1
group(type=item,ID=lootplusplus:vlb.virus_leggings,NBTTag=(Unbreakable=true);type=particle,ID=happyVillager,size=(0.5,0.5,0.5),particleAmount=20;type=sound,ID=note.pling,volume=8)@luck=2@chance=1
group(type=item,ID=lootplusplus:vlb.virus_boots,NBTTag=(Unbreakable=true);type=particle,ID=happyVillager,size=(0.5,0.5,0.5),particleAmount=20;type=sound,ID=note.pling,volume=8)@luck=2@chance=1
group(type=item,ID=lootplusplus:vlb.toiletpaper_helmet,NBTTag=(Unbreakable=true);type=particle,ID=happyVillager,size=(0.5,0.5,0.5),particleAmount=20;type=sound,ID=note.pling,volume=8)@luck=2@chance=1
group(type=item,ID=lootplusplus:vlb.toiletpaper_chestplate,NBTTag=(Unbreakable=true);type=particle,ID=happyVillager,size=(0.5,0.5,0.5),particleAmount=20;type=sound,ID=note.pling,volume=8)@luck=2@chance=1
group(type=item,ID=lootplusplus:vlb.toiletpaper_leggings,NBTTag=(Unbreakable=true);type=particle,ID=happyVillager,size=(0.5,0.5,0.5),particleAmount=20;type=sound,ID=note.pling,volume=8)@luck=2@chance=1
group(type=item,ID=lootplusplus:vlb.toiletpaper_boots,NBTTag=(Unbreakable=true);type=particle,ID=happyVillager,size=(0.5,0.5,0.5),particleAmount=20;type=sound,ID=note.pling,volume=8)@luck=2@chance=1

group(type=item,ID=lootplusplus:vlb.ultimate_pandemic_sword,NBTTag=(ench=[(id=20,lvl=10)],Unbreakable=true);type=particle,ID=angryVillager,size=(0.5,0.5,0.5),particleAmount=20;type=sound,ID=note.pling,volume=8)@luck=2@chance=1
group(type=item,ID=lootplusplus:vlb.ultimate_virus_sword,NBTTag=(ench=[(id=20,lvl=10)],Unbreakable=true);type=particle,ID=happyVillager,size=(0.5,0.5,0.5),particleAmount=20;type=sound,ID=note.pling,volume=8)@luck=2@chance=1
group(type=item,ID=lootplusplus:vlb.ultimate_toiletpaper_sword,NBTTag=(ench=[(id=20,lvl=10)],Unbreakable=true);type=particle,ID=happyVillager,size=(0.5,0.5,0.5),particleAmount=20;type=sound,ID=note.pling,volume=8)@luck=2@chance=1


group(type=message,ID="$4CHAOS TO ALL YOUR INVENTORIES!";type=command,ID="/effect @a potioncore:disorganization 30 2")@luck=0@chance=2
group(type=message,ID="$cCHECK YOUR INVENTORY!";type=command,ID="/replaceitem entity #pName slot.armor.head mob_spawner #rand(1,48)")@luck=-1@chance=2
group(type=message,ID="$eThe cake is a LIE!";type=block,ID=cake,pos=#pPos)@luck=0@chance=2
type=message,ID="$eI smell it... #pName isn't subscribed to baastiZockt yet!"@luck=0@chance=2
type=message,ID="$eI smell it... #pName isn't subscribed to Despringer yet!"@luck=0@chance=2
type=message,ID="$eI smell it... #pName isn't subscribed to H2O3PO4 yet!"@luck=0@chance=2
type=message,ID="$eI smell it... #pName isn't subscribed to Cheosu yet!"@luck=0@chance=2
group(type=message,ID="$cPARTY TIME!";type=command,ID="/tp @a #pName";type=command,ID="/title #pName times 20 60 20";type=command,ID="/title #pName title {'text':'$cPARTY TIME!'}")@luck=0@chance=2

type=entity,ID=zombie,amount=#rand(1,3),NBTTag=(CustomName="Ultimate Virus Bob",CustomNameVisible=1,Health=200,Attributes=[(Name="generic.maxHealth",Base=200),(Name="generic.followRange",Base=500),(Name="generic.knockbackResistance",Base=0.01f),(Name="generic.movementSpeed",Base=1f),(Name="generic.attackDamage",Base=20)],Silent=1,IsBaby=0,HandItems=[(id="lootplusplus=ultimate_virus_sword",tag=(display=(Name="Ultimate Virus Bob Dagger")),Count=1),()],HandDropChances=[0.2F,0F],ArmorItems=[(id="lootplusplus=vlb.virus_boots"),(id="lootplusplus=vlb.virus_leggings"),(id="lootplusplus=vlb.virus_chestplate"),(id="lootplusplus=vlb.virus_helmet")],ActiveEffects=[(Id=5,Amplifier=0,Duration=2147483647)])@luck=0@chance=4
type=entity,ID=EnderDragon,NBTTag=(CustomName=HomeOfficePet,CustomNameVisible=1,HealF=20000,Attributes=[(Name="generic.maxHealth",Base=20000),(Name="generic.followRange",Base=500)],Silent=1,DropChances=[2F,0.25F,2F,2F,2F],Equipment=[(),(id="minecraft=diamond_sword",Count=1),(),(),()],ActiveEffects=[(Id=5,Amplifier=0,Duration=2147483647)],Riding=(id=EnderDragon,TileEntityData=(CustomName=HomeOfficePet,CustomNameVisible=1,HealF=20000,Attributes=[(Name="generic.maxHealth",Base=20000),(Name="generic.followRange",Base=500)],Silent=1,DropChances=[2F,0.25F,2F,2F,2F],Equipment=[(),(id="minecraft=diamond_sword",Count=1),(),(),()],ActiveEffects=[(Id=5,Amplifier=0,Duration=2147483647)])))@luck=0@chance=4
type=entity,ID=zombie,amount=#rand(1,2),NBTTag=(PersistenceRequired=1,CanBreakDoors=1b,Equipment=[(Count=1,id=lootplusplus=vlb.virus_axe,tag=(display=(Name="Corona Axt"),ench=[(id=16,lvl=5)])),(id=lootplusplus=vlb.toiletpaper_boots,tag=(ench=[(id=0,lvl=4),(id=7,lvl=3)])),(id=lootplusplus=vlb.toiletpaper_leggings,tag=(ench=[(id=0,lvl=4),(id=7,lvl=3)])),(id=lootplusplus=vlb.toiletpaper_chestplate,tag=(ench=[(id=0,lvl=4),(id=7,lvl=3)])),(id=lootplusplus=vlb.toiletpaper_helmet,tag=(ench=[(id=0,lvl=4),(id=7,lvl=3)]))],CustomName=$4Coro,DropChances=[0.3f,0.0f,0.0f,0.0f,0.0f],ActiveEffects=[(Id=11,Amplifier=0,Duration=999999)])@luck=0@chance=4
type=item,ID=potion,damage=2,NBTTag=(CustomPotionEffects=[(Id=1,Amplifier=99,Duration=1200),(Id=3,Amplifier=99,Duration=1200),(Id=5,Amplifier=99,Duration=1200),(Id=8,Duration=1200),(Id=10,Amplifier=14,Duration=1200),(Id=11,Amplifier=-1,Duration=1200)],display=(Name=SanitizerShoppingHilfe,Lore=["Du brauchst Power um Desinfektionsmittel zu kaufen? Dann ist das hier richtig fr dich!"]))@luck=1@chance=4
type=item,ID=potion,damage=10,NBTTag=(CustomPotionEffects=[(Id=2,Amplifier=9,Duration=2147483647),(Id=4,Amplifier=9,Duration=2147483647),(Id=9,Duration=2147483647),(Id=15,Duration=2147483647),(Id=17,Amplifier=9,Duration=2147483647),(Id=18,Amplifier=9,Duration=2147483647),(Id=19,Amplifier=-1,Duration=2147483647)],display=(Name=CoronaToGo,Lore=["Gives Corona to someone!"]))@luck=1@chance=4
type=item,ID=sign,NBTTag=(BlockEntityTag=(Text1="("text"="Corona","clickEvent"=("action"="run_command","value"="effect @a poison 1 12000"),"bold"=true,"italic"=true,"color"="green")",Text2="("text"="to")",Text3="("text"="Everyone","bold"=true,"color"="green")"),display=(Name=CoronaToEveryone))@luck=1@chance=2

group(type=command,ID="/title #pName times 20 60 20";type=command,ID="/title #pName title {'text':' '}";type=command,ID="/title #pName subtitle {'text':'$cDu wirst in 5 sekunden desinfiziert!'}";type=command,ID="/clear #pName",delay=5)@luck=-2@chance=1
type=item,ID=lootplusplus:inca.inca_bow,NBTTag=(Unbreakable=true,display=(Name="$8$k||| $2$lUltimate Virus Bow $8$k|||",Lore=["Durchbohre andere mit Corona's Kraft"]),ench=[(id=48,lvl=10),(id=49,lvl=10),(id=50,lvl=10),(id=51,lvl=10)])@luck=1@chance=2
type=item,ID=lootplusplus:oect.pizza_green,NBTTag=(display=(Name="$8$k||| $2$lUltimate Virus Pizza $8$k|||"))@luck=1@chance=5
