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

/ banners
group(type=command,ID="gamerule commandBlockOutput false";type=command,ID="setblock ~ ~ ~ standing_banner #rand(0,15) keep {Patterns:[{Pattern:#randList(o,o,o,o,o,o,o,o,ld,rud,lud,rd,vh,vhr,hh,hhb),Color:#rand(0,15)},{Pattern:#randList(o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,ts,bs,ls,rs,cs,ms,drs,dls,ss,cr,sc,tl,tr,bl,br,bt,tt,bts,tts),Color:#rand(0,15)},{Pattern:#randList(o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,ts,bs,ls,rs,cs,ms,drs,dls,ss,cr,sc,tl,tr,bl,br,bt,tt,bts,tts),Color:#rand(0,15)},{Pattern:#randList(o,o,o,o,bo,cbo,bri,gra,gru),Color:#rand(0,15)},{Pattern:#randList(o,o,o,o,o,o,o,o,o,bo,cbo,bri,gra,gru),Color:#rand(0,15)},{Pattern:#randList(o,o,mr,mc,sku,cri,moj,flo),Color:#rand(0,15)}],Base:#rand(0,15)}",posOffset=#circleOffset(0,6),amount=8,reinitialize=true)@luck=0

/ flowers
group(type=command,ID="gamerule commandBlockOutput false";type=command,ID="setblock ~ ~ ~ red_flower #rand(0,15) keep",posOffset=#circleOffset(0,5),amount=20,reinitialize=true)@luck=0

/ head stake garden
group(type=command,ID="gamerule commandBlockOutput false";type=command,ID="lppcondition setblock ~ ~ ~ fence 0 keep _if_true_ summon ArmorStand ~0.5 ~0.3 ~0.5 {Equipment:[{},{},{},{},{id:skull,Count:1,Damage:3,tag:{SkullOwner:#randList(Tmtravlr,PlayerInDistress,Herobrine,IHasCupquake,redb15,EcuTruin,BigBadChris,boni,Mr_okushama,AlgorithmX2,Mikeemoo,_CrazyP_,MysteriousAges,MineMaarten,nekosune,tlovetech,FireFall1725,PurpleMentat,calclavia,Minalien,fuj1n,Mithion,RWTema,WayofFlowingTime,TTFTCUTS,bskprs,futureamnet,azanor,chicken_bones,Cloudhunter,CovertJaguar,cpw11,dan200,Eloraam,florastar,iChun,KingLemming,Krapht,LexManos,TheMattaBase,mDiyo,Myrathi,Morvelaira,Pahimar,sfPlayer1,ProfMobius,Rorax,Sacheverell,sirsengir,Soaryn,x3n0ph0b3,XCompWiz,Vswe,Vazkii,ZeldoKaviera,neptunepink,EddieRuckus,eyamaz,jadedcat,slowpoke101,progwm16,adlingtont,AnderZEL,Arkas,Aureylian,AvidyaZEN,BdoubleO100,BlameTC,Coestar,Docm77,Etho,generikb,Guude,JSano19,kurtmac,SuperMCGamer,Mhykol,Millbee,Nebris,Pakratt0013,paulsoaresjr,PauseUnpause,Pyro_0,SethBling,thejims,Sevadus,Vechs_,VintageBeef,W92Baj,Zisteau,aidancbrady,spacetoad,FyberOptic,Vexatos,Mineshopper,AUTOMATIC_MAIDEN,sanandreasMC,FatherToast,Erasmus_Crowley,Alblaka,Emoniph,Nuchaz,Kobata,powercrystals,AbrarSyed,sdkillen,Taelnia,Lycanite,asiekierka,GregoriusT,skyboy,Flaxbeard,Emasher,joshiejack,Reika,MatrexsVigil,ganymedes01,Pokefenn,chylex,vadis365,Kihira,jakimfett,Notch,jeb_,C418,Dinnerbone,Grumm,Search_DP,EvilSeph,TheMogMiner,Kyrinon,vasili02,Jeb_Jeb,KingPurpleRaptor,DylanGK,Nerdcubed,Kleetho,DanTDM,Runew0lf,GiantWaffle,Bacon_Donut,Vaygrim,Heph,ChimneySwift,FuriousDestroyer,SuperGirlyGamer,CyaNideEPiC,Jarrenitis,direwolf20,Sjin,Xephos,LividCoffee,Rythian,Zoeya,TheStrippin,InTheLittleWood,Quetzz,Blorph,xbony2,CaptainSparklez,AntVenom,CavemanFilms,Fosler,BevoLJ,Sips_,Honeydew,TobyofBuscus,corjaantje)}}],NoBasePlate:true,NoGravity:true,Small:true,Pose:{Head:[0f,#rand(0,360)f,0f]}}",posOffset=#circleOffset(0,5),amount=5,reinitialize=true)@luck=0
/ directions
group(type=command,ID="gamerule commandBlockOutput false";type=command,ID="lppcondition setblock ~ ~ ~ fence 0 keep _if_true_ summon ArmorStand ~0.5 ~0.3 ~0.5 {Equipment:[{},{},{},{},{id:skull,Count:1,Damage:3,tag:{SkullOwner:#randList(MHF_ArrowUp,MHF_ArrowDown,MHF_ArrowLeft,MHF_ArrowRight,MHF_Exclamation,MHF_Question)}}],NoBasePlate:true,NoGravity:true,Small:true,Pose:{Head:[0f,#rand(0,360)f,0f]}}",posOffset=#circleOffset(0,5),amount=5,reinitialize=true)@luck=0

/ jukebox + record
group(type=block,ID=jukebox;type=entity,ID=Item,posOffsetY=1,NBTTag=(Item=(Count=1,id=#randList(record_cat,record_blocks,record_chirp,record_far,record_mall,record_mellohi,record_stal,record_strad,record_ward,record_wait))))@luck=0

/ anvil + ultimate enchanted books
group(type=block,ID=anvil,damage=8;type=entity,ID=Item,posOffsetY=1,NBTTag=(CustomName="$eUltimate Sword Enchants",CustomNameVisible=true,Item=(Count=1,id=enchanted_book,tag=(display=(Name="$eUltimate Sword Enchants"),StoredEnchantments=[(id=16,lvl=5),(id=19,lvl=2),(id=20,lvl=2),(id=21,lvl=3),(id=34,lvl=3)]))))@luck=1
group(type=block,ID=anvil,damage=8;type=entity,ID=Item,posOffsetY=1,NBTTag=(CustomName="$eUltimate Bow Enchants",CustomNameVisible=true,Item=(Count=1,id=enchanted_book,tag=(display=(Name="$eUltimate Bow Enchants"),StoredEnchantments=[(id=48,lvl=5),(id=49,lvl=2),(id=50,lvl=1),(id=51,lvl=1),(id=34,lvl=3)]))))@luck=1
group(type=block,ID=anvil,damage=8;type=entity,ID=Item,posOffsetY=1,NBTTag=(CustomName="$eUltimate Helmet Enchants",CustomNameVisible=true,Item=(Count=1,id=enchanted_book,tag=(display=(Name="$eUltimate Helmet Enchants"),StoredEnchantments=[(id=0,lvl=4),(id=5,lvl=3),(id=6,lvl=1),(id=34,lvl=3)]))))@luck=1
group(type=block,ID=anvil,damage=8;type=entity,ID=Item,posOffsetY=1,NBTTag=(CustomName="$eUltimate Chestplate Enchants",CustomNameVisible=true,Item=(Count=1,id=enchanted_book,tag=(display=(Name="$eUltimate Chestplate Enchants"),StoredEnchantments=[(id=0,lvl=4),(id=34,lvl=3)]))))@luck=1
group(type=block,ID=anvil,damage=8;type=entity,ID=Item,posOffsetY=1,NBTTag=(CustomName="$eUltimate Leggings Enchants",CustomNameVisible=true,Item=(Count=1,id=enchanted_book,tag=(display=(Name="$eUltimate Leggings Enchants"),StoredEnchantments=[(id=0,lvl=4),(id=34,lvl=3)]))))@luck=1
group(type=block,ID=anvil,damage=8;type=entity,ID=Item,posOffsetY=1,NBTTag=(CustomName="$eUltimate Boots Enchants",CustomNameVisible=true,Item=(Count=1,id=enchanted_book,tag=(display=(Name="$eUltimate Boots Enchants"),StoredEnchantments=[(id=0,lvl=4),(id=2,lvl=4),(id=8,lvl=3),(id=34,lvl=3)]))))@luck=1
group(type=block,ID=anvil,damage=8;type=entity,ID=Item,posOffsetY=1,NBTTag=(CustomName="$eUltimate Fishing Rod Enchants",CustomNameVisible=true,Item=(Count=1,id=enchanted_book,tag=(display=(Name="$eUltimate Fishing Rod Enchants"),StoredEnchantments=[(id=61,lvl=3),(id=62,lvl=3),(id=34,lvl=3)]))))@luck=-1

/ chests
type=entity,ID=Item,NBTTag=(CustomName="Loot Chest",CustomNameVisible=true,Item=(id=lootplusplus:loot_chest,Count=1,tag=(display=(Name="$rDungeon Chest"),Type=dungeonChest)))@luck=1
type=entity,ID=Item,NBTTag=(CustomName="Loot Chest",CustomNameVisible=true,Item=(id=lootplusplus:loot_chest,Count=1,tag=(display=(Name="$rLumberjack's Chest"),Type=bonusChest)))@luck=-1
type=entity,ID=Item,NBTTag=(CustomName="Loot Chest",CustomNameVisible=true,Item=(id=lootplusplus:loot_chest,Count=#rand(2,5),tag=(display=(Name="$rTemple Treasure"),Type=pyramidDesertyChest)))@luck=1
type=entity,ID=Item,NBTTag=(CustomName="Loot Chest",CustomNameVisible=true,Item=(id=lootplusplus:loot_chest,Count=1,tag=(display=(Name="$rVillager's Chest"),Type=villageBlacksmith)))@luck=0
type=entity,ID=Item,NBTTag=(CustomName="Loot Chest",CustomNameVisible=true,Item=(id=lootplusplus:loot_chest,Count=1,tag=(display=(Name="$rAwesome Chest"),Type=astralAwesomeStuff)))@luck=2
type=entity,ID=Item,NBTTag=(CustomName="Loot Chest",CustomNameVisible=true,Item=(id=lootplusplus:loot_chest,Count=1,tag=(display=(Name="$rChef's Chest"),Type=astralFood)))@luck=1

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

/ lucky blocks
group(ID=lucky:lucky_block,amount=#rand(2,4),NBTTag=(Luck=#rand(-50,50));ID=lucky:lucky_block_spiral,NBTTag=(Luck=#rand(-50,50));ID=lucky:lucky_block_rainbow,NBTTag=(Luck=#rand(-50,50));ID=lucky:lucky_block_omega,NBTTag=(Luck=#rand(-50,50));ID=lucky:lucky_block_emerald,NBTTag=(Luck=#rand(-50,50));ID=lucky:lucky_block_jen,NBTTag=(Luck=#rand(-50,50));ID=lucky:lucky_block_fantasia,NBTTag=(Luck=#rand(-50,50));ID=lucky:lucky_block_gold,NBTTag=(Luck=#rand(-50,50));ID=lucky:lucky_block_sly,NBTTag=(Luck=#rand(-50,50));ID=lucky:lucky_block_blue,NBTTag=(Luck=#rand(-50,50));ID=lucky:lucky_block_diamond,NBTTag=(Luck=#rand(-50,50));ID=lucky:lucky_block_night,NBTTag=(Luck=#rand(-50,50)))@luck=1

/ all wood, stone, iron and gold tools
group(ID=wooden_sword,NBTTag=(display=(Name="$f$lDull Sword"),ench=[(id=18,lvl=1)]);ID=wooden_shovel,NBTTag=(display=(Name="$f$lDull Shovel"),ench=[(id=18,lvl=1)]);ID=wooden_pickaxe,NBTTag=(display=(Name="$f$lDull Pick"),ench=[(id=18,lvl=1)]);ID=wooden_axe,NBTTag=(display=(Name="$f$lDull Axe"),ench=[(id=18,lvl=1)]);ID=wooden_hoe,NBTTag=(display=(Name="$f$lDull Scythe"),ench=[(id=18,lvl=1)],AttributeModifiers=[(AttributeName=generic.attackDamage,Name="Weapon modifier",Amount=3,Operation=0,UUIDLeast=-6586624321849018929,UUIDMost=-3801225194067177672)]))@luck=0
group(ID=stone_sword,NBTTag=(display=(Name="$f$lBulky Sword"),ench=[(id=19,lvl=3)]);ID=stone_shovel,NBTTag=(display=(Name="$f$lBulky Shovel"),ench=[(id=19,lvl=3)]);ID=stone_pickaxe,NBTTag=(display=(Name="$f$lBulky Pick"),ench=[(id=19,lvl=3)]);ID=stone_axe,NBTTag=(display=(Name="$f$lBulky Axe"),ench=[(id=19,lvl=3)]);ID=stone_hoe,NBTTag=(display=(Name="$f$lBulky Scythe"),ench=[(id=19,lvl=3)],AttributeModifiers=[(AttributeName=generic.attackDamage,Name="Weapon modifier",Amount=4,Operation=0,UUIDLeast=-6586624321849018929,UUIDMost=-3801225194067177672)]))@luck=0
group(ID=golden_sword,NBTTag=(display=(Name="$f$lShining Sword"),ench=[(id=17,lvl=3)]);ID=golden_shovel,NBTTag=(display=(Name="$f$lShining Shovel"),ench=[(id=17,lvl=3)]);ID=golden_pickaxe,NBTTag=(display=(Name="$f$lShining Pick"),ench=[(id=17,lvl=3)]);ID=golden_axe,NBTTag=(display=(Name="$f$lShining Axe"),ench=[(id=17,lvl=3)]);ID=golden_hoe,NBTTag=(display=(Name="$f$lShining Scythe"),ench=[(id=17,lvl=3)],AttributeModifiers=[(AttributeName=generic.attackDamage,Name="Weapon modifier",Amount=3,Operation=0,UUIDLeast=-6586624321849018929,UUIDMost=-3801225194067177672)]))@luck=1
group(ID=iron_shovel,NBTTag=(display=(Name="$f$lTempered Shovel"),ench=[(id=20,lvl=1)]);ID=iron_pickaxe,NBTTag=(display=(Name="$f$lTempered Pick"),ench=[(id=20,lvl=1)]);ID=iron_axe,NBTTag=(display=(Name="$f$lTempered Axe"),ench=[(id=20,lvl=1)]);ID=iron_sword,NBTTag=(display=(Name="$f$lTempered Sword"),ench=[(id=20,lvl=1)]);ID=iron_hoe,NBTTag=(display=(Name="$f$lTempered Scythe"),ench=[(id=20,lvl=1)],AttributeModifiers=[(AttributeName=generic.attackDamage,Name="Weapon modifier",Amount=5,Operation=0,UUIDLeast=-6586624321849018929,UUIDMost=-3801225194067177672)]))@luck=1

/ 2-3 diamond tools
group:#rand(2,3):(ID=diamond_sword,NBTTag=(display=(Name="$f$lGlittering Sword"),ench=[(id=16,lvl=1)]);ID=diamond_shovel,NBTTag=(display=(Name="$f$lGlittering Shovel"),ench=[(id=16,lvl=1)]);ID=diamond_pickaxe,NBTTag=(display=(Name="$f$lGlittering Pick"),ench=[(id=16,lvl=1)]);ID=diamond_axe,NBTTag=(display=(Name="$f$lGittering Axe"),ench=[(id=16,lvl=1)]);ID=diamond_hoe,NBTTag=(display=(Name="$f$lGlittering Scythe"),ench=[(id=16,lvl=1)],AttributeModifiers=[(AttributeName=generic.attackDamage,Name="Weapon modifier",Amount=6,Operation=0,UUIDLeast=-6586624321849018929,UUIDMost=-3801225194067177672)]))@luck=2

/ all leather, gold, chain and iron armour
group(ID=leather_helmet,NBTTag=(display=(color=#rand(0,16777215),Name="$f$lHardened Cap"),ench=[(id=4,lvl=1)]);ID=leather_chestplate,NBTTag=(display=(color=#rand(0,16777215),Name="$f$lHardened Tunic"),ench=[(id=4,lvl=1)]);ID=leather_leggings,NBTTag=(display=(color=#rand(0,16777215),Name="$f$lHardened Pants"),ench=[(id=4,lvl=1)]);ID=leather_boots,NBTTag=(display=(color=#rand(0,16777215),Name="$f$lHardened Boots"),ench=[(id=4,lvl=1)]))@luck=0
group(ID=golden_helmet,NBTTag=(display=(Name="$f$lShining Hat"),ench=[(id=4,lvl=1)]);ID=golden_chestplate,NBTTag=(display=(Name="$f$lShining Shirt"),ench=[(id=4,lvl=1)]);ID=golden_leggings,NBTTag=(display=(Name="$f$lShining Pants"),ench=[(id=4,lvl=1)]);ID=golden_boots,NBTTag=(display=(Name="$f$lShining Shoes"),ench=[(id=4,lvl=1)]);ID=golden_horse_armor,NBTTag=(display=(Name="$f$lShining Horse Armour"),ench=[(id=4,lvl=1)]))@luck=1
group(ID=chainmail_helmet,NBTTag=(display=(Name="$f$lSpiky Hat"),ench=[(id=7,lvl=1)]);ID=chainmail_chestplate,NBTTag=(display=(Name="$f$lSpiky Shirt"),ench=[(id=7,lvl=1)]);ID=chainmail_leggings,NBTTag=(display=(Name="$f$lSpiky Pants"),ench=[(id=7,lvl=1)]);ID=chainmail_boots,NBTTag=(display=(Name="$f$lSpiky Shoes"),ench=[(id=7,lvl=1)]))@luck=2
group(ID=iron_helmet,NBTTag=(display=(Name="$f$lTempered Helmet"),ench=[(id=1,lvl=1)]);ID=iron_chestplate,NBTTag=(display=(Name="$f$lTempered Chestplate"),ench=[(id=1,lvl=1)]);ID=iron_leggings,NBTTag=(display=(Name="$f$lTempered Leggings"),ench=[(id=1,lvl=1)]);ID=iron_boots,NBTTag=(display=(Name="$f$lTempered Boots"),ench=[(id=1,lvl=1)]);ID=iron_horse_armor,NBTTag=(display=(Name="$f$lTempered Horse Armour"),ench=[(id=1,lvl=1)]))@luck=1

/ 2-3 diamond armour
group:#rand(2,3):(ID=diamond_helmet,NBTTag=(display=(Name="$f$lGlittering Helmet"),ench=[(id=0,lvl=1)]);ID=diamond_chestplate,NBTTag=(display=(Name="$f$lGlittering Chestplate"),ench=[(id=0,lvl=1)]);ID=diamond_leggings,NBTTag=(display=(Name="$f$lGlittering Leggings"),ench=[(id=0,lvl=1)]);ID=diamond_boots,NBTTag=(display=(Name="$f$lGlittering Boots"),ench=[(id=0,lvl=1)]);ID=diamond_horse_armor,NBTTag=(display=(Name="$f$lGlittering Horse Armour"),ench=[(id=0,lvl=1)]))@luck=2

/ all horse armour
group(ID=iron_horse_armor,NBTTag=(display=(Name="$f$lTempered Horse Armour"),ench=[(id=1,lvl=1)]);ID=golden_horse_armor,NBTTag=(display=(Name="$f$lShining Horse Armour"),ench=[(id=4,lvl=1)]);ID=diamond_horse_armor,NBTTag=(display=(Name="$f$lGlittering Horse Armour"),ench=[(id=0,lvl=1)]))@luck=1

/ bow and arrows
group(ID=bow,NBTTag=(display=(Name="$f$lFlaming Bow"),ench=[(id=50,lvl=1)]);ID=arrow,amount=#rand(16,32))@luck=1

ID=ender_chest,amount=2@luck=0
ID=experience_bottle,amount=#rand(48,64)@luck=1
ID=obsidian,amount=32@luck=0
group(ID=tnt,amount=16;ID=flint_and_steel)@luck=0

ID=stick,NBTTag=(display=(Name="$f$lPoking Stick"),ench=[(id=19,lvl=2)])@luck=-1
ID=skull,damage=3,NBTTag=(SkullOwner=#pName,display=(Name="$e$l#pName's Lucky Head"),ench=#luckyHelmetEnchantments)@luck=1

group(ID=lucky:lucky_potion,amount=#rand(2,4);ID=lucky:astral_lucky_potion,amount=#rand(3,6))@luck=1
group(ID=lucky:lucky_potion,amount=#rand(1,2),NBTTag=(Luck=100,display=(Name="$rVery Lucky Potion"));ID=lucky:astral_lucky_potion,amount=#rand(2,4),NBTTag=(Luck=100,display=(Name="$rAstral Very Lucky Potion")))@luck=2
group(ID=lucky:lucky_potion,amount=#rand(1,2),NBTTag=(Luck=-100,display=(Name="$rUnlucky Potion"));ID=lucky:astral_lucky_potion,amount=#rand(2,4),NBTTag=(Luck=-100,display=(Name="$rAstral Unlucky Potion")))@luck=-1

type=entity,ID=Item,NBTTag=(CustomName="$cUnlucky Sword of the Heavens",CustomNameVisible=true,Item=(Count=1,id=lucky:astral_lucky_sword,tag=(Luck=-100,display=(Name="$c$lUnlucky Sword of the Heavens"))))@luck=1
type=entity,ID=Item,NBTTag=(CustomName="$cUnlucky Star Shooter",CustomNameVisible=true,Item=(Count=1,id=lucky:astral_lucky_bow,tag=(Luck=-100,display=(Name="$c$lUnlucky Star Shooter"))))@luck=1
group(ID=lucky:astral_lucky_sword;ID=lucky:astral_lucky_bow;ID=arrow)@luck=1

/ enchantment table with bookshelves
group(ID=enchanting_table;ID=bookshelf,amount=15)@luck=1
/ golden apples
group(ID=golden_apple,amount=#rand(3,4);ID=golden_apple,amount=#rand(1,2),damage=1)@luck=2
/ meat (cooked)
group:1:(ID=cooked_porkchop,amount=#rand(8,16);ID=cooked_fish,amount=#rand(8,24);ID=cooked_fish,damage=1,amount=#rand(8,24);ID=cooked_beef,amount=#rand(8,24);ID=cooked_chicken,amount=#rand(8,24);ID=cooked_mutton,amount=#rand(8,24);ID=cooked_rabbit,amount=#rand(8,24))@chance=0.6@luck=1
/ vegetable food (carrots, potatoes, pumpkin pie)
group:1:(group(ID=pumpkin,amount=#rand(8,16);ID=lit_pumpkin,amount=#rand(8,16));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)))@chance=0.6@luck=1
/ ender pearls
ID=ender_pearl,amount=16@chance=0.6@luck=2
/ potions
group(ID=potion,damage=#randPotionDamage,amount=#rand(3,5);ID=potioncore:custom_potion,amount=#rand(2,4),damage=#rand(0,1),NBTTag=(CustomPotionEffects=[(Id=#randList(minecraft:haste,minecraft:mining_fatigue,minecraft:blindness,potioncore:repair,potioncore:extension,potioncore:recoil,potioncore:reach,potioncore:rust,potioncore:vulnerable,potioncore:slowfall,potioncore:levitate,potioncore:revival,potioncore:weight,potioncore:klutz,potioncore:archery,potioncore:flight,potioncore:purity,potioncore:drown,potioncore:climb,potioncore:perplexity,potioncore:soildcore,potioncore:stepup,potioncore:antidote,potioncore:spin,minecraft:absorption,minecraft:health_boost,potioncore:perplexity),Duration=#randList(3600,9600))]);ID=potioncore:custom_potion,amount=#rand(2,4),damage=#rand(0,1),NBTTag=(CustomPotionEffects=[(Id=#randList(potioncore:love,potioncore:teleport,potioncore:teleportsurface,potioncore:cure,potioncore:disorganization,potioncore:explode,potioncore:burst,potioncore:dispel,potioncore:fire,potioncore:lightning,potioncore:chance,potioncore:bless,potioncore:curse,potioncore:invert,potioncore:launch),Duration=1)]))@luck=1
/ spawn eggs
ID=spawn_egg,damage=#randSpawnEggDamage,amount=#rand(4,8)@chance=0.4@luck=1
/ brewing
group(ID=brewing_stand;ID=glass_bottle,amount=#rand(3,12);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=16;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)@chance=0.8@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);ID=stained_glass,damage=#rand(0,15),amount=#rand(32,64);ID=stained_glass_pane,damage=#rand(0,15),amount=#rand(32,64);ID=carpet,damage=#rand(0,15),amount=#rand(32,64));type=particle,ID=2002,damage=#randPotionParticle,amount=10)@chance=0.8@luck=1
/ flowers
group(ID=red_flower,damage=#rand(0,8),amount=64)@luck=0
/ 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

/ resource rain
group(type=entity,ID=Item,NBTTag=(Item=(id=#randList(diamond,emerald,gold_ingot,iron_ingot,redstone),Count=1)),amount=#rand(40,100),posOffset=#circleOffset(0,4),posOffsetY=#rand(5,400);type=entity,ID=Item,NBTTag=(Item=(id=dye,Damage=4,Count=1)),amount=#rand(10,20),posOffset=#circleOffset(0,4),posOffsetY=#rand(5,400))@luck=2
/ ores
group(type=entity,ID=Item,NBTTag=(Item=(id=#randList(coal_ore,quartz_ore,diamond_ore,emerald_ore,redstone_ore,lapis_ore),Count=1)),amount=#rand(40,100),posOffset=#circleOffset(0,4),posOffsetY=#rand(5,400))@luck=2

/wood
group(ID=sapling,damage=0,amount=#rand(4,8);ID=sapling,damage=1,amount=#rand(4,8);ID=sapling,damage=2,amount=#rand(4,8);ID=sapling,damage=3,amount=#rand(4,8);ID=sapling,damage=4,amount=#rand(4,8);ID=sapling,damage=5,amount=#rand(4,8);ID=log,damage=0,amount=#rand(1,5);ID=log,damage=1,amount=#rand(1,5);ID=log,damage=2,amount=#rand(1,5);ID=log,damage=3,amount=#rand(1,5);ID=log2,damage=0,amount=#rand(1,5);ID=log2,damage=1,amount=#rand(1,5);ID=planks,damage=0,amount=#rand(5,10);ID=planks,damage=2,amount=#rand(5,10);ID=planks,damage=3,amount=#rand(5,10);ID=planks,damage=4,amount=#rand(5,10);ID=planks,damage=5,amount=#rand(5,10);ID=wooden_slab,damage=0,amount=#rand(5,10);ID=wooden_slab,damage=1,amount=#rand(5,10);ID=wooden_slab,damage=2,amount=#rand(5,10);ID=wooden_slab,damage=3,amount=#rand(5,10);ID=wooden_slab,damage=4,amount=#rand(5,10);ID=wooden_slab,damage=5,amount=#rand(5,10);ID=oak_stairs,amount=#rand(5,10);ID=spruce_stairs,amount=#rand(5,10);ID=birch_stairs,amount=#rand(5,10);ID=jungle_stairs,amount=#rand(5,10);ID=acacia_stairs,amount=#rand(5,10);ID=dark_oak_stairs,amount=#rand(5,10);ID=oak_fence,amount=#rand(5,10);ID=spruce_fence,amount=#rand(5,10);ID=birch_fence,amount=#rand(5,10);ID=jungle_fence,amount=#rand(5,10);ID=acacia_fence,amount=#rand(5,10);ID=dark_oak_fence,amount=#rand(5,10);ID=oak_fence_gate,amount=#rand(1,2);ID=spruce_fence_gate,amount=#rand(1,2);ID=birch_fence_gate,amount=#rand(1,2);ID=jungle_fence_gate,amount=#rand(1,2);ID=acacia_fence_gate,amount=#rand(1,2);ID=dark_oak_fence_gate,amount=#rand(1,2);ID=oak_door,amount=#rand(2,2);ID=spruce_door,amount=#rand(2,2);ID=birch_door,amount=#rand(1,2);ID=jungle_door,amount=#rand(1,2);ID=acacia_door,amount=#rand(1,2);ID=dark_oak_door,amount=#rand(1,2))@luck=-1

/ banners
type=entity,ID=Item,NBTTag=(Item=(id=banner,Damage=#rand(0,15),Count=16,tag=(BlockEntityTag=(Patterns=[(Pattern=#randList(o,o,o,o,o,o,o,o,ld,rud,lud,rd,vh,vhr,hh,hhb),Color=#rand(0,15)),(Pattern=#randList(o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,ts,bs,ls,rs,cs,ms,drs,dls,ss,cr,sc,tl,tr,bl,br,bt,tt,bts,tts),Color=#rand(0,15)),(Pattern=#randList(o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,ts,bs,ls,rs,cs,ms,drs,dls,ss,cr,sc,tl,tr,bl,br,bt,tt,bts,tts),Color=#rand(0,15)),(Pattern=#randList(o,o,o,o,bo,cbo,bri,gra,gru),Color=#rand(0,15)),(Pattern=#randList(o,o,o,o,o,o,o,o,o,bo,cbo,bri,gra,gru),Color=#rand(0,15)),(Pattern=#randList(o,o,mr,mc,sku,cri,moj,flo),Color=#rand(0,15))]))))@luck=0

/ throwing stars
ID=lootplusplus:astral.throwing_star,amount=#rand(16,32)@luck=1
ID=lootplusplus:astral.throwing_star_fire,amount=#rand(16,32)@luck=1
ID=lootplusplus:astral.throwing_star_ice,amount=#rand(16,32)@luck=1
ID=lootplusplus:astral.throwing_star_poison,amount=#rand(16,32)@luck=1
ID=lootplusplus:astral.throwing_star_dark,amount=#rand(16,32)@luck=1
ID=lootplusplus:astral.throwing_star_explode,amount=#rand(16,32)@luck=1

/ make it count
type=entity,ID=Item,NBTTag=(CustomName="$eMake it Count",CustomNameVisible=true,Item=(Count=1,id=lootplusplus:astral.lucky_pickaxe,Damage=1799,tag=(ench=[(id=35,lvl=100)],display=(Name="$e$lMake it Count"),RepairCost=1000)))@luck=1
type=entity,ID=Item,NBTTag=(CustomName="$eMake it Count",CustomNameVisible=true,Item=(Count=1,id=lootplusplus:astral.lucky_axe,Damage=1800,tag=(ench=[(id=16,lvl=1000)],display=(Name="$e$lMake it Count"),RepairCost=1000)))@luck=1

/ slapper
type=entity,ID=Item,NBTTag=(CustomName=$eSlapper,CustomNameVisible=true,Item=(Count=1,id=lootplusplus:astral.lucky_shovel,tag=(display=(Name=$e$lSlapper),ench=[(id=19,lvl=20)])))@luck=1

/ parachute
type=entity,ID=Item,NBTTag=(CustomName=Parachute,CustomNameVisible=true,Item=(Count=1,id=lootplusplus:astral.parachute))@luck=1

/ normal lucky gear

/ lucky swordbow
group(ID=arrow,amount=#rand(16,32);ID=lootplusplus:astral.swordbow_diamond,NBTTag=(display=(Name="$e$l#pName's Lucky Swordbow"),ench=#luckyBowEnchantments,AttributeModifiers=[(AttributeName=generic.attackDamage,Name="Weapon modifier",Amount=7,Operation=0,UUIDLeast=-6586624321849018929,UUIDMost=-3801225194067177672)]))@luck=2

/ lucky sword
ID=lucky:lucky_sword,NBTTag=(Luck=100,display=(Name="$e$l#pName's Lucky Sword"),ench=#luckySwordEnchantments)@luck=1

/ lucky bow
group(ID=arrow,amount=#rand(16,32);ID=lucky:lucky_bow,NBTTag=(Luck=100,display=(Name="$e$l#pName's Lucky Bow"),ench=#luckyBowEnchantments))@luck=1

/ lucky armor
ID=lootplusplus:astral.lucky_boots,NBTTag=(display=(Name="$e$l#pName's Lucky Boots"),ench=#luckyBootsEnchantments)@luck=1@chance=2
ID=lootplusplus:astral.lucky_leggings,NBTTag=(display=(Name="$e$l#pName's Lucky Leggings"),ench=#luckyLeggingsEnchantments)@luck=1@chance=2
ID=lootplusplus:astral.lucky_chestplate,NBTTag=(display=(Name="$e$l#pName's Lucky Chestplate"),ench=#luckyChestplateEnchantments)@luck=1@chance=2
ID=lootplusplus:astral.lucky_helmet,NBTTag=(display=(Name="$e$l#pName's Lucky Helmet"),ench=#luckyHelmetEnchantments)@luck=1@chance=2

/ lucky tools
ID=lootplusplus:astral.lucky_axe,NBTTag=(display=(Name="$e$l#pName's Lucky Axe"),ench=#luckyAxeEnchantments)@luck=1
ID=lootplusplus:astral.lucky_shovel,NBTTag=(display=(Name="$e$l#pName's Lucky Shovel"),ench=#luckyAxeEnchantments)@luck=1
ID=lootplusplus:astral.lucky_pickaxe,NBTTag=(display=(Name="$e$l#pName's Lucky Pickaxe"),ench=#luckyAxeEnchantments)@luck=1
ID=lootplusplus:astral.lucky_scythe,NBTTag=(display=(Name="$e$l#pName's Lucky Scythe"),ench=#luckyAxeEnchantments)@luck=1

/ starry furnace + smeltables
group(type=entity,ID=Item,NBTTag=(CustomName="Starry Furnace",CustomNameVisible=true,Item=(id=lootplusplus:astral.starry_furnace,Count=1,tag=(display=(Lore=["$7Burns with the heat of 1000 suns.","$7Smelts a whole stack with 1 coal."]))));ID=coal,amount=2;ID=iron_ore,amount=#rand(32,64);ID=gold_ore,amount=#rand(32,64))@luck=2

/ starry crafting table
ID=lootplusplus:astral.starry_crafting_table@luck=1@chance=0.5

/ end stuff
group(ID=end_portal_frame,amount=#rand(2,6);ID=ender_pearl,amount=#rand(3,8);ID=ender_eye,amount=#rand(3,8))@luck=2

/ hearts
ID=lootplusplus:astral.little_heart,amount=#rand(2,4),NBTTag=(display=(Lore=["$rRestores 2 hearts when eaten."]))@luck=1

/ star cookies
ID=lootplusplus:astral.star_cookie,amount=#rand(2,4),NBTTag=(display=(Lore=["$rGives a random good potion effect when eaten."]))@luck=1

/ ---- Potions ----

/ ~~ Positive Potions ~~

/ Extra Life
type=entity,ID=Item,NBTTag=(CustomName="$dExtra Life",CustomNameVisible=true,Item=(Count=1,id=potioncore:custom_potion,tag=(CustomPotionEffects=[(Id=potioncore:revival,Amplifier=4,Duration=24000)],display=(Name="$dExtra Life",Lore=["","$rIf you are about to die,","$rrestores 20 hearts."]))))@luck=2

/ Gear Repair
type=entity,ID=Item,NBTTag=(CustomName="$bInstant Gear Repair",CustomNameVisible=true,Item=(Count=1,Damage=1,id=potioncore:custom_potion,tag=(CustomPotionEffects=[(Id=potioncore:repair,Amplifier=99,Duration=1200)],display=(Name="$bInstant Gear Repair",Lore=["","$rTired of your gear breaking?","$rJust splash yourself with this!","$rRepairs ~1000 durability on your","$requipped armor and held item!"]))))@luck=1

/ Superhero
type=entity,ID=Item,NBTTag=(CustomName="$eSuperhero Potion",CustomNameVisible=true,Item=(Count=1,id=potioncore:custom_potion,tag=(CustomPotionEffects=[(Id=strength,Amplifier=1,Duration=1200),(Id=potioncore:archery,Amplifier=1,Duration=1200),(Id=haste,Amplifier=1,Duration=1200),(Id=speed,Amplifier=1,Duration=1200),(Id=potioncore:flight,Amplifier=0,Duration=1200)],display=(Name="$rSuperhero Potion",Lore=["","$rBe a superhero!"]))))@luck=1

/ Bless
type=entity,ID=Item,NBTTag=(CustomName="Bless Potion",CustomNameVisible=true,Item=(Count=1,id=potioncore:custom_potion,tag=(CustomPotionEffects=[(Id=potioncore:bless,Amplifier=4,Duration=1)],display=(Lore=["","$r5 good random potion effects."]))))@luck=1@chance=3

/ Recoil
type=entity,ID=Item,NBTTag=(CustomName="$bRecoil Potion",CustomNameVisible=true,Item=(Count=1,id=potioncore:custom_potion,tag=(CustomPotionEffects=[(Id=potioncore:recoil,Amplifier=3,Duration=1200)],display=(Lore=["","$rReflects 50% of the damage done to","$ryou back to the attacker!"]))))@luck=1

/ ~~ Negative Potions ~~

/ Thunder in a Bottle
type=entity,ID=Item,NBTTag=(CustomName="$eThunder in a Bottle",CustomNameVisible=true,Item=(Count=#rand(2,4),Damage=1,id=potioncore:custom_potion,tag=(CustomPotionEffects=[(Id=potioncore:lightning,Amplifier=0,Duration=1)],display=(Lore=["","$rHit a living creature and they will","$rreally taste the thunder!"]))))@luck=0

/ Launch - Space Potion
type=entity,ID=Item,NBTTag=(CustomName="Space Potion",CustomNameVisible=true,Item=(Count=#rand(1,3),Damage=1,id=potioncore:custom_potion,tag=(CustomPotionEffects=[(Id=potioncore:launch,Amplifier=19,Duration=1)],display=(Name="$rSpace Potion",Lore=["","$rSPAAACE!"]))))@luck=0

/ Curse
type=entity,ID=Item,NBTTag=(CustomName="$7Curse Potion",CustomNameVisible=true,Item=(Count=1,Damage=1,id=potioncore:custom_potion,tag=(CustomPotionEffects=[(Id=potioncore:curse,Amplifier=4,Duration=1)],display=(Lore=["","$r5 bad random potion effects."]))))@luck=0@chance=3

/ Random
type=entity,ID=Item,NBTTag=(CustomName="Random Potion",CustomNameVisible=true,Item=(Count=1,Damage=1,id=potioncore:custom_potion,tag=(CustomPotionEffects=[(Id=potioncore:chance,Amplifier=4,Duration=1)],display=(Lore=["","$r5 completely random potion effects."]))))@luck=-1

/ Ultimate Confusion
type=entity,ID=Item,NBTTag=(CustomName="$eThe Worst Day Ever",CustomNameVisible=true,Item=(Count=1,Damage=1,id=potioncore:custom_potion,tag=(CustomPotionEffects=[(Id=nausea,Amplifier=0,Duration=1200),(Id=blindness,Amplifier=0,Duration=1200),(Id=potioncore:spin,Amplifier=0,Duration=1200),(Id=potioncore:perplexity,Amplifier=0,Duration=1200),(Id=potioncore:disorganization,Amplifier=0,Duration=1)],display=(Name="$rThe Worst Day Ever",Lore=["","$rYup. All the worst effects in one","$rpotion. One minute of utter chaos."]))))@luck=-1

/ Statue
type=entity,ID=Item,NBTTag=(CustomName="$eStatue in a Bottle",CustomNameVisible=true,Item=(Count=#rand(1,3),Damage=1,id=potioncore:custom_potion,tag=(CustomPotionEffects=[(Id=slowness,Amplifier=99,Duration=500),(Id=potioncore:weight,Amplifier=99,Duration=500),(Id=mining_fatigue,Amplifier=99,Duration=500)],display=(Name="$rStatue in a Bottle",Lore=["","$rMake someone into a statue!"]))))@luck=-1

/ Gear Wrecker
type=entity,ID=Item,NBTTag=(CustomName="$4Highly Corrosive Acids",CustomNameVisible=true,Item=(Count=1,Damage=1,id=potioncore:custom_potion,tag=(CustomPotionEffects=[(Id=potioncore:rust,Amplifier=99,Duration=600)],display=(Name="$4Highly Corrosive Acids",Lore=["","$rMelts through pretty much any gear","$ryou are wearing or holding. Does","$r~2000 durability damage in total,","$rhowever, gold gear is immune!"]))))@luck=0

/ Inversion
type=entity,ID=Item,NBTTag=(CustomName="$bInversion",CustomNameVisible=true,Item=(Count=1,Damage=1,id=potioncore:custom_potion,tag=(CustomPotionEffects=[(Id=potioncore:invert,Amplifier=0,Duration=1)],display=(Lore=["","$rDid your opponent eat an Enchanted","$rGolden Apple or drink a lucky potion?","$rNo problem! Just throw this on them!"]))))@luck=0

/ Perplexity
type=entity,ID=Item,NBTTag=(CustomName="$dPerplexing Potion",CustomNameVisible=true,Item=(Count=1,Damage=1,id=potioncore:custom_potion,tag=(CustomPotionEffects=[(Id=potioncore:perplexity,Amplifier=0,Duration=1200)],display=(Lore=["","$rWhoah... What's going on?","$rWhy is forwards backwards and","$rup down?"]))))@luck=0

/ ~~ Lucky/Unlucky Potions ~~

/ 'Vanilla' lucky and unlucky potions
type=entity,ID=Item,NBTTag=(CustomName="$eLucky Potion",CustomNameVisible=true,Item=(Count=1,id=potioncore:custom_potion,tag=(display=(Name="$e$lLucky Potion",color=16765490),CustomPotionEffects=#luckyPotionEffects)))@luck=2
type=entity,ID=Item,NBTTag=(CustomName="$eUnlucky Potion",CustomNameVisible=true,Item=(Count=1,Damage=1,id=potioncore:custom_potion,tag=(display=(Name="$e$lUnlucky Potion",color=3803458),CustomPotionEffects=#unluckyPotionEffects)))@luck=-1

/ EPIC lucky and unlucky potions
type=entity,ID=Item,NBTTag=(CustomName="$bEPIC $eLucky Potion",CustomNameVisible=true,Item=(Count=1,id=potioncore:custom_potion,tag=(display=(Name="$b$lEPIC $e$lLucky Potion",color=65535),CustomPotionEffects=[(Id=#randList(jump_boost,potioncore:stepup),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(regeneration,potioncore:revival),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(saturation,potioncore:slowfall),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(strength,potioncore:reach),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(potioncore:archery,speed),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(haste,resistance),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(potioncore:repair,potioncore:health_boost),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(potioncore:recoil,absorption),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(water_breathing,fire_resistance,potioncore:solidcore),Duration=#rand(5000,12000)),(Id=#randList(potioncore:antidote,potioncore:purity),Duration=#rand(5000,12000)),(Id=#randList(invisibility,potioncore:climb),Duration=#rand(5000,12000)),(Id=#randList(instant_health,potioncore:love,potioncore:cure),Duration=1)])))@luck=2
type=entity,ID=Item,NBTTag=(CustomName="$5EPIC $eUnlucky Potion",CustomNameVisible=true,Item=(Count=1,Damage=1,id=potioncore:custom_potion,tag=(display=(Name="$5$lEPIC $e$lUnlucky Potion",color=12386559),CustomPotionEffects=[(Id=#randList(slowness,weakness),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(wither,potioncore:levitate),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(potioncore:klutz,potioncore:weight),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(blindness,poison,hunger),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(potioncore:rust,mining_fatigue),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(potioncore:perplexity,potioncore:drown),Duration=#rand(5000,12000)),(Id=#randList(potioncore:spin,nausea),Duration=#rand(5000,12000)),(Id=#randList(potioncore:launch,potioncore:teleport),Amplifier=#rand(0,3),Duration=1),(Id=#randList(potioncore:fire,instant_damage),Amplifier=#rand(0,3),Duration=1),(Id=#randList(potioncore:disorganization,potioncore:dispel),Duration=1),(Id=#randList(potioncore:explode,potioncore:lightning),Duration=1)])))@luck=-1

/========== ATTRIBUTE ITEMS =============

/ star slicer
type=entity,ID=Item,NBTTag=(CustomName="$eThe Star Slicer",CustomNameVisible=true,Item=(Count=1,id="lootplusplus:astral.star_slicer",tag=(display=(Name="$e$lThe Star Slicer",Lore=["$7Star Strike I","","$rSlices through the heavens with","$reach swing. May bring shooing","$rstars down on your foes."]),ench=[(id=17,lvl=#rand(1,3)),(id=18,lvl=#rand(1,3)),(id=19,lvl=#rand(1,2)),(id=21,lvl=#rand(1,5))],AttributeModifiers=[(AttributeName=generic.attackDamage,Name=attack,Amount=10,Operation=0,UUIDLeast=10,UUIDMost=2),(AttributeName=potioncore.reach,Name=reach,Amount=10,Operation=0,UUIDLeast=10,UUIDMost=1)])))@luck=2

/ star miner
type=entity,ID=Item,NBTTag=(CustomName="$eThe Star Miner",CustomNameVisible=true,Item=(Count=1,id="lootplusplus:astral.star_miner",tag=(display=(Name="$e$lThe Star Miner"),ench=#luckyToolEnchantments,AttributeModifiers=[(AttributeName=generic.attackDamage,Name=attack,Amount=10,Operation=0,UUIDLeast=10,UUIDMost=2),(AttributeName=potioncore.reach,Name=reach,Amount=10,Operation=0,UUIDLeast=10,UUIDMost=1)])))@luck=2

/ mech set
type=entity,ID=Item,NBTTag=(CustomName="Jet Boots",CustomNameVisible=true,Item=(Count=1,id=lootplusplus:astral.mech_boots,tag=(display=(Lore=["$7Jet Propulsion I","","$rFly through the heavens!","$rConsumes 1 blaze powder every 10","$rseconds while in the air."]),ench=#luckyBootsEnchantments)),Riding=(id=Item,Item=(id=blaze_powder,Count=64),Riding=(id=Item,Item=(id=blaze_powder,Count=64))))@luck=2@chance=2
type=entity,ID=Item,NBTTag=(CustomName="Spring-loaded Mech Leggings",CustomNameVisible=true,Item=(Count=1,id=lootplusplus:astral.mech_leggings,tag=(display=(Lore=["$7Spring Jump III"]),ench=#luckyLeggingsEnchantments)))@luck=2@chance=2
type=entity,ID=Item,NBTTag=(CustomName="Mech Chestplate",CustomNameVisible=true,Item=(Count=1,id=lootplusplus:astral.mech_chestplate,tag=(display=(Lore=["$7Soild Core I"]),ench=#luckyChestplateEnchantments,AttributeModifiers=[(AttributeName=generic.knockbackResistance,Name=resist,Amount=1,Operation=0,UUIDLeast=16,UUIDMost=1)])))@luck=2@chance=2
type=entity,ID=Item,NBTTag=(CustomName="Mech Helmet",CustomNameVisible=true,Item=(Count=1,id=lootplusplus:astral.mech_helmet,tag=(display=(Lore=["$7Accurate Shot II","$7Night Vision I"]),ench=#luckyHelmetEnchantments,AttributeModifiers=[(AttributeName=potioncore.projectileDamage,Name=projectile,Amount=1.5f,Operation=1,UUIDLeast=17,UUIDMost=1)])))@luck=2@chance=2

/ arm cannon
type=entity,ID=Item,NBTTag=(CustomName="Arm Cannon",CustomNameVisible=true,Item=(Count=1,id=lootplusplus:astral.arm_cannon,tag=(ench=[(id=48,lvl=#rand(2,5)),(id=49,lvl=#rand(1,3)),(id=21,lvl=#rand(3,5))])))@luck=1

/ mage set
type=entity,ID=Item,NBTTag=(CustomName="Flameless Mage Boots",CustomNameVisible=true,Item=(Count=1,id=lootplusplus:astral.mage_boots,tag=(display=(Lore=["$7Fire Immunity I"]),ench=#luckyBootsEnchantments,AttributeModifiers=[(AttributeName=potioncore.projectileDamage,Name=projectile,Amount=0.2f,Operation=1,UUIDLeast=17,UUIDMost=1)])))@luck=1@chance=2
type=entity,ID=Item,NBTTag=(CustomName="Icy Mage Pants",CustomNameVisible=true,Item=(Count=1,id=lootplusplus:astral.mage_leggings,tag=(display=(Lore=["$7Slowness Immunity I","$7Frost Sprint I"]),ench=#luckyLeggingsEnchantments,AttributeModifiers=[(AttributeName=potioncore.projectileDamage,Name=projectile,Amount=0.2f,Operation=1,UUIDLeast=18,UUIDMost=1)])))@luck=1@chance=2
type=entity,ID=Item,NBTTag=(CustomName="Poisonless Mage Robe",CustomNameVisible=true,Item=(Count=1,id=lootplusplus:astral.mage_chestplate,tag=(display=(Lore=["$7Poison Immunity I","$7Nausea Immunity I"]),ench=#luckyChestplateEnchantments,AttributeModifiers=[(AttributeName=potioncore.projectileDamage,Name=projectile,Amount=0.2f,Operation=1,UUIDLeast=19,UUIDMost=1)])))@luck=1@chance=2
type=entity,ID=Item,NBTTag=(CustomName="Witherless Mage Hood",CustomNameVisible=true,Item=(Count=1,id=lootplusplus:astral.mage_helmet,tag=(display=(Lore=["$7Wither Immunity I","$7Blindness Immunity I"]),ench=#luckyHelmetEnchantments,AttributeModifiers=[(AttributeName=potioncore.projectileDamage,Name=projectile,Amount=0.2f,Operation=1,UUIDLeast=20,UUIDMost=1)])))@luck=1@chance=2

/ sword of the heavens
type=entity,ID=Item,NBTTag=(CustomName="$eSword of the Heavens",CustomNameVisible=true,Item=(Count=1,id=lucky:astral_lucky_sword,tag=(Unbreakable=true,Luck=100,display=(Name="$e$lSword of the Heavens",Lore=["","$9Found by #pName"]),ench=[(id=17,lvl=#rand(1,3)),(id=18,lvl=#rand(1,3)),(id=19,lvl=#rand(1,2)),(id=20,lvl=#rand(1,2)),(id=21,lvl=#rand(1,5))],AttributeModifiers=[(AttributeName=generic.attackDamage,Name=attack,Amount=#rand(12,16),Operation=0,UUIDLeast=11,UUIDMost=3),(AttributeName=generic.movementSpeed,Name=speed,Amount=0.2f,Operation=1,UUIDLeast=11,UUIDMost=1),(AttributeName=potioncore.reach,Name=reach,Amount=2,Operation=0,UUIDLeast=11,UUIDMost=2)])))@luck=2

/ heavenly axe
type=entity,ID=Item,NBTTag=(CustomName="$eHeavenly Axe",CustomNameVisible=true,Item=(Count=1,id=lootplusplus:astral.astral_axe,tag=(Unbreakable=true,display=(Name="$e$lHeavenly Axe",Lore=["","$9Found by #pName"]),ench=[(id=32,lvl=20),(id=17,lvl=#rand(1,3)),(id=18,lvl=#rand(1,3)),(id=19,lvl=#rand(1,2)),(id=20,lvl=#rand(1,2)),(id=21,lvl=#rand(1,5))],AttributeModifiers=[(AttributeName=generic.attackDamage,Name=attack,Amount=#rand(11,15),Operation=0,UUIDLeast=11,UUIDMost=3),(AttributeName=potioncore.attackSpeed,Name=speed,Amount=0.2f,Operation=1,UUIDLeast=11,UUIDMost=1),(AttributeName=potioncore.reach,Name=reach,Amount=2,Operation=0,UUIDLeast=11,UUIDMost=2)])))@luck=2

/ star shooter
group(type=entity,ID=Item,NBTTag=(CustomName="$eStar Shooter",CustomNameVisible=true,Item=(Count=1,id=lucky:astral_lucky_bow,tag=(Unbreakable=true,Luck=100,display=(Name="$e$lStar Shooter",Lore=["","$9Found by #pName",""]),ench=[(id=48,lvl=#rand(1,5)),(id=49,lvl=#rand(1,5)),(id=50,lvl=1),(id=51,lvl=1),(id=21,lvl=#rand(1,5))])));ID=arrow)@luck=2

/ astral helmet
type=entity,ID=Item,NBTTag=(CustomName="$eAccurate Astral Lucky Helmet",CustomNameVisible=true,Item=(Count=1,id=lootplusplus:astral.astral_helmet,tag=(Unbreakable=true,display=(Name="$e$lAccurate Astral Lucky Helmet",Lore=["$7Accurate Shot I","","$9Found by #pName"]),ench=#luckyHelmetEnchantments,AttributeModifiers=[(AttributeName=generic.attackDamage,Name=attack,Amount=0.2,Operation=1,UUIDLeast=12,UUIDMost=3),(AttributeName=generic.movementSpeed,Name=speed,Amount=0.1f,Operation=1,UUIDLeast=12,UUIDMost=1),(AttributeName=potioncore.projectileDamage,Name=projectile,Amount=0.75f,Operation=1,UUIDLeast=12,UUIDMost=2)])))@luck=2@chance=1.5

/ astral chestplate
type=entity,ID=Item,NBTTag=(CustomName="$eHearty Astral Lucky Chestplate",CustomNameVisible=true,Item=(Count=1,id=lootplusplus:astral.astral_chestplate,tag=(Unbreakable=true,display=(Name="$e$lHearty Astral Lucky Chestplate",Lore=["$7Health Boost II","","$9Found by #pName"]),ench=#luckyChestplateEnchantments,AttributeModifiers=[(AttributeName=generic.attackDamage,Name=attack,Amount=0.2,Operation=1,UUIDLeast=13,UUIDMost=3),(AttributeName=generic.movementSpeed,Name=speed,Amount=0.1f,Operation=1,UUIDLeast=13,UUIDMost=1),(AttributeName=generic.maxHealth,Name=health,Amount=8,Operation=0,UUIDLeast=13,UUIDMost=2)])))@luck=2@chance=1.5

/ astral leggings
type=entity,ID=Item,NBTTag=(CustomName="$eNinja's Astral Lucky Leggings",CustomNameVisible=true,Item=(Count=1,id=lootplusplus:astral.astral_leggings,tag=(Unbreakable=true,display=(Name="$e$lNinja's Astral Lucky Leggings",Lore=["$7Quick Attack I","","$9Found by #pName"]),ench=#luckyLeggingsEnchantments,AttributeModifiers=[(AttributeName=generic.attackDamage,Name=attack,Amount=0.2,Operation=1,UUIDLeast=14,UUIDMost=3),(AttributeName=generic.movementSpeed,Name=speed,Amount=0.1f,Operation=1,UUIDLeast=14,UUIDMost=1),(AttributeName=potioncore.attackSpeed,Name=knockback,Amount=0.1,Operation=1,UUIDLeast=14,UUIDMost=2)])))@luck=2@chance=1.5

/ astral boots
type=entity,ID=Item,NBTTag=(CustomName="$eTall Astral Lucky Boots",CustomNameVisible=true,Item=(Count=1,id=lootplusplus:astral.astral_boots,tag=(Unbreakable=true,display=(Name="$e$lTall Astral Lucky Boots",Lore=["$7Step-Up I","","$9Found by #pName"]),ench=#luckyBootsEnchantments,AttributeModifiers=[(AttributeName=generic.attackDamage,Name=attack,Amount=0.2,Operation=1,UUIDLeast=15,UUIDMost=3),(AttributeName=generic.movementSpeed,Name=speed,Amount=0.1f,Operation=1,UUIDLeast=15,UUIDMost=1),(AttributeName=potioncore.stepHeight,Name=step,Amount=0.5f,Operation=0,UUIDLeast=14,UUIDMost=2)])))@luck=2@chance=1.5

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

/~~ launched things ~~

/ thrown exp bottles
type=entity,ID=ThrownExpBottle,NBTTag=(Motion=#randLaunchMotion),amount=#rand(32,48)@luck=1

/ lucky eggs
type=entity,ID=lootplusplus.ThrownItem,NBTTag=(ItemThrown=lootplusplus:astral.lucky_egg,Motion=#randLaunchMotion),amount=32@luck=2

/ thrown stars
type=entity,ID=Item,NBTTag=(Item=(id=lootplusplus:astral.throwing_star,Count=#rand(1,2)),Riding=(id=lootplusplus.ThrownItem,ItemThrown=lootplusplus:astral.throwing_star,Motion=#randLaunchMotion)),amount=#rand(10,20)@luck=0
type=entity,ID=Item,NBTTag=(Item=(id=lootplusplus:astral.throwing_star_fire,Count=#rand(1,2)),Riding=(id=lootplusplus.ThrownItem,ItemThrown=lootplusplus:astral.throwing_star_fire,Motion=#randLaunchMotion)),amount=#rand(10,20)@luck=0
type=entity,ID=Item,NBTTag=(Item=(id=lootplusplus:astral.throwing_star_ice,Count=#rand(1,2)),Riding=(id=lootplusplus.ThrownItem,ItemThrown=lootplusplus:astral.throwing_star_ice,Motion=#randLaunchMotion)),amount=#rand(10,20)@luck=0
type=entity,ID=Item,NBTTag=(Item=(id=lootplusplus:astral.throwing_star_poison,Count=#rand(1,2)),Riding=(id=lootplusplus.ThrownItem,ItemThrown=lootplusplus:astral.throwing_star_poison,Motion=#randLaunchMotion)),amount=#rand(10,20)@luck=0
type=entity,ID=Item,NBTTag=(Item=(id=lootplusplus:astral.throwing_star_dark,Count=#rand(1,2)),Riding=(id=lootplusplus.ThrownItem,ItemThrown=lootplusplus:astral.throwing_star_dark,Motion=#randLaunchMotion)),amount=#rand(10,20)@luck=0
type=entity,ID=Item,NBTTag=(Item=(id=lootplusplus:astral.throwing_star_explode,Count=#rand(1,2)),Riding=(id=lootplusplus.ThrownItem,ItemThrown=lootplusplus:astral.throwing_star_explode,Motion=#randLaunchMotion),Health=1000),amount=#rand(10,20)@luck=-1

/ launched tnt
group(type=sound,ID=game.tnt.primed;type=entity,ID=PrimedTnt,NBTTag=(Fuse=50b,Motion=#randLaunchMotion),amount=15)@chance=0.5@luck=-2

/ random potion effects
group(type=entity,ID=ThrownPotion,NBTTag=(Motion=#randLaunchMotion,Potion=(id=potion,Damage=#randPotionDamage)),amount=#rand(3,6);type=entity,ID=potioncore.CustomPotion,NBTTag=(Motion=#randLaunchMotion,Potion=(id=potioncore:custom_potion,Damage=1,tag=(CustomPotionEffects=[(Id=#randList(minecraft:haste,minecraft:mining_fatigue,minecraft:blindness,potioncore:repair,potioncore:extension,potioncore:recoil,potioncore:reach,potioncore:rust,potioncore:vulnerable,potioncore:slowfall,potioncore:levitate,potioncore:revival,potioncore:weight,potioncore:klutz,potioncore:archery,potioncore:flight,potioncore:purity,potioncore:drown,potioncore:climb,potioncore:perplexity,potioncore:soildcore,potioncore:stepup,potioncore:antidote,potioncore:spin,minecraft:absorption,minecraft:health_boost,potioncore:perplexity),Duration=#randList(3600,9600))]))),amount=#rand(5,10);type=entity,ID=potioncore:CustomPotion,NBTTag=(Potion=(id=potioncore:custom_potion,Damage=1,tag=(CustomPotionEffects=[(Id=#randList(potioncore:love,potioncore:teleport,potioncore:teleportsurface,potioncore:cure,potioncore:disorganization,potioncore:explode,potioncore:burst,potioncore:dispel,potioncore:fire,potioncore:lightning,potioncore:chance,potioncore:bless,potioncore:curse,potioncore:invert,potioncore:launch),Duration=1)]))),amount=#rand(2,4))@luck=0

/ random unlucky potions
type=entity,ID=ThrownPotion,NBTTag=(Potion=(id=potion,Count=1,Damage=16460,tag=(CustomPotionEffects=#unluckyPotionEffects)),Motion=#randLaunchMotion),amount=#rand(10,20)@luck=-2

/ random lucky potions
type=entity,ID=ThrownPotion,NBTTag=(Potion=(id=potion,Count=1,Damage=16419,tag=(CustomPotionEffects=#luckyPotionEffects)),Motion=#randLaunchMotion),amount=#rand(10,20)@luck=1

/ random epic unlucky potions
type=entity,ID=potioncore.CustomPotion,NBTTag=(Motion=#randLaunchMotion,Potion=(id=potioncore:custom_potion,damage=1,tag=(CustomPotionEffects=[(Id=#randList(slowness,weakness),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(wither,potioncore:levitate),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(potioncore:klutz,potioncore:weight),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(blindness,poison,hunger),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(potioncore:rust,mining_fatigue),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(potioncore:perplexity,potioncore:drown),Duration=#rand(5000,12000)),(Id=#randList(potioncore:spin,nausea),Duration=#rand(5000,12000)),(Id=#randList(potioncore:launch,potioncore:teleport),Amplifier=#rand(0,3),Duration=1),(Id=#randList(potioncore:fire,instant_damage),Amplifier=#rand(0,3),Duration=1),(Id=#randList(potioncore:disorganization,potioncore:dispel),Duration=1),(Id=#randList(potioncore:explode,potioncore:lightning),Duration=1)]))),amount=#rand(10,20)@luck=-2

/ random epic lucky potions
type=entity,ID=potioncore.CustomPotion,NBTTag=(Motion=#randLaunchMotion,Potion=(id=potioncore:custom_potion,damage=1,tag=(CustomPotionEffects=[(Id=#randList(jump_boost,potioncore:stepup),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(regeneration,potioncore:revival),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(saturation,potioncore:slowfall),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(strength,potioncore:reach),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(potioncore:archery,speed),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(haste,resistance),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(potioncore:repair,potioncore:health_boost),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(potioncore:recoil,absorption),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(water_breathing,fire_resistance,potioncore:solidcore),Duration=#rand(5000,12000)),(Id=#randList(potioncore:antidote,potioncore:purity),Duration=#rand(5000,12000)),(Id=#randList(invisibility,potioncore:climb),Duration=#rand(5000,12000)),(Id=#randList(instant_health,potioncore:love,potioncore:cure),Duration=1)]))),amount=#rand(10,20)@luck=0

/~~ bosses ~~

/ Bob
group(type=difficulty,ID=hard;type=entity,ID=lootplusplus.ThrownItem,NBTTag=(ItemThrown=lootplusplus:astral.label,CustomName=$e$lAstral Bob,CustomNameVisible=true,Riding=(id=Zombie,Equipment=[(id="lootplusplus:astral.star_slicer",Count=1,tag=(display=(Name="$e$lBob's Star Slicer",Lore=["$7Star Strike I","","$rSlices through the heavens with","$reach swing. May bring shooing","$rstars down on your foes."]),ench=[(id=17,lvl=#rand(1,3)),(id=18,lvl=#rand(1,3)),(id=19,lvl=#rand(1,2)),(id=21,lvl=#rand(1,5))],AttributeModifiers=[(AttributeName=generic.attackDamage,Name=attack,Amount=10,Operation=0,UUIDLeast=10,UUIDMost=2),(AttributeName=potioncore.reach,Name=reach,Amount=10,Operation=0,UUIDLeast=10,UUIDMost=1)])),(id=lootplusplus:astral.lucky_boots,Count=1,Damage=0,tag=(ench=#luckyBootsEnchantments,display=(Name="$e$lBob's Lucky Boots"))),(id=lootplusplus:astral.lucky_leggings,Count=1,Damage=0,tag=(ench=#luckyLeggingsEnchantments,display=(Name="$e$lBob's Lucky Pants"))),(id=lootplusplus:astral.lucky_chestplate,Count=1,Damage=0,tag=(ench=#luckyChestplateEnchantments,display=(Name="$e$lBob's Lucky Chestplate"))),(id=lootplusplus:astral.lucky_helmet,Count=1,Damage=0,tag=(ench=#luckyHelmetEnchantments,display=(Name="$e$lBob's Lucky Helmet")))],DropChances=[#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f],CustomName="$e$lAstral Bob",CustomNameVisible=true)))@luck=-2

/ Overlord Z
group(type=difficulty,ID=hard;type=entity,ID=lootplusplus.ThrownItem,NBTTag=(ItemThrown=lootplusplus:astral.label,CustomName="$b$lOverlord Z",CustomNameVisible=true,Riding=(id=Zombie,CustomName="$b$lOverlord Z",Equipment=[(id=diamond_sword,Count=1,tag=(display=(Name="$b$lZ's Lucky Sword"),ench=#luckySwordEnchantments)),(id=diamond_boots,Count=1,tag=(display=(Name="$b$lZ's Lucky Boots"),ench=#luckyBootsEnchantments)),(id=lootplusplus:astral.mech_leggings,Count=1,tag=(display=(Name="$b$lZ's Spring-loaded Mech Leggings",Lore=["$7Spring Jump III"]),ench=#luckyLeggingsEnchantments)),(id=lootplusplus:astral.mech_chestplate,Count=1,tag=(display=(Name="$b$lZ's Mech Chestplate",Lore=["$7Soild Core I"]),ench=#luckyChestplateEnchantments,AttributeModifiers=[(AttributeName=generic.knockbackResistance,Name="resist",Amount=1,Operation=0,UUIDLeast=16,UUIDMost=1)])),(id=mob_spawner,Count=1,tag=(display=(Name="$b$lZ's Minion Spawner",Lore=["","$rIt spawned minions for Z, but now","$rit only seems to spawn pigs..."]),ench=#luckyHelmetEnchantments))],DropChances=[#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f],Attributes=[(Name=generic.maxHealth,Base=80f),(Name=zombie.spawnReinforcements,Base=1f)],ForgeData=(LootPPCommands=(CommandListOnHurt=["lppcondition testfor @e[r=3,type=Zombie,name=Minion] _if_false_ lppcondition summon Zombie ~ ~ ~ {CustomName:Minion,IsBaby:true,Equipment:[{},{},{id:leather_leggings,tag:{display:{color:2965470}}},{id:lootplusplus:astral.mech_chestplate},{id:lootplusplus:astral.mech_helmet}]} _if_true_  particle flame ~ ~1.5 ~ 0.5 0.5 0.5 0 10"])))))@luck=-2

/ Skelatron
group(type=difficulty,ID=hard;type=entity,ID=lootplusplus.ThrownItem,NBTTag=(ItemThrown=lootplusplus:astral.label,CustomName="$b$lSkelatron",CustomNameVisible=true,Riding=(id=Skeleton,CustomName="$b$lSkelatron",Equipment=[(id=lootplusplus:astral.arm_cannon,Count=1,tag=(display=(Name="$b$lSkelatron's Arm Cannon"),ench=[(id=48,lvl=#rand(2,5)),(id=49,lvl=#rand(1,3)),(id=21,lvl=#rand(3,5))])),(id=lootplusplus:astral.mech_boots,Count=1,tag=(display=(Name="$b$lSkelatron's Jet Boots",Lore=["$7Jet Propulsion I","","$rFly through the heavens!","$rConsumes 1 blaze powder every 10","$rseconds while in the air."]),ench=#luckyBootsEnchantments)),(id=lootplusplus:astral.mech_leggings,Count=1,tag=(display=(Name="$b$lSkelatron's Spring-loaded Mech Leggings",Lore=["$7Spring Jump III"]),ench=#luckyLeggingsEnchantments)),(id=lootplusplus:astral.mech_chestplate,Count=1,tag=(display=(Name="$b$lSkelatron's Mech Chestplate",Lore=["$7Soild Core I"]),ench=#luckyChestplateEnchantments,AttributeModifiers=[(AttributeName=generic.knockbackResistance,Name="resist",Amount=1,Operation=0,UUIDLeast=16,UUIDMost=1)])),(id=lootplusplus:astral.mech_helmet,Count=1,tag=(display=(Name="$b$lSkelatron's Mech Helmet",Lore=["$7Accurate Shot II","$7Night Vision I"]),ench=#luckyHelmetEnchantments,AttributeModifiers=[(AttributeName=potioncore.projectileDamage,Name=projectile,Amount=1.5f,Operation=1,UUIDLeast=17,UUIDMost=1)]))],DropChances=[#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f]));type=command,ID="effect @e[type=Skeleton,r=0,c=1] potioncore:slowfall 1000000 127";type=command,ID="effect @e[type=Skeleton,r=0,c=1] potioncore:launch";type=command,ID="entitydata @e[type=Skeleton,c=1] {ForgeData:{LootPPCommands:{CommandList:[0:"particle flame ~0.5 ~-1.2 ~0.5 0.2 0.2 0.2 0 2"],Repeat:true,Delays:[2]}}}")@luck=-2

/ Astral Hero
group(type=difficulty,ID=hard;type=entity,ID=lootplusplus.ThrownItem,NBTTag=(ItemThrown=lootplusplus:astral.label,CustomName="$e$lAstral Hero",CustomNameVisible=true,Riding=(id=PigZombie,CustomName="$e$lAstral Hero",Equipment=[(id=lucky:astral_lucky_sword,Count=1,tag=(Unbreakable=true,Luck=100,display=(Name="$e$lSword of the Heavens",Lore=["","$9Dropped by the Astral Hero"]),ench=[(id=17,lvl=#rand(1,3)),(id=18,lvl=#rand(1,3)),(id=19,lvl=#rand(1,2)),(id=20,lvl=#rand(1,2)),(id=21,lvl=#rand(1,5))],AttributeModifiers=[(AttributeName=generic.attackDamage,Name=attack,Amount=#rand(12,16),Operation=0,UUIDLeast=11,UUIDMost=3),(AttributeName=generic.movementSpeed,Name=speed,Amount=0.2f,Operation=1,UUIDLeast=11,UUIDMost=1),(AttributeName=potioncore.reach,Name=reach,Amount=2,Operation=0,UUIDLeast=11,UUIDMost=2)])),(id=lootplusplus:astral.astral_boots,Count=1,tag=(Unbreakable=true,display=(Name="$e$lTall Astral Lucky Boots",Lore=["$7Step-Up I","","$9Dropped by the Astral Hero"]),ench=#luckyBootsEnchantments,AttributeModifiers=[(AttributeName=generic.attackDamage,Name=attack,Amount=0.2,Operation=1,UUIDLeast=15,UUIDMost=3),(AttributeName=generic.movementSpeed,Name=speed,Amount=0.1f,Operation=1,UUIDLeast=15,UUIDMost=1),(AttributeName=potioncore.stepHeight,Name=step,Amount=0.5f,Operation=0,UUIDLeast=14,UUIDMost=2)])),(Count=1,id=lootplusplus:astral.astral_leggings,tag=(Unbreakable=true,display=(Name="$e$lNinja's Astral Lucky Leggings",Lore=["$7Quick Attack I","","$9Dropped by the Astral Hero"]),ench=#luckyLeggingsEnchantments,AttributeModifiers=[(AttributeName=generic.attackDamage,Name=attack,Amount=0.2,Operation=1,UUIDLeast=14,UUIDMost=3),(AttributeName=generic.movementSpeed,Name=speed,Amount=0.1f,Operation=1,UUIDLeast=14,UUIDMost=1),(AttributeName=potioncore.attackSpeed,Name=knockback,Amount=0.1,Operation=1,UUIDLeast=14,UUIDMost=2)])),(Count=1,id=lootplusplus:astral.astral_chestplate,tag=(Unbreakable=true,display=(Name="$e$lHearty Astral Lucky Chestplate",Lore=["$7Health Boost II","","$9Dropped by the Astral Hero"]),ench=#luckyChestplateEnchantments,AttributeModifiers=[(AttributeName=generic.attackDamage,Name=attack,Amount=0.2,Operation=1,UUIDLeast=13,UUIDMost=3),(AttributeName=generic.movementSpeed,Name=speed,Amount=0.1f,Operation=1,UUIDLeast=13,UUIDMost=1),(AttributeName=generic.maxHealth,Name=health,Amount=8,Operation=0,UUIDLeast=13,UUIDMost=2)])),(Count=1,id=lootplusplus:astral.astral_helmet,tag=(Unbreakable=true,display=(Name="$e$lAccurate Astral Lucky Helmet",Lore=["$7Accurate Shot I","","$9Dropped by the Astral Hero"]),ench=#luckyHelmetEnchantments,AttributeModifiers=[(AttributeName=generic.attackDamage,Name=attack,Amount=0.2,Operation=1,UUIDLeast=12,UUIDMost=3),(AttributeName=generic.movementSpeed,Name=speed,Amount=0.1f,Operation=1,UUIDLeast=12,UUIDMost=1),(AttributeName=potioncore.projectileDamage,Name=projectile,Amount=0.75f,Operation=1,UUIDLeast=12,UUIDMost=2)]))],DropChances=[#randList(0,0,0,2)f,#randList(0,0,0,2)f,#randList(0,0,0,2)f,#randList(0,0,0,2)f,#randList(0,0,0,2)f],Attributes=[(Name=generic.maxHealth,Base=100f)])))@luck=-2

/ Evil Space Bunnies
type=entity,ID=Rabbit,posOffset=#circleOffset(2,3),posY=#bPosY+#rand(10,50),amount=#rand(2,4),NBTTag=(RabbitType=99,ActiveEffects=[(Id=11,Amplifier=5,Duration=60,ShowParticles=false)],Equipment=[(id="lootplusplus:astral.star_slicer"),(id=lootplusplus:astral.lucky_boots,tag=(ench=#luckyBootsEnchantments)),(id=lootplusplus:astral.lucky_leggings,tag=(ench=#luckyLeggingsEnchantments)),(id=lootplusplus:astral.lucky_chestplate,tag=(ench=#luckyChestplateEnchantments)),(id=lootplusplus:astral.lucky_helmet,tag=(ench=#luckyHelmetEnchantments))],DropChances=[0f,0f,0f,0f],CustomName="$c$lEvil Space Bunny")@luck=-2

/ ghostly horseman
group(type=difficulty,ID=hard;type=entity,ID=lootplusplus.ThrownItem,NBTTag=(ItemThrown=lootplusplus:astral.label,CustomName="$f$lGhostly Horseman",CustomNameVisible=true,Riding=(id=Skeleton,CustomName="$f$lGhostly Horseman",Equipment=[(id=lootplusplus:astral.swordbow_diamond,Count=1,Damage=0,tag=(ench=#luckyBowEnchantments,display=(Name="$f$lGhostly Swordbow"),AttributeModifiers=[(AttributeName=generic.attackDamage,Name="Weapon modifier",Amount=7,Operation=0,UUIDLeast=-6586624321849018929,UUIDMost=-3801225194067177672)])),(id=chainmail_helmet,Count=1,Damage=0,tag=(ench=#luckyHelmetEnchantments,display=(Name="$f$lGhostly Helmet"))),(id=chainmail_chestplate,Count=1,Damage=0,tag=(ench=#luckyChestplateEnchantments,display=(Name="$f$lGhostly Chestplate"))),(id=chainmail_leggings,Count=1,Damage=0,tag=(ench=#luckyLeggingsEnchantments,display=(Name="$f$lGhostly Pants"))),(id=chainmail_boots,Count=1,Damage=0,tag=(ench=#luckyBootsEnchantments,display=(Name="$f$lGhostly Boots")))],DropChances=[#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)],Riding=(id=EntityHorse,CustomName="$f$lGhostly Horse",Tame=true,Type=4,Riding=(id=Bat,Silent=true,ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)])))))@luck=-2

/ guardian boss
type=entity,ID=Guardian,NBTTag=(Elder=true)@chance=0.5@luck=-2

/ wither boss
type=entity,ID=WitherBoss@chance=0.5@luck=-2

/ haunted astral sword
type=entity,ID=Skeleton,NBTTag=(Silent=true,CustomName="Haunted Sword of the Heavens",Equipment=[(id=lucky:astral_lucky_sword,Count=1,tag=(Luck=100,Unbreakable=true,display=(Name="$rSword of the Heavens",Lore=["","$9Found as a Haunted Weapon"]),ench=[(id=17,lvl=#rand(1,3)),(id=18,lvl=#rand(1,3)),(id=19,lvl=#rand(1,2)),(id=20,lvl=#rand(1,2)),(id=21,lvl=#rand(1,5))],AttributeModifiers=[(AttributeName=generic.attackDamage,Name=attack,Amount=#rand(12,16),Operation=0,UUIDLeast=11,UUIDMost=3),(AttributeName=generic.movementSpeed,Name=speed,Amount=0.2f,Operation=1,UUIDLeast=11,UUIDMost=1),(AttributeName=potioncore.reach,Name=reach,Amount=2,Operation=0,UUIDLeast=11,UUIDMost=2)])),(id=none),(id=none),(id=none),(id=stick)],DropChances=[0.3f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)],Attributes=[(Name=generic.maxHealth,Base=200f)])@luck=-1

/ haunted astral axe
type=entity,ID=Skeleton,NBTTag=(Silent=true,CustomName="Haunted Heavenly Axe",Equipment=[(id=lootplusplus:astral.astral_axe,Count=1,tag=(Unbreakable=true,display=(Name="$rHeavenly Axe",Lore=["","$9Found as a Haunted Weapon"]),ench=[(id=32,lvl=20),(id=17,lvl=#rand(1,3)),(id=18,lvl=#rand(1,3)),(id=19,lvl=#rand(1,2)),(id=20,lvl=#rand(1,2)),(id=21,lvl=#rand(1,5))],AttributeModifiers=[(AttributeName=generic.attackDamage,Name=attack,Amount=#rand(11,15),Operation=0,UUIDLeast=11,UUIDMost=3),(AttributeName=potioncore.attackSpeed,Name=speed,Amount=0.2f,Operation=1,UUIDLeast=11,UUIDMost=1),(AttributeName=potioncore.reach,Name=reach,Amount=2,Operation=0,UUIDLeast=11,UUIDMost=2)])),(id=none),(id=none),(id=none),(id=stick)],DropChances=[0.3f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)],Attributes=[(Name=generic.maxHealth,Base=200f)])@luck=-1

/ astral mages

/ normal
type=entity,ID=Skeleton,amount=#rand(3,6),posOffset=#circleOffset(0,3),NBTTag=(CustomName="$e$lAstral Mage",DropChances=[#randList(0,2)f,#randList(0,0,0,0,2)f,#randList(0,0,0,0,2)f,#randList(0,0,0,0,2)f,#randList(0,0,0,0,2)f],Equipment=[(id=lootplusplus:astral.throwing_star,Count=#rand(3,8)),(id=lootplusplus:astral.mage_boots,Count=1,tag=(display=(Lore=["$7Fire Immunity I"]),ench=#luckyBootsEnchantments,AttributeModifiers=[(AttributeName=potioncore.projectileDamage,Name=projectile,Amount=0.2f,Operation=1,UUIDLeast=17,UUIDMost=1)])),(id=lootplusplus:astral.mage_leggings,Count=1,tag=(display=(Lore=["$7Slowness Immunity I","$7Frost Sprint I"]),ench=#luckyLeggingsEnchantments,AttributeModifiers=[(AttributeName=potioncore.projectileDamage,Name=projectile,Amount=0.2f,Operation=1,UUIDLeast=17,UUIDMost=1)])),(id=lootplusplus:astral.mage_chestplate,Count=1,tag=(display=(Lore=["$7Poison Immunity I","$7Nausea Immunity I"]),ench=#luckyChestplateEnchantments,AttributeModifiers=[(AttributeName=potioncore.projectileDamage,Name=projectile,Amount=0.2f,Operation=1,UUIDLeast=17,UUIDMost=1)])),(id=lootplusplus:astral.mage_helmet,Count=1,tag=(display=(Lore=["$7Wither Immunity I","$7Blindness Immunity I"]),ench=#luckyHelmetEnchantments,AttributeModifiers=[(AttributeName=potioncore.projectileDamage,Name=projectile,Amount=0.2f,Operation=1,UUIDLeast=17,UUIDMost=1)]))])@luck=-2@chance=0.5
/ fire
type=entity,ID=Skeleton,amount=#rand(3,6),posOffset=#circleOffset(0,3),NBTTag=(CustomName="$e$lAstral Fire Mage",DropChances=[#randList(0,2)f,#randList(0,0,0,0,2)f,#randList(0,0,0,0,2)f,#randList(0,0,0,0,2)f,#randList(0,0,0,0,2)f],Equipment=[(id=lootplusplus:astral.throwing_star_fire,Count=#rand(3,8)),(id=lootplusplus:astral.mage_boots,Count=1,tag=(display=(Lore=["$7Fire Immunity I"]),ench=#luckyBootsEnchantments,AttributeModifiers=[(AttributeName=potioncore.projectileDamage,Name=projectile,Amount=0.2f,Operation=1,UUIDLeast=17,UUIDMost=1)])),(id=lootplusplus:astral.mage_leggings,Count=1,tag=(display=(Lore=["$7Slowness Immunity I","$7Frost Sprint I"]),ench=#luckyLeggingsEnchantments,AttributeModifiers=[(AttributeName=potioncore.projectileDamage,Name=projectile,Amount=0.2f,Operation=1,UUIDLeast=17,UUIDMost=1)])),(id=lootplusplus:astral.mage_chestplate,Count=1,tag=(display=(Lore=["$7Poison Immunity I","$7Nausea Immunity I"]),ench=#luckyChestplateEnchantments,AttributeModifiers=[(AttributeName=potioncore.projectileDamage,Name=projectile,Amount=0.2f,Operation=1,UUIDLeast=17,UUIDMost=1)])),(id=lootplusplus:astral.mage_helmet,Count=1,tag=(display=(Lore=["$7Wither Immunity I","$7Blindness Immunity I"]),ench=#luckyHelmetEnchantments,AttributeModifiers=[(AttributeName=potioncore.projectileDamage,Name=projectile,Amount=0.2f,Operation=1,UUIDLeast=17,UUIDMost=1)]))])@luck=-2@chance=0.5
/ ice
type=entity,ID=Skeleton,amount=#rand(3,6),posOffset=#circleOffset(0,3),NBTTag=(CustomName="$e$lAstral Ice Mage",DropChances=[#randList(0,2)f,#randList(0,0,0,0,2)f,#randList(0,0,0,0,2)f,#randList(0,0,0,0,2)f,#randList(0,0,0,0,2)f],Equipment=[(id=lootplusplus:astral.throwing_star_ice,Count=#rand(3,8)),(id=lootplusplus:astral.mage_boots,Count=1,tag=(display=(Lore=["$7Fire Immunity I"]),ench=#luckyBootsEnchantments,AttributeModifiers=[(AttributeName=potioncore.projectileDamage,Name=projectile,Amount=0.2f,Operation=1,UUIDLeast=17,UUIDMost=1)])),(id=lootplusplus:astral.mage_leggings,Count=1,tag=(display=(Lore=["$7Slowness Immunity I","$7Frost Sprint I"]),ench=#luckyLeggingsEnchantments,AttributeModifiers=[(AttributeName=potioncore.projectileDamage,Name=projectile,Amount=0.2f,Operation=1,UUIDLeast=17,UUIDMost=1)])),(id=lootplusplus:astral.mage_chestplate,Count=1,tag=(display=(Lore=["$7Poison Immunity I","$7Nausea Immunity I"]),ench=#luckyChestplateEnchantments,AttributeModifiers=[(AttributeName=potioncore.projectileDamage,Name=projectile,Amount=0.2f,Operation=1,UUIDLeast=17,UUIDMost=1)])),(id=lootplusplus:astral.mage_helmet,Count=1,tag=(display=(Lore=["$7Wither Immunity I","$7Blindness Immunity I"]),ench=#luckyHelmetEnchantments,AttributeModifiers=[(AttributeName=potioncore.projectileDamage,Name=projectile,Amount=0.2f,Operation=1,UUIDLeast=17,UUIDMost=1)]))])@luck=-2@chance=0.5
/ poison
type=entity,ID=Skeleton,amount=#rand(3,6),posOffset=#circleOffset(0,3),NBTTag=(CustomName="$e$lAstral Poison Mage",DropChances=[#randList(0,2)f,#randList(0,0,0,0,2)f,#randList(0,0,0,0,2)f,#randList(0,0,0,0,2)f,#randList(0,0,0,0,2)f],Equipment=[(id=lootplusplus:astral.throwing_star_poison,Count=#rand(3,8)),(id=lootplusplus:astral.mage_boots,Count=1,tag=(display=(Lore=["$7Fire Immunity I"]),ench=#luckyBootsEnchantments,AttributeModifiers=[(AttributeName=potioncore.projectileDamage,Name=projectile,Amount=0.2f,Operation=1,UUIDLeast=17,UUIDMost=1)])),(id=lootplusplus:astral.mage_leggings,Count=1,tag=(display=(Lore=["$7Slowness Immunity I","$7Frost Sprint I"]),ench=#luckyLeggingsEnchantments,AttributeModifiers=[(AttributeName=potioncore.projectileDamage,Name=projectile,Amount=0.2f,Operation=1,UUIDLeast=17,UUIDMost=1)])),(id=lootplusplus:astral.mage_chestplate,Count=1,tag=(display=(Lore=["$7Poison Immunity I","$7Nausea Immunity I"]),ench=#luckyChestplateEnchantments,AttributeModifiers=[(AttributeName=potioncore.projectileDamage,Name=projectile,Amount=0.2f,Operation=1,UUIDLeast=17,UUIDMost=1)])),(id=lootplusplus:astral.mage_helmet,Count=1,tag=(display=(Lore=["$7Wither Immunity I","$7Blindness Immunity I"]),ench=#luckyHelmetEnchantments,AttributeModifiers=[(AttributeName=potioncore.projectileDamage,Name=projectile,Amount=0.2f,Operation=1,UUIDLeast=17,UUIDMost=1)]))])@luck=-2@chance=0.5
/ dark
type=entity,ID=Skeleton,amount=#rand(3,6),posOffset=#circleOffset(0,3),NBTTag=(CustomName="$e$lAstral Dark Mage",DropChances=[#randList(0,2)f,#randList(0,0,0,0,2)f,#randList(0,0,0,0,2)f,#randList(0,0,0,0,2)f,#randList(0,0,0,0,2)f],Equipment=[(id=lootplusplus:astral.throwing_star_dark,Count=#rand(3,8)),(id=lootplusplus:astral.mage_boots,Count=1,tag=(display=(Lore=["$7Fire Immunity I"]),ench=#luckyBootsEnchantments,AttributeModifiers=[(AttributeName=potioncore.projectileDamage,Name=projectile,Amount=0.2f,Operation=1,UUIDLeast=17,UUIDMost=1)])),(id=lootplusplus:astral.mage_leggings,Count=1,tag=(display=(Lore=["$7Slowness Immunity I","$7Frost Sprint I"]),ench=#luckyLeggingsEnchantments,AttributeModifiers=[(AttributeName=potioncore.projectileDamage,Name=projectile,Amount=0.2f,Operation=1,UUIDLeast=17,UUIDMost=1)])),(id=lootplusplus:astral.mage_chestplate,Count=1,tag=(display=(Lore=["$7Poison Immunity I","$7Nausea Immunity I"]),ench=#luckyChestplateEnchantments,AttributeModifiers=[(AttributeName=potioncore.projectileDamage,Name=projectile,Amount=0.2f,Operation=1,UUIDLeast=17,UUIDMost=1)])),(id=lootplusplus:astral.mage_helmet,Count=1,tag=(display=(Lore=["$7Wither Immunity I","$7Blindness Immunity I"]),ench=#luckyHelmetEnchantments,AttributeModifiers=[(AttributeName=potioncore.projectileDamage,Name=projectile,Amount=0.2f,Operation=1,UUIDLeast=17,UUIDMost=1)]))])@luck=-2@chance=0.5
/ explode
type=entity,ID=Skeleton,amount=#rand(2,4),posOffset=#circleOffset(0,3),NBTTag=(CustomName="$e$lAstral Explosive Mage",DropChances=[#randList(0,2)f,#randList(0,0,0,0,2)f,#randList(0,0,0,0,2)f,#randList(0,0,0,0,2)f,#randList(0,0,0,0,2)f],Equipment=[(id=lootplusplus:astral.throwing_star_explode,Count=#rand(3,8)),(id=lootplusplus:astral.mage_boots,Count=1,tag=(display=(Lore=["$7Fire Immunity I"]),ench=#luckyBootsEnchantments,AttributeModifiers=[(AttributeName=potioncore.projectileDamage,Name=projectile,Amount=0.2f,Operation=1,UUIDLeast=17,UUIDMost=1)])),(id=lootplusplus:astral.mage_leggings,Count=1,tag=(display=(Lore=["$7Slowness Immunity I","$7Frost Sprint I"]),ench=#luckyLeggingsEnchantments,AttributeModifiers=[(AttributeName=potioncore.projectileDamage,Name=projectile,Amount=0.2f,Operation=1,UUIDLeast=17,UUIDMost=1)])),(id=lootplusplus:astral.mage_chestplate,Count=1,tag=(display=(Lore=["$7Poison Immunity I","$7Nausea Immunity I"]),ench=#luckyChestplateEnchantments,AttributeModifiers=[(AttributeName=potioncore.projectileDamage,Name=projectile,Amount=0.2f,Operation=1,UUIDLeast=17,UUIDMost=1)])),(id=lootplusplus:astral.mage_helmet,Count=1,tag=(display=(Lore=["$7Wither Immunity I","$7Blindness Immunity I"]),ench=#luckyHelmetEnchantments,AttributeModifiers=[(AttributeName=potioncore.projectileDamage,Name=projectile,Amount=0.2f,Operation=1,UUIDLeast=17,UUIDMost=1)]))])@luck=-2@chance=0.5
/ all
group(\
type=entity,ID=Skeleton,posOffset=#circleOffset(0,3),NBTTag=(CustomName="$e$lAstral Mage",DropChances=[#randList(0,2)f,#randList(0,0,0,0,2)f,#randList(0,0,0,0,2)f,#randList(0,0,0,0,2)f,#randList(0,0,0,0,2)f],Equipment=[(id=lootplusplus:astral.throwing_star,Count=#rand(3,8)),(id=lootplusplus:astral.mage_boots,Count=1,tag=(display=(Lore=["$7Fire Immunity I"]),ench=#luckyBootsEnchantments,AttributeModifiers=[(AttributeName=potioncore.projectileDamage,Name=projectile,Amount=0.2f,Operation=1,UUIDLeast=17,UUIDMost=1)])),(id=lootplusplus:astral.mage_leggings,Count=1,tag=(display=(Lore=["$7Slowness Immunity I","$7Frost Sprint I"]),ench=#luckyLeggingsEnchantments,AttributeModifiers=[(AttributeName=potioncore.projectileDamage,Name=projectile,Amount=0.2f,Operation=1,UUIDLeast=17,UUIDMost=1)])),(id=lootplusplus:astral.mage_chestplate,Count=1,tag=(display=(Lore=["$7Poison Immunity I","$7Nausea Immunity I"]),ench=#luckyChestplateEnchantments,AttributeModifiers=[(AttributeName=potioncore.projectileDamage,Name=projectile,Amount=0.2f,Operation=1,UUIDLeast=17,UUIDMost=1)])),(id=lootplusplus:astral.mage_helmet,Count=1,tag=(display=(Lore=["$7Wither Immunity I","$7Blindness Immunity I"]),ench=#luckyHelmetEnchantments,AttributeModifiers=[(AttributeName=potioncore.projectileDamage,Name=projectile,Amount=0.2f,Operation=1,UUIDLeast=17,UUIDMost=1)]))]);\
type=entity,ID=Skeleton,posOffset=#circleOffset(0,3),NBTTag=(CustomName="$e$lAstral Fire Mage",DropChances=[#randList(0,2)f,#randList(0,0,0,0,2)f,#randList(0,0,0,0,2)f,#randList(0,0,0,0,2)f,#randList(0,0,0,0,2)f],Equipment=[(id=lootplusplus:astral.throwing_star_fire,Count=#rand(3,8)),(id=lootplusplus:astral.mage_boots,Count=1,tag=(display=(Lore=["$7Fire Immunity I"]),ench=#luckyBootsEnchantments,AttributeModifiers=[(AttributeName=potioncore.projectileDamage,Name=projectile,Amount=0.2f,Operation=1,UUIDLeast=17,UUIDMost=1)])),(id=lootplusplus:astral.mage_leggings,Count=1,tag=(display=(Lore=["$7Slowness Immunity I","$7Frost Sprint I"]),ench=#luckyLeggingsEnchantments,AttributeModifiers=[(AttributeName=potioncore.projectileDamage,Name=projectile,Amount=0.2f,Operation=1,UUIDLeast=17,UUIDMost=1)])),(id=lootplusplus:astral.mage_chestplate,Count=1,tag=(display=(Lore=["$7Poison Immunity I","$7Nausea Immunity I"]),ench=#luckyChestplateEnchantments,AttributeModifiers=[(AttributeName=potioncore.projectileDamage,Name=projectile,Amount=0.2f,Operation=1,UUIDLeast=17,UUIDMost=1)])),(id=lootplusplus:astral.mage_helmet,Count=1,tag=(display=(Lore=["$7Wither Immunity I","$7Blindness Immunity I"]),ench=#luckyHelmetEnchantments,AttributeModifiers=[(AttributeName=potioncore.projectileDamage,Name=projectile,Amount=0.2f,Operation=1,UUIDLeast=17,UUIDMost=1)]))]);\
type=entity,ID=Skeleton,posOffset=#circleOffset(0,3),NBTTag=(CustomName="$e$lAstral Ice Mage",DropChances=[#randList(0,2)f,#randList(0,0,0,0,2)f,#randList(0,0,0,0,2)f,#randList(0,0,0,0,2)f,#randList(0,0,0,0,2)f],Equipment=[(id=lootplusplus:astral.throwing_star_ice,Count=#rand(3,8)),(id=lootplusplus:astral.mage_boots,Count=1,tag=(display=(Lore=["$7Fire Immunity I"]),ench=#luckyBootsEnchantments,AttributeModifiers=[(AttributeName=potioncore.projectileDamage,Name=projectile,Amount=0.2f,Operation=1,UUIDLeast=17,UUIDMost=1)])),(id=lootplusplus:astral.mage_leggings,Count=1,tag=(display=(Lore=["$7Slowness Immunity I","$7Frost Sprint I"]),ench=#luckyLeggingsEnchantments,AttributeModifiers=[(AttributeName=potioncore.projectileDamage,Name=projectile,Amount=0.2f,Operation=1,UUIDLeast=17,UUIDMost=1)])),(id=lootplusplus:astral.mage_chestplate,Count=1,tag=(display=(Lore=["$7Poison Immunity I","$7Nausea Immunity I"]),ench=#luckyChestplateEnchantments,AttributeModifiers=[(AttributeName=potioncore.projectileDamage,Name=projectile,Amount=0.2f,Operation=1,UUIDLeast=17,UUIDMost=1)])),(id=lootplusplus:astral.mage_helmet,Count=1,tag=(display=(Lore=["$7Wither Immunity I","$7Blindness Immunity I"]),ench=#luckyHelmetEnchantments,AttributeModifiers=[(AttributeName=potioncore.projectileDamage,Name=projectile,Amount=0.2f,Operation=1,UUIDLeast=17,UUIDMost=1)]))]);\
type=entity,ID=Skeleton,posOffset=#circleOffset(0,3),NBTTag=(CustomName="$e$lAstral Poison Mage",DropChances=[#randList(0,2)f,#randList(0,0,0,0,2)f,#randList(0,0,0,0,2)f,#randList(0,0,0,0,2)f,#randList(0,0,0,0,2)f],Equipment=[(id=lootplusplus:astral.throwing_star_poison,Count=#rand(3,8)),(id=lootplusplus:astral.mage_boots,Count=1,tag=(display=(Lore=["$7Fire Immunity I"]),ench=#luckyBootsEnchantments,AttributeModifiers=[(AttributeName=potioncore.projectileDamage,Name=projectile,Amount=0.2f,Operation=1,UUIDLeast=17,UUIDMost=1)])),(id=lootplusplus:astral.mage_leggings,Count=1,tag=(display=(Lore=["$7Slowness Immunity I","$7Frost Sprint I"]),ench=#luckyLeggingsEnchantments,AttributeModifiers=[(AttributeName=potioncore.projectileDamage,Name=projectile,Amount=0.2f,Operation=1,UUIDLeast=17,UUIDMost=1)])),(id=lootplusplus:astral.mage_chestplate,Count=1,tag=(display=(Lore=["$7Poison Immunity I","$7Nausea Immunity I"]),ench=#luckyChestplateEnchantments,AttributeModifiers=[(AttributeName=potioncore.projectileDamage,Name=projectile,Amount=0.2f,Operation=1,UUIDLeast=17,UUIDMost=1)])),(id=lootplusplus:astral.mage_helmet,Count=1,tag=(display=(Lore=["$7Wither Immunity I","$7Blindness Immunity I"]),ench=#luckyHelmetEnchantments,AttributeModifiers=[(AttributeName=potioncore.projectileDamage,Name=projectile,Amount=0.2f,Operation=1,UUIDLeast=17,UUIDMost=1)]))]);\
type=entity,ID=Skeleton,posOffset=#circleOffset(0,3),NBTTag=(CustomName="$e$lAstral Dark Mage",DropChances=[#randList(0,2)f,#randList(0,0,0,0,2)f,#randList(0,0,0,0,2)f,#randList(0,0,0,0,2)f,#randList(0,0,0,0,2)f],Equipment=[(id=lootplusplus:astral.throwing_star_dark,Count=#rand(3,8)),(id=lootplusplus:astral.mage_boots,Count=1,tag=(display=(Lore=["$7Fire Immunity I"]),ench=#luckyBootsEnchantments,AttributeModifiers=[(AttributeName=potioncore.projectileDamage,Name=projectile,Amount=0.2f,Operation=1,UUIDLeast=17,UUIDMost=1)])),(id=lootplusplus:astral.mage_leggings,Count=1,tag=(display=(Lore=["$7Slowness Immunity I","$7Frost Sprint I"]),ench=#luckyLeggingsEnchantments,AttributeModifiers=[(AttributeName=potioncore.projectileDamage,Name=projectile,Amount=0.2f,Operation=1,UUIDLeast=17,UUIDMost=1)])),(id=lootplusplus:astral.mage_chestplate,Count=1,tag=(display=(Lore=["$7Poison Immunity I","$7Nausea Immunity I"]),ench=#luckyChestplateEnchantments,AttributeModifiers=[(AttributeName=potioncore.projectileDamage,Name=projectile,Amount=0.2f,Operation=1,UUIDLeast=17,UUIDMost=1)])),(id=lootplusplus:astral.mage_helmet,Count=1,tag=(display=(Lore=["$7Wither Immunity I","$7Blindness Immunity I"]),ench=#luckyHelmetEnchantments,AttributeModifiers=[(AttributeName=potioncore.projectileDamage,Name=projectile,Amount=0.2f,Operation=1,UUIDLeast=17,UUIDMost=1)]))]);\
type=entity,ID=Skeleton,posOffset=#circleOffset(0,3),NBTTag=(CustomName="$e$lAstral Explosive Mage",DropChances=[#randList(0,2)f,#randList(0,0,0,0,2)f,#randList(0,0,0,0,2)f,#randList(0,0,0,0,2)f,#randList(0,0,0,0,2)f],Equipment=[(id=lootplusplus:astral.throwing_star_explode,Count=#rand(3,8)),(id=lootplusplus:astral.mage_boots,Count=1,tag=(display=(Lore=["$7Fire Immunity I"]),ench=#luckyBootsEnchantments,AttributeModifiers=[(AttributeName=potioncore.projectileDamage,Name=projectile,Amount=0.2f,Operation=1,UUIDLeast=17,UUIDMost=1)])),(id=lootplusplus:astral.mage_leggings,Count=1,tag=(display=(Lore=["$7Slowness Immunity I","$7Frost Sprint I"]),ench=#luckyLeggingsEnchantments,AttributeModifiers=[(AttributeName=potioncore.projectileDamage,Name=projectile,Amount=0.2f,Operation=1,UUIDLeast=17,UUIDMost=1)])),(id=lootplusplus:astral.mage_chestplate,Count=1,tag=(display=(Lore=["$7Poison Immunity I","$7Nausea Immunity I"]),ench=#luckyChestplateEnchantments,AttributeModifiers=[(AttributeName=potioncore.projectileDamage,Name=projectile,Amount=0.2f,Operation=1,UUIDLeast=17,UUIDMost=1)])),(id=lootplusplus:astral.mage_helmet,Count=1,tag=(display=(Lore=["$7Wither Immunity I","$7Blindness Immunity I"]),ench=#luckyHelmetEnchantments,AttributeModifiers=[(AttributeName=potioncore.projectileDamage,Name=projectile,Amount=0.2f,Operation=1,UUIDLeast=17,UUIDMost=1)]))]))@luck=-2@chance=0.5

/~~ villagers ~~

type=entity,ID=lootplusplus.ThrownItem,NBTTag=(ItemThrown=lootplusplus:astral.label,CustomName="$e$lLucky Villager",CustomNameVisible=true,Riding=(id=Villager,Offers=(Recipes=[(buy=(id=gold_ingot,Count=#rand(5,10)),sell=(id=lucky:lucky_sword,Count=1,tag=(Luck=50,ench=#luckySwordEnchantments,display=(Name="$e$lLucky Sword"))),maxUses=1),(buy=(id=gold_ingot,Count=#rand(5,10)),sell=(id=lucky:lucky_bow,Count=1,tag=(Luck=50,ench=#luckyBowEnchantments,display=(Name="$e$lLucky Bow"))),maxUses=1),(buy=(id=diamond,Count=#rand(10,15)),sell=(id=potion,Damage=8195,Count=1,tag=(CustomPotionEffects=#luckyPotionEffects,display=(Name="$e$lLucky Potion"))),maxUses=1),(buy=(id=diamond,Count=#rand(7,12)),sell=(id=potion,Damage=16428,Count=1,tag=(CustomPotionEffects=#unluckyPotionEffects,display=(Name="$e$lUnlucky Potion"))),maxUses=1)]),CustomName="$e$lLucky Villager",CustomNameVisible=true,Career=1,CareerLevel=100))@luck=1
type=entity,ID=lootplusplus.ThrownItem,NBTTag=(ItemThrown=lootplusplus:astral.label,CustomName="$e$lLucky Villager",CustomNameVisible=true,Riding=(id=Villager,Offers=(Recipes=[(buy=(id=gold_ingot,Count=#rand(5,10)),sell=(id=lootplusplus:astral.lucky_helmet,Count=1,tag=(ench=#luckyHelmetEnchantments,display=(Name="$e$lLucky Helmet"))),maxUses=1),(buy=(id=gold_ingot,Count=#rand(5,10)),sell=(id=lootplusplus:astral.lucky_chestplate,Count=1,tag=(ench=#luckyChestplateEnchantments,display=(Name="$e$lLucky Chestplate"))),maxUses=1),(buy=(id=gold_ingot,Count=#rand(5,10)),sell=(id=lootplusplus:astral.lucky_leggings,Count=1,tag=(ench=#luckyLeggingsEnchantments,display=(Name="$e$lLucky Leggings"))),maxUses=1),(buy=(id=gold_ingot,Count=#rand(5,10)),sell=(id=lootplusplus:astral.lucky_boots,Count=1,tag=(ench=#luckyBootsEnchantments,display=(Name="$e$lLucky Boots"))),maxUses=1)]),CustomName="$e$lLucky Villager",CustomNameVisible=true,Career=1,CareerLevel=100))@luck=1

/lucky astral villager
group:1:( \
type=entity,ID=lootplusplus.ThrownItem,NBTTag=(ItemThrown=lootplusplus:astral.label,CustomName="$e$lLucky Astral Villager",CustomNameVisible=true,Riding=(id=Villager,Offers=(Recipes=[(buy=(id=diamond,Count=#rand(20,25)),sell=(id="lucky:astral_lucky_sword",Count=1,tag=(Luck=#rand(80,100),display=(Name="$e$lSword of the Heavens",Lore=["","$9Purchased from a Villager"]),ench=[(id=17,lvl=#rand(1,3)),(id=18,lvl=#rand(1,3)),(id=19,lvl=#rand(1,2)),(id=20,lvl=#rand(1,2)),(id=21,lvl=#rand(1,5))],AttributeModifiers=[(AttributeName=generic.attackDamage,Name=attack,Amount=#rand(12,16),Operation=0,UUIDLeast=11,UUIDMost=3),(AttributeName=generic.movementSpeed,Name=speed,Amount=0.2f,Operation=1,UUIDLeast=11,UUIDMost=1),(AttributeName=potioncore.reach,Name=reach,Amount=2,Operation=0,UUIDLeast=11,UUIDMost=2)],Unbreakable=true)),maxUses=1),(buy=(id=diamond,Count=#rand(25,30)),sell=(id="lucky:astral_lucky_bow",Count=1,tag=(Luck=100,display=(Name="$e$lStar Shooter",Lore=["","$9Purchased from a Villager",""]),ench=[(id=48,lvl=#rand(1,5)),(id=49,lvl=#rand(1,5)),(id=50,lvl=1),(id=51,lvl=1),(id=21,lvl=#rand(1,5))],Unbreakable=true)),maxUses=1),(buy=(id=diamond,Count=#rand(25,30)),sell=(Count=1,id="lootplusplus:astral.astral_leggings",tag=(Unbreakable=true,ench=#luckyLeggingsEnchantments,display=(Lore=["$7Attack Speed I","","$9Purchased from a Villager"],Name="$e$lNinja's Astral Lucky Leggings"),AttributeModifiers=[(AttributeName=generic.attackDamage,Name=attack,Amount=0.2,Operation=1,UUIDLeast=14,UUIDMost=3),(AttributeName=generic.movementSpeed,Name=speed,Amount=0.1f,Operation=1,UUIDLeast=14,UUIDMost=1),(AttributeName=potioncore.attackSpeed,Name=knockback,Amount=0.1,Operation=1,UUIDLeast=14,UUIDMost=2)])),maxUses=1),(buy=(id=diamond,Count=#rand(10,15)),sell=(id=potion,Damage=8195,Count=1,tag=(CustomPotionEffects=#luckyPotionEffects,display=(Name="$e$lLucky Potion"))),maxUses=1),(buy=(id=diamond,Count=#rand(8,12)),sell=(id=potion,Damage=16428,Count=1,tag=(CustomPotionEffects=#unluckyPotionEffects,display=(Name="$e$lUnlucky Potion"))),maxUses=1),(buy=(id=diamond,Count=#rand(10,15)),sell=(id=potioncore:custom_potion,Damage=0,Count=1,tag=(CustomPotionEffects=[(Id=#randList(jump_boost,potioncore:stepup),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(regeneration,potioncore:revival),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(saturation,potioncore:slowfall),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(strength,potioncore:reach),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(potioncore:archery,speed),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(haste,resistance),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(potioncore:repair,potioncore:health_boost),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(potioncore:recoil,absorption),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(water_breathing,fire_resistance,potioncore:solidcore),Duration=#rand(5000,12000)),(Id=#randList(potioncore:antidote,potioncore:purity),Duration=#rand(5000,12000)),(Id=#randList(invisibility,potioncore:climb),Duration=#rand(5000,12000)),(Id=#randList(instant_health,potioncore:love,potioncore:cure),Duration=1)],display=(Name="$b$lEPIC $e$lLucky Potion"))),maxUses=1),(buy=(id=diamond,Count=#rand(8,12)),sell=(id=potioncore:custom_potion,Damage=1,Count=1,tag=(CustomPotionEffects=[(Id=#randList(slowness,weakness),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(wither,potioncore:levitate),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(potioncore:klutz,potioncore:weight),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(blindness,poison,hunger),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(potioncore:rust,mining_fatigue),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(potioncore:perplexity,potioncore:drown),Duration=#rand(5000,12000)),(Id=#randList(potioncore:spin,nausea),Duration=#rand(5000,12000)),(Id=#randList(potioncore:launch,potioncore:teleport),Amplifier=#rand(0,3),Duration=1),(Id=#randList(potioncore:fire,instant_damage),Amplifier=#rand(0,3),Duration=1),(Id=#randList(potioncore:disorganization,potioncore:dispel),Duration=1),(Id=#randList(potioncore:explode,potioncore:lightning),Duration=1)],display=(Name="$5$lEPIC $e$lUnlucky Potion"))),maxUses=1)]),Profession=2,CustomName="$e$lLucky Astral Villager",Career=1,CareerLevel=100)); \
type=entity,ID=lootplusplus.ThrownItem,NBTTag=(ItemThrown=lootplusplus:astral.label,CustomName="$e$lLucky Astral Villager",CustomNameVisible=true,Riding=(id=Villager,Offers=(Recipes=[(buy=(id=diamond,Count=#rand(20,25)),sell=(id="lucky:astral_lucky_sword",Count=1,tag=(Luck=#rand(80,100),display=(Name="$e$lSword of the Heavens",Lore=["","$9Purchased from a Villager"]),ench=[(id=17,lvl=#rand(1,3)),(id=18,lvl=#rand(1,3)),(id=19,lvl=#rand(1,2)),(id=20,lvl=#rand(1,2)),(id=21,lvl=#rand(1,5))],AttributeModifiers=[(AttributeName=generic.attackDamage,Name=attack,Amount=#rand(12,16),Operation=0,UUIDLeast=11,UUIDMost=3),(AttributeName=generic.movementSpeed,Name=speed,Amount=0.2f,Operation=1,UUIDLeast=11,UUIDMost=1),(AttributeName=potioncore.reach,Name=reach,Amount=2,Operation=0,UUIDLeast=11,UUIDMost=2)],Unbreakable=true)),maxUses=1),(buy=(id=diamond,Count=#rand(25,30)),sell=(id="lucky:astral_lucky_bow",Count=1,tag=(Luck=100,display=(Name="$e$lStar Shooter",Lore=["","$9Purchased from a Villager",""]),ench=[(id=48,lvl=#rand(1,5)),(id=49,lvl=#rand(1,5)),(id=50,lvl=1),(id=51,lvl=1),(id=21,lvl=#rand(1,5))],Unbreakable=true)),maxUses=1),(buy=(id=diamond,Count=#rand(25,30)),sell=(Count=1,id="lootplusplus:astral.astral_boots",tag=(Unbreakable=true,ench=#luckyBootsEnchantments,display=(Lore=["$7Stepup I","","$9Purchased from a Villager"],Name="$e$lTall Astral Lucky Boots"),AttributeModifiers=[(AttributeName=generic.attackDamage,Name=attack,Amount=0.2,Operation=1,UUIDLeast=15,UUIDMost=3),(AttributeName=generic.movementSpeed,Name=speed,Amount=0.1f,Operation=1,UUIDLeast=15,UUIDMost=1),(AttributeName=potioncore.stepHeight,Name=step,Amount=0.5f,Operation=0,UUIDLeast=14,UUIDMost=2)])),maxUses=1),(buy=(id=diamond,Count=#rand(10,15)),sell=(id=potion,Damage=8195,Count=1,tag=(CustomPotionEffects=#luckyPotionEffects,display=(Name="$e$lLucky Potion"))),maxUses=1),(buy=(id=diamond,Count=#rand(8,12)),sell=(id=potion,Damage=16428,Count=1,tag=(CustomPotionEffects=#unluckyPotionEffects,display=(Name="$e$lUnlucky Potion"))),maxUses=1),(buy=(id=diamond,Count=#rand(10,15)),sell=(id=potioncore:custom_potion,Damage=0,Count=1,tag=(CustomPotionEffects=[(Id=#randList(jump_boost,potioncore:stepup),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(regeneration,potioncore:revival),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(saturation,potioncore:slowfall),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(strength,potioncore:reach),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(potioncore:archery,speed),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(haste,resistance),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(potioncore:repair,potioncore:health_boost),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(potioncore:recoil,absorption),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(water_breathing,fire_resistance,potioncore:solidcore),Duration=#rand(5000,12000)),(Id=#randList(potioncore:antidote,potioncore:purity),Duration=#rand(5000,12000)),(Id=#randList(invisibility,potioncore:climb),Duration=#rand(5000,12000)),(Id=#randList(instant_health,potioncore:love,potioncore:cure),Duration=1)],display=(Name="$b$lEPIC $e$lLucky Potion"))),maxUses=1),(buy=(id=diamond,Count=#rand(8,12)),sell=(id=potioncore:custom_potion,Damage=1,Count=1,tag=(CustomPotionEffects=[(Id=#randList(slowness,weakness),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(wither,potioncore:levitate),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(potioncore:klutz,potioncore:weight),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(blindness,poison,hunger),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(potioncore:rust,mining_fatigue),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(potioncore:perplexity,potioncore:drown),Duration=#rand(5000,12000)),(Id=#randList(potioncore:spin,nausea),Duration=#rand(5000,12000)),(Id=#randList(potioncore:launch,potioncore:teleport),Amplifier=#rand(0,3),Duration=1),(Id=#randList(potioncore:fire,instant_damage),Amplifier=#rand(0,3),Duration=1),(Id=#randList(potioncore:disorganization,potioncore:dispel),Duration=1),(Id=#randList(potioncore:explode,potioncore:lightning),Duration=1)],display=(Name="$5$lEPIC $e$lUnlucky Potion"))),maxUses=1)]),Profession=2,CustomName="$e$lLucky Astral Villager",Career=1,CareerLevel=100)); \
type=entity,ID=lootplusplus.ThrownItem,NBTTag=(ItemThrown=lootplusplus:astral.label,CustomName="$e$lLucky Astral Villager",CustomNameVisible=true,Riding=(id=Villager,Offers=(Recipes=[(buy=(id=diamond,Count=#rand(20,25)),sell=(id="lucky:astral_lucky_sword",Count=1,tag=(Luck=#rand(80,100),display=(Name="$e$lSword of the Heavens",Lore=["","$9Purchased from a Villager"]),ench=[(id=17,lvl=#rand(1,3)),(id=18,lvl=#rand(1,3)),(id=19,lvl=#rand(1,2)),(id=20,lvl=#rand(1,2)),(id=21,lvl=#rand(1,5))],AttributeModifiers=[(AttributeName=generic.attackDamage,Name=attack,Amount=#rand(12,16),Operation=0,UUIDLeast=11,UUIDMost=3),(AttributeName=generic.movementSpeed,Name=speed,Amount=0.2f,Operation=1,UUIDLeast=11,UUIDMost=1),(AttributeName=potioncore.reach,Name=reach,Amount=2,Operation=0,UUIDLeast=11,UUIDMost=2)],Unbreakable=true)),maxUses=1),(buy=(id=diamond,Count=#rand(25,30)),sell=(id="lucky:astral_lucky_bow",Count=1,tag=(Luck=100,display=(Name="$e$lStar Shooter",Lore=["","$9Purchased from a Villager",""]),ench=[(id=48,lvl=#rand(1,5)),(id=49,lvl=#rand(1,5)),(id=50,lvl=1),(id=51,lvl=1),(id=21,lvl=#rand(1,5))],Unbreakable=true)),maxUses=1),(buy=(id=diamond,Count=#rand(25,30)),sell=(Count=1,id="lootplusplus:astral.astral_helmet",tag=(Unbreakable=true,ench=#luckyHelmetEnchantments,display=(Lore=["$7Archery I","","$9Purchased from a Villager"],Name="$e$lAccurate Astral Lucky Helmet"),AttributeModifiers=[(AttributeName=generic.attackDamage,Name=attack,Amount=0.2,Operation=1,UUIDLeast=12,UUIDMost=3),(AttributeName=generic.movementSpeed,Name=speed,Amount=0.1f,Operation=1,UUIDLeast=12,UUIDMost=1),(AttributeName=potioncore.projectileDamage,Name=projectile,Amount=0.75f,Operation=1,UUIDLeast=12,UUIDMost=2)])),maxUses=1),(buy=(id=diamond,Count=#rand(10,15)),sell=(id=potion,Damage=8195,Count=1,tag=(CustomPotionEffects=#luckyPotionEffects,display=(Name="$e$lLucky Potion"))),maxUses=1),(buy=(id=diamond,Count=#rand(8,12)),sell=(id=potion,Damage=16428,Count=1,tag=(CustomPotionEffects=#unluckyPotionEffects,display=(Name="$e$lUnlucky Potion"))),maxUses=1),(buy=(id=diamond,Count=#rand(10,15)),sell=(id=potioncore:custom_potion,Damage=0,Count=1,tag=(CustomPotionEffects=[(Id=#randList(jump_boost,potioncore:stepup),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(regeneration,potioncore:revival),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(saturation,potioncore:slowfall),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(strength,potioncore:reach),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(potioncore:archery,speed),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(haste,resistance),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(potioncore:repair,potioncore:health_boost),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(potioncore:recoil,absorption),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(water_breathing,fire_resistance,potioncore:solidcore),Duration=#rand(5000,12000)),(Id=#randList(potioncore:antidote,potioncore:purity),Duration=#rand(5000,12000)),(Id=#randList(invisibility,potioncore:climb),Duration=#rand(5000,12000)),(Id=#randList(instant_health,potioncore:love,potioncore:cure),Duration=1)],display=(Name="$b$lEPIC $e$lLucky Potion"))),maxUses=1),(buy=(id=diamond,Count=#rand(8,12)),sell=(id=potioncore:custom_potion,Damage=1,Count=1,tag=(CustomPotionEffects=[(Id=#randList(slowness,weakness),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(wither,potioncore:levitate),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(potioncore:klutz,potioncore:weight),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(blindness,poison,hunger),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(potioncore:rust,mining_fatigue),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(potioncore:perplexity,potioncore:drown),Duration=#rand(5000,12000)),(Id=#randList(potioncore:spin,nausea),Duration=#rand(5000,12000)),(Id=#randList(potioncore:launch,potioncore:teleport),Amplifier=#rand(0,3),Duration=1),(Id=#randList(potioncore:fire,instant_damage),Amplifier=#rand(0,3),Duration=1),(Id=#randList(potioncore:disorganization,potioncore:dispel),Duration=1),(Id=#randList(potioncore:explode,potioncore:lightning),Duration=1)],display=(Name="$5$lEPIC $e$lUnlucky Potion"))),maxUses=1)]),Profession=2,CustomName="$e$lLucky Astral Villager",Career=1,CareerLevel=100)); \
type=entity,ID=lootplusplus.ThrownItem,NBTTag=(ItemThrown=lootplusplus:astral.label,CustomName="$e$lLucky Astral Villager",CustomNameVisible=true,Riding=(id=Villager,Offers=(Recipes=[(buy=(id=diamond,Count=#rand(20,25)),sell=(id="lucky:astral_lucky_sword",Count=1,tag=(Luck=#rand(80,100),display=(Name="$e$lSword of the Heavens",Lore=["","$9Purchased from a Villager"]),ench=[(id=17,lvl=#rand(1,3)),(id=18,lvl=#rand(1,3)),(id=19,lvl=#rand(1,2)),(id=20,lvl=#rand(1,2)),(id=21,lvl=#rand(1,5))],AttributeModifiers=[(AttributeName=generic.attackDamage,Name=attack,Amount=#rand(12,16),Operation=0,UUIDLeast=11,UUIDMost=3),(AttributeName=generic.movementSpeed,Name=speed,Amount=0.2f,Operation=1,UUIDLeast=11,UUIDMost=1),(AttributeName=potioncore.reach,Name=reach,Amount=2,Operation=0,UUIDLeast=11,UUIDMost=2)],Unbreakable=true)),maxUses=1),(buy=(id=diamond,Count=#rand(25,30)),sell=(id="lucky:astral_lucky_bow",Count=1,tag=(Luck=100,display=(Name="$e$lStar Shooter",Lore=["","$9Purchased from a Villager",""]),ench=[(id=48,lvl=#rand(1,5)),(id=49,lvl=#rand(1,5)),(id=50,lvl=1),(id=51,lvl=1),(id=21,lvl=#rand(1,5))],Unbreakable=true)),maxUses=1),(buy=(id=diamond,Count=#rand(25,30)),sell=(Count=1,id="lootplusplus:astral.astral_chestplate",tag=(Unbreakable=true,ench=#luckyChestplateEnchantments,display=(Lore=["$7Health Boost II","","$9Purchased from a Villager"],Name="$e$lHearty Astral Lucky Chestplate"),AttributeModifiers=[(AttributeName=generic.attackDamage,Name=attack,Amount=0.2,Operation=1,UUIDLeast=13,UUIDMost=3),(AttributeName=generic.movementSpeed,Name=speed,Amount=0.1f,Operation=1,UUIDLeast=13,UUIDMost=1),(AttributeName=generic.maxHealth,Name=health,Amount=8,Operation=0,UUIDLeast=13,UUIDMost=2)])),maxUses=1),(buy=(id=diamond,Count=#rand(10,15)),sell=(id=potion,Damage=8195,Count=1,tag=(CustomPotionEffects=#luckyPotionEffects,display=(Name="$e$lLucky Potion"))),maxUses=1),(buy=(id=diamond,Count=#rand(8,12)),sell=(id=potion,Damage=16428,Count=1,tag=(CustomPotionEffects=#unluckyPotionEffects,display=(Name="$e$lUnlucky Potion"))),maxUses=1),(buy=(id=diamond,Count=#rand(10,15)),sell=(id=potioncore:custom_potion,Damage=0,Count=1,tag=(CustomPotionEffects=[(Id=#randList(jump_boost,potioncore:stepup),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(regeneration,potioncore:revival),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(saturation,potioncore:slowfall),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(strength,potioncore:reach),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(potioncore:archery,speed),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(haste,resistance),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(potioncore:repair,potioncore:health_boost),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(potioncore:recoil,absorption),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(water_breathing,fire_resistance,potioncore:solidcore),Duration=#rand(5000,12000)),(Id=#randList(potioncore:antidote,potioncore:purity),Duration=#rand(5000,12000)),(Id=#randList(invisibility,potioncore:climb),Duration=#rand(5000,12000)),(Id=#randList(instant_health,potioncore:love,potioncore:cure),Duration=1)],display=(Name="$b$lEPIC $e$lLucky Potion"))),maxUses=1),(buy=(id=diamond,Count=#rand(8,12)),sell=(id=potioncore:custom_potion,Damage=1,Count=1,tag=(CustomPotionEffects=[(Id=#randList(slowness,weakness),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(wither,potioncore:levitate),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(potioncore:klutz,potioncore:weight),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(blindness,poison,hunger),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(potioncore:rust,mining_fatigue),Amplifier=#rand(0,3),Duration=#rand(5000,12000)),(Id=#randList(potioncore:perplexity,potioncore:drown),Duration=#rand(5000,12000)),(Id=#randList(potioncore:spin,nausea),Duration=#rand(5000,12000)),(Id=#randList(potioncore:launch,potioncore:teleport),Amplifier=#rand(0,3),Duration=1),(Id=#randList(potioncore:fire,instant_damage),Amplifier=#rand(0,3),Duration=1),(Id=#randList(potioncore:disorganization,potioncore:dispel),Duration=1),(Id=#randList(potioncore:explode,potioncore:lightning),Duration=1)],display=(Name="$5$lEPIC $e$lUnlucky Potion"))),maxUses=1)]),Profession=2,CustomName="$e$lLucky Astral Villager",Career=1,CareerLevel=100)))@luck=2

/alchemist villager
type=entity,ID=Villager,NBTTag=(Offers=(Recipes=[(buy=(id=diamond,Count=#rand(1,3)),sell=(id=potioncore:custom_potion,Damage=1,Count=1,tag=(CustomPotionEffects=[(Id=potioncore:chance,Duration=1,Amplifier=4)])),maxUses=1000),(buy=(id=diamond,Count=#rand(1,3)),sell=(id=potioncore:custom_potion,Damage=0,Count=1,tag=(CustomPotionEffects=[(Id=potioncore:bless,Duration=1,Amplifier=4)])),maxUses=1000),(buy=(id=diamond,Count=#rand(1,3)),sell=(id=potioncore:custom_potion,Damage=1,Count=1,tag=(CustomPotionEffects=[(Id=potioncore:curse,Duration=1,Amplifier=4)])),maxUses=1000)]),Profession=1,CustomName="$e$lAlchemist Villager",CustomNameVisible=true,Career=1,CareerLevel=100)@luck=1

/astral merchants
type=entity,ID=Villager,NBTTag=(Offers=(Recipes=[\
(buy=(id=lootplusplus:astral.parachute,Count=1),sell=(id=lucky:lucky_block_astral,Count=1),maxUses=1000),\
(buy=(id=lootplusplus:astral.parachute,Count=1),sell=(id=lucky:astral_lucky_potion,Count=#rand(1,3)),maxUses=1000),\
(buy=(id=dragon_egg,Count=1),sell=(id=lucky:lucky_block_astral,Count=1,tag=(Luck=100,display=(Name="$rAstral Very Lucky Block"))),maxUses=1000),\
(buy=(id=dragon_egg,Count=1),sell=(id=lucky:astral_lucky_potion,Count=#rand(1,3),tag=(Luck=100,display=(Name="$rAstral Very Lucky Potion"))),maxUses=1000),\
(buy=(id=lucky:lucky_sword,Count=1),sell=(id=lucky:lucky_block_astral,Count=1,tag=(Luck=50,display=(Name="$rAstral Lucky Block"))),maxUses=1000),\
(buy=(id=lucky:lucky_sword,Count=1),sell=(id=lucky:astral_lucky_potion,Count=#rand(1,3),tag=(Luck=50,display=(Name="$rAstral Lucky Potion"))),maxUses=1000),\
(buy=(id=lucky:lucky_bow,Count=1),sell=(id=lucky:lucky_block_astral,Count=1,tag=(Luck=50,display=(Name="$rAstral Lucky Block"))),maxUses=1000),\
(buy=(id=lucky:lucky_bow,Count=1),sell=(id=lucky:astral_lucky_potion,Count=#rand(1,3),tag=(Luck=50,display=(Name="$rAstral Lucky Potion"))),maxUses=1000),\
(buy=(id=lootplusplus:astral.lucky_pickaxe,Count=1),sell=(id=lucky:lucky_block_astral,Count=1,tag=(Luck=50,display=(Name="$rAstral Lucky Block"))),maxUses=1000),\
(buy=(id=lootplusplus:astral.lucky_pickaxe,Count=1),sell=(id=lucky:astral_lucky_potion,Count=#rand(1,3),tag=(Luck=50,display=(Name="$rAstral Lucky Potion"))),maxUses=1000),\
(buy=(id=lootplusplus:astral.lucky_axe,Count=1),sell=(id=lucky:lucky_block_astral,Count=1,tag=(Luck=50,display=(Name="$rAstral Lucky Block"))),maxUses=1000),\
(buy=(id=lootplusplus:astral.lucky_axe,Count=1),sell=(id=lucky:astral_lucky_potion,Count=#rand(1,3),tag=(Luck=50,display=(Name="$rAstral Lucky Potion"))),maxUses=1000),\
(buy=(id=lootplusplus:astral.lucky_shovel,Count=1),sell=(id=lucky:lucky_block_astral,Count=1,tag=(Luck=50,display=(Name="$rAstral Lucky Block"))),maxUses=1000),\
(buy=(id=lootplusplus:astral.lucky_shovel,Count=1),sell=(id=lucky:astral_lucky_potion,Count=#rand(1,3),tag=(Luck=50,display=(Name="$rAstral Lucky Potion"))),maxUses=1000),\
(buy=(id=lootplusplus:astral.lucky_scythe,Count=1),sell=(id=lucky:lucky_block_astral,Count=1,tag=(Luck=50,display=(Name="$rAstral Lucky Block"))),maxUses=1000),\
(buy=(id=lootplusplus:astral.lucky_scythe,Count=1),sell=(id=lucky:astral_lucky_potion,Count=#rand(1,3),tag=(Luck=50,display=(Name="$rAstral Lucky Potion"))),maxUses=1000),\
(buy=(id=lootplusplus:astral.lucky_helmet,Count=1),sell=(id=lucky:lucky_block_astral,Count=1,tag=(Luck=50,display=(Name="$rAstral Lucky Block"))),maxUses=1000),\
(buy=(id=lootplusplus:astral.lucky_helmet,Count=1),sell=(id=lucky:astral_lucky_potion,Count=#rand(1,3),tag=(Luck=50,display=(Name="$rAstral Lucky Potion"))),maxUses=1000),\
(buy=(id=lootplusplus:astral.lucky_chestplate,Count=1),sell=(id=lucky:lucky_block_astral,Count=1,tag=(Luck=50,display=(Name="$rAstral Lucky Block"))),maxUses=1000),\
(buy=(id=lootplusplus:astral.lucky_chestplate,Count=1),sell=(id=lucky:astral_lucky_potion,Count=#rand(1,3),tag=(Luck=50,display=(Name="$rAstral Lucky Potion"))),maxUses=1000),\
(buy=(id=lootplusplus:astral.lucky_leggings,Count=1),sell=(id=lucky:lucky_block_astral,Count=1,tag=(Luck=50,display=(Name="$rAstral Lucky Block"))),maxUses=1000),\
(buy=(id=lootplusplus:astral.lucky_leggings,Count=1),sell=(id=lucky:astral_lucky_potion,Count=#rand(1,3),tag=(Luck=50,display=(Name="$rAstral Lucky Potion"))),maxUses=1000),\
(buy=(id=lootplusplus:astral.lucky_boots,Count=1),sell=(id=lucky:lucky_block_astral,Count=1,tag=(Luck=50,display=(Name="$rAstral Lucky Block"))),maxUses=1000),\
(buy=(id=lootplusplus:astral.lucky_boots,Count=1),sell=(id=lucky:astral_lucky_potion,Count=#rand(1,3),tag=(Luck=50,display=(Name="$rAstral Lucky Potion"))),maxUses=1000)]),CustomName="$e$lAstral Merchant",CustomNameVisible=true,Profession=2,Career=1,CareerLevel=100)@luck=2

type=entity,ID=Villager,NBTTag=(Offers=(Recipes=[\
(buy=(id=lootplusplus:astral.starry_furnace,Count=1),sell=(id=lucky:lucky_block_astral,Count=2,tag=(Luck=100,display=(Name="$rAstral Very Lucky Block"))),maxUses=1000),\
(buy=(id=lootplusplus:astral.starry_furnace,Count=1),sell=(id=lucky:astral_lucky_potion,Count=#rand(2,4),tag=(Luck=100,display=(Name="$rAstral Very Lucky Potion"))),maxUses=1000),\
(buy=(id=lootplusplus:astral.starry_crafting_table,Count=1),sell=(id=lucky:lucky_block_astral,Count=2,tag=(Luck=100,display=(Name="$rAstral Very Lucky Block"))),maxUses=1000),\
(buy=(id=lootplusplus:astral.starry_crafting_table,Count=1),sell=(id=lucky:astral_lucky_potion,Count=#rand(2,4),tag=(Luck=100,display=(Name="$rAstral Very Lucky Potion"))),maxUses=1000),\
(buy=(id=lucky:astral_lucky_sword,Count=1),sell=(id=lucky:lucky_block_astral,Count=2,tag=(Luck=100,display=(Name="$rAstral Very Lucky Block"))),maxUses=1000),\
(buy=(id=lucky:astral_lucky_sword,Count=1),sell=(id=lucky:astral_lucky_potion,Count=#rand(2,4),tag=(Luck=100,display=(Name="$rAstral Very Lucky Potion"))),maxUses=1000),\
(buy=(id=lucky:astral_lucky_bow,Count=1),sell=(id=lucky:lucky_block_astral,Count=2,tag=(Luck=100,display=(Name="$rAstral Very Lucky Block"))),maxUses=1000),\
(buy=(id=lucky:astral_lucky_bow,Count=1),sell=(id=lucky:astral_lucky_potion,Count=#rand(2,4),tag=(Luck=100,display=(Name="$rAstral Very Lucky Potion"))),maxUses=1000),\
(buy=(id=lootplusplus:astral.star_slicer,Count=1),sell=(id=lucky:lucky_block_astral,Count=1,tag=(Luck=100,display=(Name="$rAstral Very Lucky Block"))),maxUses=1000),\
(buy=(id=lootplusplus:astral.star_slicer,Count=1),sell=(id=lucky:astral_lucky_potion,Count=#rand(1,3),tag=(Luck=100,display=(Name="$rAstral Very Lucky Potion"))),maxUses=1000),\
(buy=(id=lootplusplus:astral.star_miner,Count=1),sell=(id=lucky:lucky_block_astral,Count=1,tag=(Luck=100,display=(Name="$rAstral Very Lucky Block"))),maxUses=1000),\
(buy=(id=lootplusplus:astral.star_miner,Count=1),sell=(id=lucky:astral_lucky_potion,Count=#rand(1,3),tag=(Luck=100,display=(Name="$rAstral Very Lucky Potion"))),maxUses=1000),\
(buy=(id=lootplusplus:astral.astral_helmet,Count=1),sell=(id=lucky:lucky_block_astral,Count=2,tag=(Luck=100,display=(Name="$rAstral Very Lucky Block"))),maxUses=1000),\
(buy=(id=lootplusplus:astral.astral_helmet,Count=1),sell=(id=lucky:astral_lucky_potion,Count=#rand(2,4),tag=(Luck=100,display=(Name="$rAstral Very Lucky Potion"))),maxUses=1000),\
(buy=(id=lootplusplus:astral.astral_chestplate,Count=1),sell=(id=lucky:lucky_block_astral,Count=2,tag=(Luck=100,display=(Name="$rAstral Very Lucky Block"))),maxUses=1000),\
(buy=(id=lootplusplus:astral.astral_chestplate,Count=1),sell=(id=lucky:astral_lucky_potion,Count=#rand(2,4),tag=(Luck=100,display=(Name="$rAstral Very Lucky Potion"))),maxUses=1000),\
(buy=(id=lootplusplus:astral.astral_leggings,Count=1),sell=(id=lucky:lucky_block_astral,Count=2,tag=(Luck=100,display=(Name="$rAstral Very Lucky Block"))),maxUses=1000),\
(buy=(id=lootplusplus:astral.astral_leggings,Count=1),sell=(id=lucky:astral_lucky_potion,Count=#rand(2,4),tag=(Luck=100,display=(Name="$rAstral Very Lucky Potion"))),maxUses=1000),\
(buy=(id=lootplusplus:astral.astral_boots,Count=1),sell=(id=lucky:lucky_block_astral,Count=2,tag=(Luck=100,display=(Name="$rAstral Very Lucky Block"))),maxUses=1000),\
(buy=(id=lootplusplus:astral.astral_boots,Count=1),sell=(id=lucky:astral_lucky_potion,Count=#rand(2,4),tag=(Luck=100,display=(Name="$rAstral Very Lucky Potion"))),maxUses=1000)]),CustomName="$e$lAstral Merchant",CustomNameVisible=true,Profession=2,Career=1,CareerLevel=100)@luck=2

type=entity,ID=Villager,NBTTag=(Offers=(Recipes=[\
(buy=(id=lootplusplus:astral.throwing_star,Count=#rand(15,20)),sell=(id=lucky:lucky_block_astral,Count=1),maxUses=1000),\
(buy=(id=lootplusplus:astral.throwing_star,Count=#rand(15,20)),sell=(id=lucky:astral_lucky_potion,Count=#rand(1,3)),maxUses=1000),\
(buy=(id=lootplusplus:astral.star_cookie,Count=3),sell=(id=lucky:lucky_block_astral,Count=1),maxUses=1000),\
(buy=(id=lootplusplus:astral.star_cookie,Count=3),sell=(id=lucky:astral_lucky_potion,Count=#rand(1,3)),maxUses=1000),\
(buy=(id=lootplusplus:astral.throwing_star_fire,Count=#rand(15,20)),sell=(id=lucky:lucky_block_astral,Count=1),maxUses=1000),\
(buy=(id=lootplusplus:astral.throwing_star_fire,Count=#rand(15,20)),sell=(id=lucky:astral_lucky_potion,Count=#rand(1,3)),maxUses=1000),\
(buy=(id=lootplusplus:astral.throwing_star_ice,Count=#rand(15,20)),sell=(id=lucky:lucky_block_astral,Count=1),maxUses=1000),\
(buy=(id=lootplusplus:astral.throwing_star_ice,Count=#rand(15,20)),sell=(id=lucky:astral_lucky_potion,Count=#rand(1,3)),maxUses=1000),\
(buy=(id=lootplusplus:astral.throwing_star_poison,Count=#rand(15,20)),sell=(id=lucky:lucky_block_astral,Count=1),maxUses=1000),\
(buy=(id=lootplusplus:astral.throwing_star_poison,Count=#rand(15,20)),sell=(id=lucky:astral_lucky_potion,Count=#rand(1,3)),maxUses=1000),\
(buy=(id=lootplusplus:astral.throwing_star_dark,Count=#rand(15,20)),sell=(id=lucky:lucky_block_astral,Count=1),maxUses=1000),\
(buy=(id=lootplusplus:astral.throwing_star_dark,Count=#rand(15,20)),sell=(id=lucky:astral_lucky_potion,Count=#rand(1,3)),maxUses=1000),\
(buy=(id=lootplusplus:astral.throwing_star_explode,Count=#rand(15,20)),sell=(id=lucky:lucky_block_astral,Count=1),maxUses=1000),\
(buy=(id=lootplusplus:astral.throwing_star_explode,Count=#rand(15,20)),sell=(id=lucky:astral_lucky_potion,Count=#rand(1,3)),maxUses=1000),\
(buy=(id=nether_star,Count=1),sell=(id=lucky:lucky_block_astral,Count=1,tag=(Luck=100,display=(Name="$rAstral Very Lucky Block"))),maxUses=1000),\
(buy=(id=nether_star,Count=1),sell=(id=lucky:astral_lucky_potion,Count=#rand(1,3),tag=(Luck=100,display=(Name="$rAstral Very Lucky Potion"))),maxUses=1000),\
(buy=(id=lootplusplus:astral.mage_helmet,Count=1),sell=(id=lucky:lucky_block_astral,Count=1,tag=(Luck=50,display=(Name="$rAstral Lucky Block"))),maxUses=1000),\
(buy=(id=lootplusplus:astral.mage_helmet,Count=1),sell=(id=lucky:astral_lucky_potion,Count=#rand(1,3),tag=(Luck=50,display=(Name="$rAstral Lucky Potion"))),maxUses=1000),\
(buy=(id=lootplusplus:astral.mage_chestplate,Count=1),sell=(id=lucky:lucky_block_astral,Count=1,tag=(Luck=50,display=(Name="$rAstral Lucky Block"))),maxUses=1000),\
(buy=(id=lootplusplus:astral.mage_chestplate,Count=1),sell=(id=lucky:astral_lucky_potion,Count=#rand(1,3),tag=(Luck=50,display=(Name="$rAstral Lucky Potion"))),maxUses=1000),\
(buy=(id=lootplusplus:astral.mage_leggings,Count=1),sell=(id=lucky:lucky_block_astral,Count=1,tag=(Luck=50,display=(Name="$rAstral Lucky Block"))),maxUses=1000),\
(buy=(id=lootplusplus:astral.mage_leggings,Count=1),sell=(id=lucky:astral_lucky_potion,Count=#rand(1,3),tag=(Luck=50,display=(Name="$rAstral Lucky Potion"))),maxUses=1000),\
(buy=(id=lootplusplus:astral.mage_boots,Count=1),sell=(id=lucky:lucky_block_astral,Count=1,tag=(Luck=50,display=(Name="$rAstral Lucky Block"))),maxUses=1000),\
(buy=(id=lootplusplus:astral.mage_boots,Count=1),sell=(id=lucky:astral_lucky_potion,Count=#rand(1,3),tag=(Luck=50,display=(Name="$rAstral Lucky Potion"))),maxUses=1000)]),CustomName="$e$lAstral Merchant",CustomNameVisible=true,Profession=2,Career=1,CareerLevel=100)@luck=2

type=entity,ID=Villager,NBTTag=(Offers=(Recipes=[\
(buy=(id=end_portal_frame,Count=#rand(3,5)),sell=(id=lucky:lucky_block_astral,Count=1,tag=(Luck=50)),maxUses=1000),\
(buy=(id=end_portal_frame,Count=#rand(3,5)),sell=(id=lucky:astral_lucky_potion,Count=#rand(1,3),tag=(Luck=50)),maxUses=1000),\
(buy=(id=beacon,Count=1),sell=(id=lucky:lucky_block_astral,Count=2,tag=(Luck=100,display=(Name="$rAstral Very Lucky Block"))),maxUses=1000),\
(buy=(id=beacon,Count=1),sell=(id=lucky:astral_lucky_potion,Count=#rand(2,4),tag=(Luck=100,display=(Name="$rAstral Very Lucky Potion"))),maxUses=1000),\
(buy=(id=lootplusplus:astral.arm_cannon,Count=1),sell=(id=lucky:lucky_block_astral,Count=1,tag=(Luck=50,display=(Name="$rAstral Lucky Block"))),maxUses=1000),\
(buy=(id=lootplusplus:astral.arm_cannon,Count=1),sell=(id=lucky:astral_lucky_potion,Count=#rand(1,3),tag=(Luck=50,display=(Name="$rAstral Lucky Potion"))),maxUses=1000),\
(buy=(id=lootplusplus:astral.mech_helmet,Count=1),sell=(id=lucky:lucky_block_astral,Count=1,tag=(Luck=50,display=(Name="$rAstral Lucky Block"))),maxUses=1000),\
(buy=(id=lootplusplus:astral.mech_helmet,Count=1),sell=(id=lucky:astral_lucky_potion,Count=#rand(1,3),tag=(Luck=50,display=(Name="$rAstral Lucky Potion"))),maxUses=1000),\
(buy=(id=lootplusplus:astral.mech_chestplate,Count=1),sell=(id=lucky:lucky_block_astral,Count=1,tag=(Luck=50,display=(Name="$rAstral Lucky Block"))),maxUses=1000),\
(buy=(id=lootplusplus:astral.mech_chestplate,Count=1),sell=(id=lucky:astral_lucky_potion,Count=#rand(1,3),tag=(Luck=50,display=(Name="$rAstral Lucky Potion"))),maxUses=1000),\
(buy=(id=lootplusplus:astral.mech_leggings,Count=1),sell=(id=lucky:lucky_block_astral,Count=1,tag=(Luck=50,display=(Name="$rAstral Lucky Block"))),maxUses=1000),\
(buy=(id=lootplusplus:astral.mech_leggings,Count=1),sell=(id=lucky:astral_lucky_potion,Count=#rand(1,3),tag=(Luck=50,display=(Name="$rAstral Lucky Potion"))),maxUses=1000),\
(buy=(id=lootplusplus:astral.mech_boots,Count=1),sell=(id=lucky:lucky_block_astral,Count=1,tag=(Luck=50,display=(Name="$rAstral Lucky Block"))),maxUses=1000),\
(buy=(id=lootplusplus:astral.mech_boots,Count=1),sell=(id=lucky:astral_lucky_potion,Count=#rand(1,3),tag=(Luck=50,display=(Name="$rAstral Lucky Potion"))),maxUses=1000)]),CustomName="$e$lAstral Merchant",CustomNameVisible=true,Profession=2,Career=1,CareerLevel=100)@luck=2

/~~ friendlies ~~

/ fairies
group(type=entity,ID=Item,NBTTag=(CustomName=Fairy,CustomNameVisible=true,Item=(id=lootplusplus:astral.fairy,Count=1,tag=(display=(Lore=["$rRestores 10 hearts when used.","","$rIf you drop to 1 heart or less, saves","$ryour life and gives you 10 hearts.","","$r(Note though it won't save your life if","$ryou die too quickly and don't hit 1","$rheart)"]))),Riding=(id=Bat,CustomName=Fairy,Silent=true,ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)])),amount=#rand(2,3),posOffset=#circleOffset(2,3);type=command,ID="/gamerule commandBlockOutput false";type=command,ID="/entitydata @e[type=Bat,name=Fairy] {ForgeData:{LootPPCommands:{CommandList:["lppcondition testfor @e[type=Item,r=2] _if_true_ particle fireworksSpark ~0.5 ~0.5 ~0.5 0.3 0 0.3 0"],Repeat:true}}}")@luck=2

/ defender
group(type=particle,ID=heart,size=(1,0,1),particleAmount=5;type=entity,ID=VillagerGolem,NBTTag=(PlayerCreated=1,Equipment=[(id=lucky:astral_lucky_sword,Count=1,Damage=0,tag=(ench=[(id=16,lvl=#rand(3,8)),(id=#rand(17,18),lvl=#rand(1,5)),(id=#rand(19,20),lvl=#rand(1,2)),(id=21,lvl=#rand(1,5))])),(id=lootplusplus:astral.astral_helmet,Count=1,Damage=0,tag=(ench=#luckyHelmetEnchantments)),(id=lootplusplus:astral.astral_chestplate,Count=1,Damage=0,tag=(ench=#luckyChestplateEnchantments)),(id=lootplusplus:astral.astral_leggings,Count=1,Damage=0,tag=(ench=#luckyLeggingsEnchantments)),(id=lootplusplus:astral.astral_boots,Count=1,Damage=0,tag=(ench=#luckyBootsEnchantments))],DropChances=[0f,0f,0f,0f,0f],CustomName="$e$lDefender of the Universe",Attributes=[(Name=generic.maxHealth,Base=1000f)]))@luck=2

/lucky puppy
group(type=particle,ID="heart",size=(1,0,1),particleAmount=5;type=entity,ID=Wolf,NBTTag=(CollarColor=#rand(0,14),Owner=#pName,Sitting=1,Equipment=[(id=lucky:astral_lucky_sword,Damage=0,tag=(ench=[(id=16,lvl=#rand(3,8)),(id=#rand(17,18),lvl=#rand(1,5)),(id=#rand(19,20),lvl=#rand(1,2)),(id=21,lvl=#rand(1,5))])),(id=lootplusplus:astral.astral_helmet,Count=1,Damage=0,tag=(ench=#luckyHelmetEnchantments)),(id=lootplusplus:astral.astral_chestplate,Damage=0,tag=(ench=#luckyChestplateEnchantments)),(id=lootplusplus:astral.astral_leggings,Damage=0,tag=(ench=#luckyLeggingsEnchantments)),(id=lootplusplus:astral.astral_boots,Damage=0,tag=(ench=#luckyBootsEnchantments))],DropChances=[0f,0f,0f,0f,0f],Age=-1000000,CustomName="$e$l#pName's Lucky Puppy"))@luck=2

/lucky kitten
group(type=particle,ID="heart",size=(1,0,1),particleAmount=5;type=entity,ID=Ozelot,NBTTag=(CatType=#rand(0,3),Owner=#pName,Sitting=1,Equipment=[(id=none),(id=lootplusplus:astral.astral_helmet,Damage=0,tag=(ench=#luckyHelmetEnchantments)),(id=lootplusplus:astral.astral_chestplate,Damage=0,tag=(ench=#luckyChestplateEnchantments)),(id=lootplusplus:astral.astral_leggings,Damage=0,tag=(ench=#luckyLeggingsEnchantments)),(id=lootplusplus:astral.astral_boots,Damage=0,tag=(ench=#luckyBootsEnchantments))],DropChances=[0f,0f,0f,0f,0f],Age=-1000000,CustomName="$e$l#pName's Lucky Kitten"))@luck=2

/ astral snowmage
group(type=particle,ID=heart,size=(1,0,1),particleAmount=5;type=entity,ID=SnowMan,NBTTag=(Attributes=[(Name=generic.maxHealth,Base=50f)],ActiveEffects=[(Id=12,Duration=100000,Amplifier=1,ShowParticles=false)],Equipment=[(id=lootplusplus:astral.throwing_star,Count=20),(id=lootplusplus:astral.astral_helmet,Count=1,Damage=0,tag=(ench=#luckyHelmetEnchantments)),(id=lootplusplus:astral.astral_chestplate,Count=1,Damage=0,tag=(ench=#luckyChestplateEnchantments)),(id=lootplusplus:astral.astral_leggings,Count=1,Damage=0,tag=(ench=#luckyLeggingsEnchantments)),(id=lootplusplus:astral.astral_boots,Count=1,Damage=0,tag=(ench=#luckyBootsEnchantments))],DropChances=[2f,0f,0f,0f,0f],CustomName="$e$l#randList(Ichibo,Ubuntu,Potashi,Josayn,Mondo,Kirian,Pierson,Candre) The Astral Snowmage"))@luck=2
group(type=particle,ID=heart,size=(1,0,1),particleAmount=5;type=entity,ID=SnowMan,NBTTag=(Attributes=[(Name=generic.maxHealth,Base=50f)],ActiveEffects=[(Id=12,Duration=100000,Amplifier=1,ShowParticles=false)],Equipment=[(id=lootplusplus:astral.throwing_star_fire,Count=20),(id=lootplusplus:astral.astral_helmet,Count=1,Damage=0,tag=(ench=#luckyHelmetEnchantments)),(id=lootplusplus:astral.astral_chestplate,Count=1,Damage=0,tag=(ench=#luckyChestplateEnchantments)),(id=lootplusplus:astral.astral_leggings,Count=1,Damage=0,tag=(ench=#luckyLeggingsEnchantments)),(id=lootplusplus:astral.astral_boots,Count=1,Damage=0,tag=(ench=#luckyBootsEnchantments))],DropChances=[2f,0f,0f,0f,0f],CustomName="$e$l#randList(Ichibo,Ubuntu,Potashi,Josayn,Mondo,Kirian,Pierson,Candre) The Astral Flame Snowmage"))@luck=2
group(type=particle,ID=heart,size=(1,0,1),particleAmount=5;type=entity,ID=SnowMan,NBTTag=(Attributes=[(Name=generic.maxHealth,Base=50f)],ActiveEffects=[(Id=12,Duration=100000,Amplifier=1,ShowParticles=false)],Equipment=[(id=lootplusplus:astral.throwing_star_ice,Count=20),(id=lootplusplus:astral.astral_helmet,Count=1,Damage=0,tag=(ench=#luckyHelmetEnchantments)),(id=lootplusplus:astral.astral_chestplate,Count=1,Damage=0,tag=(ench=#luckyChestplateEnchantments)),(id=lootplusplus:astral.astral_leggings,Count=1,Damage=0,tag=(ench=#luckyLeggingsEnchantments)),(id=lootplusplus:astral.astral_boots,Count=1,Damage=0,tag=(ench=#luckyBootsEnchantments))],DropChances=[2f,0f,0f,0f,0f],CustomName="$e$l#randList(Ichibo,Ubuntu,Potashi,Josayn,Mondo,Kirian,Pierson,Candre) The Astral Ice Snowmage"))@luck=2
group(type=particle,ID=heart,size=(1,0,1),particleAmount=5;type=entity,ID=SnowMan,NBTTag=(Attributes=[(Name=generic.maxHealth,Base=50f)],ActiveEffects=[(Id=12,Duration=100000,Amplifier=1,ShowParticles=false)],Equipment=[(id=lootplusplus:astral.throwing_star_poison,Count=20),(id=lootplusplus:astral.astral_helmet,Count=1,Damage=0,tag=(ench=#luckyHelmetEnchantments)),(id=lootplusplus:astral.astral_chestplate,Count=1,Damage=0,tag=(ench=#luckyChestplateEnchantments)),(id=lootplusplus:astral.astral_leggings,Count=1,Damage=0,tag=(ench=#luckyLeggingsEnchantments)),(id=lootplusplus:astral.astral_boots,Count=1,Damage=0,tag=(ench=#luckyBootsEnchantments))],DropChances=[2f,0f,0f,0f,0f],CustomName="$e$l#randList(Ichibo,Ubuntu,Potashi,Josayn,Mondo,Kirian,Pierson,Candre) The Astral Poison Snowmage"))@luck=2
group(type=particle,ID=heart,size=(1,0,1),particleAmount=5;type=entity,ID=SnowMan,NBTTag=(Attributes=[(Name=generic.maxHealth,Base=50f)],ActiveEffects=[(Id=12,Duration=100000,Amplifier=1,ShowParticles=false)],Equipment=[(id=lootplusplus:astral.throwing_star_dark,Count=20),(id=lootplusplus:astral.astral_helmet,Count=1,Damage=0,tag=(ench=#luckyHelmetEnchantments)),(id=lootplusplus:astral.astral_chestplate,Count=1,Damage=0,tag=(ench=#luckyChestplateEnchantments)),(id=lootplusplus:astral.astral_leggings,Count=1,Damage=0,tag=(ench=#luckyLeggingsEnchantments)),(id=lootplusplus:astral.astral_boots,Count=1,Damage=0,tag=(ench=#luckyBootsEnchantments))],DropChances=[2f,0f,0f,0f,0f],CustomName="$e$l#randList(Ichibo,Ubuntu,Potashi,Josayn,Mondo,Kirian,Pierson,Candre) The Astral Dark Snowmage"))@luck=2

/ lucky horse
group(type=particle,ID="heart",size=(1,0,1),particleAmount=5;type=entity,ID=EntityHorse,NBTTag=(Type=0,Tame=1,Attributes=[(Name=generic.maxHealth,Base=500f)],Variant=#randList(#rand(0,6),#rand(256,262),#rand(512,518),#rand(768,774),#rand(1024,1030)),ArmorItem=(id=diamond_horse_armor,Count=1,tag=(display=(Name="$e$l#pName's Lucky Horse Armor"))),SaddleItem=(id=saddle,Count=1),CustomName="$e$l#pName's Lucky Horse"))@luck=2

/ lucky donkey
group(type=particle,ID="heart",size=(1,0,1),particleAmount=5;type=entity,ID=EntityHorse,NBTTag=(Type=1,Tame=1,Attributes=[(Name=generic.maxHealth,Base=500f)],ChestedHorse=true,SaddleItem=(id=saddle,Count=1),CustomName="$e$l#pName's Lucky Donkey"))@luck=2

/ friendly giant
group(type=entity,ID=Giant,NBTTag=(CustomName="$lThe Friendly Giant",Equipment=[(id=none),(id=rotten_flesh,Count=#rand(16,32)),(id=rotten_flesh,Count=#rand(16,32)),(id=rotten_flesh,Count=#rand(16,32)),(id=rotten_flesh,Count=#rand(16,32))],DropChances=[0f,2f,2f,2f,2f]))@luck=0

/~~ other ~~

/ puppies
group(type=entity,ID=Wolf,amount=#rand(5,10),posOffset=#circleOffset(3),NBTTag=(Age=-1000000,CollarColor=#rand(0,14),Owner=#pName,Sitting=1,CustomName="#pName's Puppy");type=particle,ID="heart",size=(2,0,2),particleAmount=20)@luck=1

/ kittens
group(type=entity,ID=Ozelot,amount=#rand(5,10),posOffset=#circleOffset(3),NBTTag=(Age=-1000000,CollarColor=#rand(0,14),Owner=#pName,Sitting=1,CustomName="#pName's Kitten");type=particle,ID="heart",size=(2,0,2),particleAmount=20)@luck=1

/ peaceful pets
group(group:1:(type=entity,ID=lootplusplus.ThrownItem,NBTTag=(ItemThrown=lootplusplus:astral.label,CustomNameVisible=true,CustomName="$e#pName's Pet Bunny",Riding=(id=Rabbit,Age=-1000000,RabbitType=#rand(0,5)));type=entity,ID=lootplusplus.ThrownItem,NBTTag=(ItemThrown=lootplusplus:astral.label,CustomNameVisible=true,CustomName="$e#pName's Pet Piglet",Riding=(id=Pig,Age=-1000000));type=entity,ID=lootplusplus.ThrownItem,NBTTag=(ItemThrown=lootplusplus:astral.label,CustomNameVisible=true,CustomName="$e#pName's Pet Calf",Riding=(id=Cow,Age=-1000000));type=entity,ID=lootplusplus.ThrownItem,NBTTag=(ItemThrown=lootplusplus:astral.label,CustomNameVisible=true,CustomName="$e#pName's Pet Mooshroom",Riding=(id=MushroomCow,Age=-1000000));type=entity,ID=lootplusplus.ThrownItem,NBTTag=(ItemThrown=lootplusplus:astral.label,CustomNameVisible=true,CustomName="$e#pName's Pet Lamb",Riding=(Color=#rand(0,15),id=Sheep,Age=-1000000));type=entity,ID=lootplusplus.ThrownItem,NBTTag=(ItemThrown=lootplusplus:astral.label,CustomNameVisible=true,CustomName="$e#pName's Pet Chick",Riding=(id=Chicken,Age=-1000000)));type=particle,ID="heart",size=(2,0,2),particleAmount=20)@luck=1

/ haunted armours

/ full leather/wood
type=entity,posOffset=#circleOffset(3),amount=#rand(2,5),ID=Zombie,NBTTag=(Silent=true,CustomName="Haunted Leather Armor",Equipment=[(id=wooden_sword,Count=1),(id=leather_boots,Count=1),(id=leather_leggings,Count=1),(id=leather_chestplate,Count=1),(id=leather_helmet,Count=1)],DropChances=[0.3f,0.3f,0.3f,0.3f,0.3f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)])@luck=-1@chance=0.5
/ full chain/stone
type=entity,posOffset=#circleOffset(3),amount=#rand(2,5),ID=Zombie,NBTTag=(Silent=true,CustomName="Haunted Chainmail Armor",Equipment=[(id=stone_sword,Count=1),(id=chainmail_boots,Count=1),(id=chainmail_leggings,Count=1),(id=chainmail_chestplate,Count=1),(id=chainmail_helmet,Count=1)],DropChances=[0.3f,0.3f,0.3f,0.3f,0.3f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)])@luck=-1@chance=0.5
/ full gold
type=entity,posOffset=#circleOffset(3),amount=#rand(2,5),ID=Zombie,NBTTag=(Silent=true,CustomName="Haunted Gold Armor",Equipment=[(id=golden_sword,Count=1),(id=golden_boots,Count=1),(id=golden_leggings,Count=1),(id=golden_chestplate,Count=1),(id=golden_helmet,Count=1)],DropChances=[0.3f,0.3f,0.3f,0.3f,0.3f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)])@luck=-1@chance=0.5
/ full iron
type=entity,posOffset=#circleOffset(3),amount=#rand(2,5),ID=Zombie,NBTTag=(Silent=true,CustomName="Haunted Iron Armor",Equipment=[(id=iron_sword,Count=1),(id=iron_boots,Count=1),(id=iron_leggings,Count=1),(id=iron_chestplate,Count=1),(id=iron_helmet,Count=1)],DropChances=[0.3f,0.3f,0.3f,0.3f,0.3f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)])@luck=-2@chance=0.5
/ full diamond
type=entity,posOffset=#circleOffset(3),amount=#rand(2,5),ID=Zombie,NBTTag=(Silent=true,CustomName="Haunted Diamond Armor",Equipment=[(id=diamond_sword,Count=1),(id=diamond_boots,Count=1),(id=diamond_leggings,Count=1),(id=diamond_chestplate,Count=1),(id=diamond_helmet,Count=1)],DropChances=[0.3f,0.3f,0.3f,0.3f,0.3f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)])@luck=-2@chance=0.5
/ full lucky
type=entity,posOffset=#circleOffset(3),amount=#rand(2,5),ID=Zombie,NBTTag=(Silent=true,CustomName="Haunted Lucky Armor",Equipment=[(id=lucky:lucky_sword,Count=1),(id=lootplusplus:astral.lucky_boots,Count=1),(id=lootplusplus:astral.lucky_leggings,Count=1),(id=lootplusplus:astral.lucky_chestplate,Count=1),(id=lootplusplus:astral.lucky_helmet,Count=1)],DropChances=[0.3f,0.3f,0.3f,0.3f,0.3f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)])@luck=-2@chance=0.4

/ haunted tools

/ stone, wood, gold
group(type=entity,posOffset=#circleOffset(3),amount=#rand(1,2),ID=Zombie,NBTTag=(Silent=true,CustomName="Haunted Wooden Sword",Equipment=[(id=wooden_sword,Count=1,tag=(display=(Name="$rHaunted Wooden Sword"),ench=[(id=18,lvl=1)])),(id=none),(id=none),(id=none),(id=stick)],DropChances=[0.3f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)]);type=entity,posOffset=#circleOffset(3),amount=#rand(1,2),ID=Zombie,NBTTag=(Silent=true,CustomName="Haunted Wooden Shovel",Equipment=[(id=wooden_shovel,Count=1,tag=(display=(Name="$rHaunted Wooden Shovel"),ench=[(id=18,lvl=1)])),(id=none),(id=none),(id=none),(id=stick)],DropChances=[0.3f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)]);type=entity,posOffset=#circleOffset(3),amount=#rand(1,2),ID=Zombie,NBTTag=(Silent=true,CustomName="Haunted Wooden Axe",Equipment=[(id=wooden_axe,Count=1,tag=(display=(Name="$rHaunted Wooden Axe"),ench=[(id=18,lvl=1)])),(id=none),(id=none),(id=none),(id=stick)],DropChances=[0.3f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)]);type=entity,posOffset=#circleOffset(3),amount=#rand(1,2),ID=Zombie,NBTTag=(Silent=true,CustomName="Haunted Wooden Pickaxe",Equipment=[(id=wooden_pickaxe,Count=1,tag=(display=(Name="$rHaunted Wooden Pickaxe"),ench=[(id=18,lvl=1)])),(id=none),(id=none),(id=none),(id=stick)],DropChances=[0.3f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)]);type=entity,posOffset=#circleOffset(3),amount=#rand(1,2),ID=Zombie,NBTTag=(Silent=true,CustomName="Haunted Wooden Hoe",Equipment=[(id=wooden_hoe,Count=1,tag=(display=(Name="$rHaunted Wooden Hoe"),ench=[(id=18,lvl=1)])),(id=none),(id=none),(id=none),(id=stick)],DropChances=[0.3f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)]))@luck=-1
group(type=entity,posOffset=#circleOffset(3),amount=#rand(1,2),ID=Zombie,NBTTag=(Silent=true,CustomName="Haunted Stone Sword",Equipment=[(id=stone_sword,Count=1,tag=(display=(Name="$rHaunted Stone Sword"),ench=[(id=19,lvl=3)])),(id=none),(id=none),(id=none),(id=stick)],DropChances=[0.3f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)]);type=entity,posOffset=#circleOffset(3),amount=#rand(1,2),ID=Zombie,NBTTag=(Silent=true,CustomName="Haunted Stone Shovel",Equipment=[(id=stone_shovel,Count=1,tag=(display=(Name="$rHaunted Stone Shovel"),ench=[(id=19,lvl=3)])),(id=none),(id=none),(id=none),(id=stick)],DropChances=[0.3f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)]);type=entity,posOffset=#circleOffset(3),amount=#rand(1,2),ID=Zombie,NBTTag=(Silent=true,CustomName="Haunted Stone Axe",Equipment=[(id=stone_axe,Count=1,tag=(display=(Name="$rHaunted Stone Axe"),ench=[(id=19,lvl=3)])),(id=none),(id=none),(id=none),(id=stick)],DropChances=[0.3f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)]);type=entity,posOffset=#circleOffset(3),amount=#rand(1,2),ID=Zombie,NBTTag=(Silent=true,CustomName="Haunted Stone Pickaxe",Equipment=[(id=stone_pickaxe,Count=1,tag=(display=(Name="$rHaunted Stone Pickaxe"),ench=[(id=19,lvl=3)])),(id=none),(id=none),(id=none),(id=stick)],DropChances=[0.3f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)]);type=entity,posOffset=#circleOffset(3),amount=#rand(1,2),ID=Zombie,NBTTag=(Silent=true,CustomName="Haunted Stone Hoe",Equipment=[(id=stone_hoe,Count=1,tag=(display=(Name="$rHaunted Stone Hoe"),ench=[(id=19,lvl=3)])),(id=none),(id=none),(id=none),(id=stick)],DropChances=[0.3f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)]))@luck=-1
group(type=entity,posOffset=#circleOffset(3),amount=#rand(1,2),ID=Zombie,NBTTag=(Silent=true,CustomName="Haunted Golden Sword",Equipment=[(id=golden_sword,Count=1,tag=(display=(Name="$rHaunted Golden Sword"),ench=[(id=17,lvl=3)])),(id=none),(id=none),(id=none),(id=stick)],DropChances=[0.3f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)]);type=entity,posOffset=#circleOffset(3),amount=#rand(1,2),ID=Zombie,NBTTag=(Silent=true,CustomName="Haunted Golden Shovel",Equipment=[(id=golden_shovel,Count=1,tag=(display=(Name="$rHaunted Golden Shovel"),ench=[(id=17,lvl=3)])),(id=none),(id=none),(id=none),(id=stick)],DropChances=[0.3f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)]);type=entity,posOffset=#circleOffset(3),amount=#rand(1,2),ID=Zombie,NBTTag=(Silent=true,CustomName="Haunted Golden Axe",Equipment=[(id=golden_axe,Count=1,tag=(display=(Name="$rHaunted Golden Axe"),ench=[(id=17,lvl=3)])),(id=none),(id=none),(id=none),(id=stick)],DropChances=[0.3f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)]);type=entity,posOffset=#circleOffset(3),amount=#rand(1,2),ID=Zombie,NBTTag=(Silent=true,CustomName="Haunted Golden Pickaxe",Equipment=[(id=golden_pickaxe,Count=1,tag=(display=(Name="$rHaunted Golden Pickaxe"),ench=[(id=17,lvl=3)])),(id=none),(id=none),(id=none),(id=stick)],DropChances=[0.3f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)]);type=entity,posOffset=#circleOffset(3),amount=#rand(1,2),ID=Zombie,NBTTag=(Silent=true,CustomName="Haunted Golden Hoe",Equipment=[(id=golden_hoe,Count=1,tag=(display=(Name="$rHaunted Golden Hoe"),ench=[(id=17,lvl=3)])),(id=none),(id=none),(id=none),(id=stick)],DropChances=[0.3f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)]))@luck=-1
/ iron, diamond
group(type=entity,posOffset=#circleOffset(3),amount=#rand(1,2),ID=Zombie,NBTTag=(Silent=true,CustomName="Haunted Iron Sword",Equipment=[(id=iron_sword,Count=1,tag=(display=(Name="$rHaunted Iron Sword"),ench=[(id=20,lvl=1)])),(id=none),(id=none),(id=none),(id=stick)],DropChances=[0.3f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)]);type=entity,posOffset=#circleOffset(3),amount=#rand(1,2),ID=Zombie,NBTTag=(Silent=true,CustomName="Haunted Iron Shovel",Equipment=[(id=iron_shovel,Count=1,tag=(display=(Name="$rHaunted Iron Shovel"),ench=[(id=20,lvl=1)])),(id=none),(id=none),(id=none),(id=stick)],DropChances=[0.3f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)]);type=entity,posOffset=#circleOffset(3),amount=#rand(1,2),ID=Zombie,NBTTag=(Silent=true,CustomName="Haunted Iron Axe",Equipment=[(id=iron_axe,Count=1,tag=(display=(Name="$rHaunted Iron Axe"),ench=[(id=20,lvl=1)])),(id=none),(id=none),(id=none),(id=stick)],DropChances=[0.3f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)]);type=entity,posOffset=#circleOffset(3),amount=#rand(1,2),ID=Zombie,NBTTag=(Silent=true,CustomName="Haunted Iron Pickaxe",Equipment=[(id=iron_pickaxe,Count=1,tag=(display=(Name="$rHaunted Iron Pickaxe"),ench=[(id=20,lvl=1)])),(id=none),(id=none),(id=none),(id=stick)],DropChances=[0.3f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)]);type=entity,posOffset=#circleOffset(3),amount=#rand(1,2),ID=Zombie,NBTTag=(Silent=true,CustomName="Haunted Iron Hoe",Equipment=[(id=iron_hoe,Count=1,tag=(display=(Name="$rHaunted Iron Hoe"),ench=[(id=20,lvl=1)])),(id=none),(id=none),(id=none),(id=stick)],DropChances=[0.3f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)]))@luck=-1
group(type=entity,posOffset=#circleOffset(3),amount=#rand(1,2),ID=Zombie,NBTTag=(Silent=true,CustomName="Haunted Diamond Sword",Equipment=[(id=diamond_sword,Count=1,tag=(display=(Name="$rHaunted Diamond Sword"),ench=[(id=16,lvl=1)])),(id=none),(id=none),(id=none),(id=stick)],DropChances=[0.3f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)]);type=entity,posOffset=#circleOffset(3),amount=#rand(1,2),ID=Zombie,NBTTag=(Silent=true,CustomName="Haunted Diamond Shovel",Equipment=[(id=diamond_shovel,Count=1,tag=(display=(Name="$rHaunted Diamond Shovel"),ench=[(id=16,lvl=1)])),(id=none),(id=none),(id=none),(id=stick)],DropChances=[0.3f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)]);type=entity,posOffset=#circleOffset(3),amount=#rand(1,2),ID=Zombie,NBTTag=(Silent=true,CustomName="Haunted Diamond Axe",Equipment=[(id=diamond_axe,Count=1,tag=(display=(Name="$rHaunted Diamond Axe"),ench=[(id=16,lvl=1)])),(id=none),(id=none),(id=none),(id=stick)],DropChances=[0.3f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)]);type=entity,posOffset=#circleOffset(3),amount=#rand(1,2),ID=Zombie,NBTTag=(Silent=true,CustomName="Haunted Diamond Pickaxe",Equipment=[(id=diamond_pickaxe,Count=1,tag=(display=(Name="$rHaunted Diamond Pickaxe"),ench=[(id=16,lvl=1)])),(id=none),(id=none),(id=none),(id=stick)],DropChances=[0.3f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)]);type=entity,posOffset=#circleOffset(3),amount=#rand(1,2),ID=Zombie,NBTTag=(Silent=true,CustomName="Haunted Diamond Hoe",Equipment=[(id=diamond_hoe,Count=1,tag=(display=(Name="$rHaunted Diamond Hoe"),ench=[(id=16,lvl=1)])),(id=none),(id=none),(id=none),(id=stick)],DropChances=[0.3f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)]))@luck=-1
/ lucky things
group(type=entity,posOffset=#circleOffset(3),amount=#rand(1,2),ID=Zombie,NBTTag=(Silent=true,CustomName="Haunted Lucky Sword",Equipment=[(id=lucky:lucky_sword,Count=1,tag=(display=(Name="$rHaunted Lucky Sword"),ench=#luckySwordEnchantments)),(id=none),(id=none),(id=none),(id=stick)],DropChances=[0.3f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)]);type=entity,posOffset=#circleOffset(3),amount=#rand(1,2),ID=Zombie,NBTTag=(Silent=true,CustomName="Haunted Lucky Shovel",Equipment=[(id=lootplusplus:astral.lucky_shovel,Count=1,tag=(display=(Name="$rHaunted Lucky Shovel"),ench=#luckyAxeEnchantments)),(id=none),(id=none),(id=none),(id=stick)],DropChances=[0.3f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)]);type=entity,posOffset=#circleOffset(3),amount=#rand(1,2),ID=Zombie,NBTTag=(Silent=true,CustomName="Haunted Lucky Axe",Equipment=[(id=lootplusplus:astral.lucky_axe,Count=1,tag=(display=(Name="$rHaunted Lucky Axe"),ench=#luckyAxeEnchantments)),(id=none),(id=none),(id=none),(id=stick)],DropChances=[0.3f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)]);type=entity,posOffset=#circleOffset(3),amount=#rand(1,2),ID=Zombie,NBTTag=(Silent=true,CustomName="Haunted Lucky Pickaxe",Equipment=[(id=lootplusplus:astral.lucky_pickaxe,Count=1,tag=(display=(Name="$rHaunted Lucky Pickaxe"),ench=#luckyAxeEnchantments)),(id=none),(id=none),(id=none),(id=stick)],DropChances=[0.3f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)]);type=entity,posOffset=#circleOffset(3),amount=#rand(1,2),ID=Zombie,NBTTag=(Silent=true,CustomName="Haunted Lucky Scythe",Equipment=[(id=lootplusplus:astral.lucky_scythe,Count=1,tag=(display=(Name="$rHaunted Lucky Scythe"),ench=#luckyAxeEnchantments)),(id=none),(id=none),(id=none),(id=stick)],DropChances=[0.3f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)]))@luck=-1
/ bow, swordbow
group(type=entity,posOffset=#circleOffset(3),amount=#rand(2,5),ID=Skeleton,NBTTag=(Silent=true,CustomName="Haunted Bow",Equipment=[(id=bow,Count=1,tag=(display=(Name="$rHaunted Bow"))),(id=none),(id=none),(id=none),(id=stick)],DropChances=[0.3f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)]);type=entity,posOffset=#circleOffset(3),amount=#rand(2,5),ID=Skeleton,NBTTag=(Silent=true,CustomName="Haunted Diamond Swordbow",Equipment=[(id=lootplusplus:astral.swordbow_diamond,Count=1,tag=(display=(Name="$rHaunted Diamond Swordbow"),AttributeModifiers=[(AttributeName=generic.attackDamage,Name="Weapon modifier",Amount=7,Operation=0,UUIDLeast=-6586624321849018929,UUIDMost=-3801225194067177672)])),(id=none),(id=none),(id=none),(id=stick)],DropChances=[0.3f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)]))@luck=0

/ lucky endermen
group(type=time,ID=13000;type=entity,reinitialize=true,amount=#rand(3,5),posOffset=#circleOffset(0,3),ID=lootplusplus.ThrownItem,NBTTag=(ItemThrown=lootplusplus:astral.label,CustomName="$e$lLucky Enderman",CustomNameVisible=true,Riding=(id=Enderman,carried=lucky:lucky_block_astral,Equipment=[(id=lucky:lucky_block_astral,Count=1,tag=(Luck=80,display=(Name="$rAstral Very Lucky Block")))],DropChances=[2f],CustomName="$e$lLucky Enderman")))@luck=2

/ astral creepers
type=entity,ID=lootplusplus.ThrownItem,amount=8,posOffset=#circleOffset(2,3),posY=#bPosY+#rand(10,50),reinitialize=true,NBTTag=(ItemThrown=lootplusplus:astral.label,CustomName="$e$lAstral Creeper",CustomNameVisible=true,Riding=(id=Creeper,powered=1,ExplosionRadius=2,ActiveEffects=[(Id=11,Amplifier=5,Duration=60,ShowParticles=false)],Attributes=[(Name=generic.movementSpeed,Base=0.4f)],Equipment=[(id=lootplusplus:astral.throwing_star,Count=#rand(3,8))],DropChances=[2f]))@luck=-1

/ pet ender dragon
group(type=entity,ID=EnderDragon,NBTTag=(CustomName="$e$l#pName's Pet Dragon");type=command,ID="lppmount @e[type=EnderDragon,c=1] @p[name=#pName]")@luck=-2

/ cave spider nest
group(type=time,ID=13000;type=command,ID="gamerule commandBlockOutput false";type=command,ID="setblock ~ ~ ~ web 0 keep",posOffset=#circleOffset(0,8),amount=200,reinitialize=true;type=entity,ID=CaveSpider,posOffset=#circleOffset(0,8),amount=10,reinitialize=true)@luck=0

/ angry chickens
group(type=entity,ID=Zombie,amount=8,posOffset=#circleOffset(2,3),reinitialize=true,NBTTag=(CustomName="AngryChicken",Silent=true,Equipment=[(id=none),(id=none),(id=none),(id=none),(id=stick)],IsBaby=true,ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)],Riding=(id=Chicken));type=command,ID="/gamerule commandBlockOutput false";type=command,ID="/entitydata @e[type=Zombie,name=AngryChicken] {ForgeData:{LootPPCommands:{CommandList:["lppcondition testfor @e[type=Chicken,r=1] _if_false_ kill @e[type=Zombie,c=1]"],Repeat:true,Time:19,Delays:[20]}}}")@luck=-1

/ spawnable tamed puppies
type=entity,ID=Item,NBTTag=(CustomName="Spawn Tamed Puppy",CustomNameVisible=true,Item=(id="lootplusplus:custom_spawn_egg",Count=#rand(4,12),tag=(display=(Name="$rSpawn Tamed Puppy"),EntityName=Wolf,EntityData=(Age=-1000000,Owner=#pName,Sitting=1,CustomName="#pName's Puppy",ActiveEffects=[(Id=6,Duration=5,Amplifier=2,ShowParticles=false)]))))@luck=1

/ Shooting Star
group(type=fill,ID=air,size=(1,30,1);type=entity,ID=Item,posOffsetY=30,NBTTag=(CustomName="Shooting Star",CustomNameVisible=true,Item=(id=nether_star,Count=1,tag=(display=(Name="$rShooting Star"))),Riding=(id=lootplusplus.ThrownItem,ItemThrown=lootplusplus:astral.throwing_star));type=command,ID="/gamerule commandBlockOutput false")@luck=2

/ baby player
type=entity,ID=ArmorStand,NBTTag=(Small=true,NoBasePlate=true,ShowArms=true,Equipment=[(id=iron_pickaxe,Count=1,Damage=0,tag=(display=(Name="$7$lBaby #pName's Pickaxe"))),(id=leather_boots,Count=1,Damage=0,tag=(display=(color=#rand(0,16777215),Name="$7$lBaby #pName's Stained Boots"))),(id=leather_leggings,Count=1,Damage=0,tag=(display=(color=#rand(0,16777215),Name="$7$lBaby #pName's Stained Pants"))),(id=leather_chestplate,Count=1,Damage=0,tag=(display=(color=#rand(0,16777215),Name="$7$lBaby #pName's Stained Chestplate"))),(id=skull,Damage=3,Count=1,tag=(SkullOwner=#pName))],Rotation=[#pYaw+180f,0f],CustomName="Baby #pName",CustomNameVisible=true)@luck=0

/ jeb sheep tower
type=entity,ID=FallingSand,posY=#bPosY+1,NBTTag=(Block=diamond_block,Time=1,Riding=(id=Sheep,Color=10,Riding=(id=Sheep,CustomName=jeb_,Color=11,Riding=(id=Sheep,CustomName=jeb_,Color=5,Riding=(id=Sheep,CustomName=jeb_,Color=4,Riding=(id=Sheep,CustomName=jeb_,Color=1,Riding=(id=Sheep,CustomName=jeb_,Color=14)))))))@luck=1

/ baby killer bunny
type=entity,ID=Rabbit,NBTTag=(Age=-1000000,RabbitType=99)@luck=-1

/ pig, villager, creeper -> pigman, witch, charged creeper
group(type=entity,ID=Creeper,NBTTag=(Riding=(id=Villager,Riding=(id=Pig)));type=entity,ID=LightningBolt,delay=2;type=block,ID=air,delay=4)@luck=-1

/ enderdragon's babysitter enderman
group(type=time,ID=13000;type=entity,ID=lootplusplus.ThrownItem,NBTTag=(ItemThrown=lootplusplus:astral.label,CustomName="$d$lEnderdragon's Babysitter",CustomNameVisible=true,Riding=(id=Enderman,CustomName="$d$lEnderdragon's Babysitter",carried=dragon_egg,Equipment=[(id=dragon_egg,Count=1)],DropChances=[2f])))@luck=0

/ ender crystal
group(type=entity,ID=EnderCrystal,posOffsetY=1;type=block,ID=bedrock;type=block,ID=fire,posOffsetY=1)@luck=-1

/ =========== MONSTER APOCALYPSE ==========
/ sword, difficulty, time, potion effects
group(ID=iron_axe;type=difficulty,ID=hard;type=time,ID=18750;type=effect,ID=slowness,duration=30,amplifier=4;type=effect,ID=blindness,duration=30;group:1:( \

/ silverfish and endermites
group(type=entity,ID=Silverfish,amount=#rand(15,45);type=entity,ID=Endermite,amount=#rand(5,10)); \

/ guardians
type=entity,ID=Guardian,amount=#rand(10,30); \

/ normal mobs
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))); \

/ haunted armour
group(type=entity,posOffset=#circleOffset(3),amount=#rand(2,4),ID=Zombie,NBTTag=(Silent=true,CustomName="Haunted Leather Armor",Equipment=[(id=wooden_sword,Count=1),(id=leather_boots,Count=1),(id=leather_leggings,Count=1),(id=leather_chestplate,Count=1),(id=leather_helmet,Count=1)],DropChances=[0.3f,0.3f,0.3f,0.3f,0.3f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)]);type=entity,posOffset=#circleOffset(3),amount=#rand(2,4),ID=Zombie,NBTTag=(Silent=true,CustomName="Haunted Chainmail Armor",Equipment=[(id=stone_sword,Count=1),(id=chainmail_boots,Count=1),(id=chainmail_leggings,Count=1),(id=chainmail_chestplate,Count=1),(id=chainmail_helmet,Count=1)],DropChances=[0.3f,0.3f,0.3f,0.3f,0.3f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)]);type=entity,posOffset=#circleOffset(3),amount=#rand(2,4),ID=Zombie,NBTTag=(Silent=true,CustomName="Haunted Gold Armor",Equipment=[(id=golden_sword,Count=1),(id=golden_boots,Count=1),(id=golden_leggings,Count=1),(id=golden_chestplate,Count=1),(id=golden_helmet,Count=1)],DropChances=[0.3f,0.3f,0.3f,0.3f,0.3f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)]);type=entity,posOffset=#circleOffset(3),amount=#rand(2,4),ID=Zombie,NBTTag=(Silent=true,CustomName="Haunted Iron Armor",Equipment=[(id=iron_sword,Count=1),(id=iron_boots,Count=1),(id=iron_leggings,Count=1),(id=iron_chestplate,Count=1),(id=iron_helmet,Count=1)],DropChances=[0.3f,0.3f,0.3f,0.3f,0.3f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)]);type=entity,posOffset=#circleOffset(3),amount=#rand(2,4),ID=Zombie,NBTTag=(Silent=true,CustomName="Haunted Diamond Armor",Equipment=[(id=diamond_sword,Count=1),(id=diamond_boots,Count=1),(id=diamond_leggings,Count=1),(id=diamond_chestplate,Count=1),(id=diamond_helmet,Count=1)],DropChances=[0.3f,0.3f,0.3f,0.3f,0.3f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)])); \

/ haunted weapons
group(type=entity,posOffset=#circleOffset(3),ID=Zombie,NBTTag=(Silent=true,CustomName="Haunted Wooden Sword",Equipment=[(id=wooden_sword,Count=1,tag=(display=(Name="$rHaunted Wooden Sword"),ench=[(id=18,lvl=1)])),(id=none),(id=none),(id=none),(id=stick)],DropChances=[0.3f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)]);type=entity,posOffset=#circleOffset(3),ID=Zombie,NBTTag=(Silent=true,CustomName="Haunted Wooden Shovel",Equipment=[(id=wooden_shovel,Count=1,tag=(display=(Name="$rHaunted Wooden Shovel"),ench=[(id=18,lvl=1)])),(id=none),(id=none),(id=none),(id=stick)],DropChances=[0.3f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)]);type=entity,posOffset=#circleOffset(3),ID=Zombie,NBTTag=(Silent=true,CustomName="Haunted Wooden Axe",Equipment=[(id=wooden_axe,Count=1,tag=(display=(Name="$rHaunted Wooden Axe"),ench=[(id=18,lvl=1)])),(id=none),(id=none),(id=none),(id=stick)],DropChances=[0.3f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)]);type=entity,posOffset=#circleOffset(3),ID=Zombie,NBTTag=(Silent=true,CustomName="Haunted Wooden Pickaxe",Equipment=[(id=wooden_pickaxe,Count=1,tag=(display=(Name="$rHaunted Wooden Pickaxe"),ench=[(id=18,lvl=1)])),(id=none),(id=none),(id=none),(id=stick)],DropChances=[0.3f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)]);type=entity,posOffset=#circleOffset(3),ID=Zombie,NBTTag=(Silent=true,CustomName="Haunted Wooden Hoe",Equipment=[(id=wooden_hoe,Count=1,tag=(display=(Name="$rHaunted Wooden Hoe"),ench=[(id=18,lvl=1)])),(id=none),(id=none),(id=none),(id=stick)],DropChances=[0.3f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)]);type=entity,posOffset=#circleOffset(3),ID=Zombie,NBTTag=(Silent=true,CustomName="Haunted Stone Sword",Equipment=[(id=stone_sword,Count=1,tag=(display=(Name="$rHaunted Stone Sword"),ench=[(id=19,lvl=3)])),(id=none),(id=none),(id=none),(id=stick)],DropChances=[0.3f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)]);type=entity,posOffset=#circleOffset(3),ID=Zombie,NBTTag=(Silent=true,CustomName="Haunted Stone Shovel",Equipment=[(id=stone_shovel,Count=1,tag=(display=(Name="$rHaunted Stone Shovel"),ench=[(id=19,lvl=3)])),(id=none),(id=none),(id=none),(id=stick)],DropChances=[0.3f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)]);type=entity,posOffset=#circleOffset(3),ID=Zombie,NBTTag=(Silent=true,CustomName="Haunted Stone Axe",Equipment=[(id=stone_axe,Count=1,tag=(display=(Name="$rHaunted Stone Axe"),ench=[(id=19,lvl=3)])),(id=none),(id=none),(id=none),(id=stick)],DropChances=[0.3f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)]);type=entity,posOffset=#circleOffset(3),ID=Zombie,NBTTag=(Silent=true,CustomName="Haunted Stone Pickaxe",Equipment=[(id=stone_pickaxe,Count=1,tag=(display=(Name="$rHaunted Stone Pickaxe"),ench=[(id=19,lvl=3)])),(id=none),(id=none),(id=none),(id=stick)],DropChances=[0.3f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)]);type=entity,posOffset=#circleOffset(3),ID=Zombie,NBTTag=(Silent=true,CustomName="Haunted Stone Hoe",Equipment=[(id=stone_hoe,Count=1,tag=(display=(Name="$rHaunted Stone Hoe"),ench=[(id=19,lvl=3)])),(id=none),(id=none),(id=none),(id=stick)],DropChances=[0.3f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)]);type=entity,posOffset=#circleOffset(3),ID=Zombie,NBTTag=(Silent=true,CustomName="Haunted Golden Sword",Equipment=[(id=golden_sword,Count=1,tag=(display=(Name="$rHaunted Golden Sword"),ench=[(id=17,lvl=3)])),(id=none),(id=none),(id=none),(id=stick)],DropChances=[0.3f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)]);type=entity,posOffset=#circleOffset(3),ID=Zombie,NBTTag=(Silent=true,CustomName="Haunted Golden Shovel",Equipment=[(id=golden_shovel,Count=1,tag=(display=(Name="$rHaunted Golden Shovel"),ench=[(id=17,lvl=3)])),(id=none),(id=none),(id=none),(id=stick)],DropChances=[0.3f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)]);type=entity,posOffset=#circleOffset(3),ID=Zombie,NBTTag=(Silent=true,CustomName="Haunted Golden Axe",Equipment=[(id=golden_axe,Count=1,tag=(display=(Name="$rHaunted Golden Axe"),ench=[(id=17,lvl=3)])),(id=none),(id=none),(id=none),(id=stick)],DropChances=[0.3f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)]);type=entity,posOffset=#circleOffset(3),ID=Zombie,NBTTag=(Silent=true,CustomName="Haunted Golden Pickaxe",Equipment=[(id=golden_pickaxe,Count=1,tag=(display=(Name="$rHaunted Golden Pickaxe"),ench=[(id=17,lvl=3)])),(id=none),(id=none),(id=none),(id=stick)],DropChances=[0.3f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)]);type=entity,posOffset=#circleOffset(3),ID=Zombie,NBTTag=(Silent=true,CustomName="Haunted Golden Hoe",Equipment=[(id=golden_hoe,Count=1,tag=(display=(Name="$rHaunted Golden Hoe"),ench=[(id=17,lvl=3)])),(id=none),(id=none),(id=none),(id=stick)],DropChances=[0.3f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)]);type=entity,posOffset=#circleOffset(3),ID=Zombie,NBTTag=(Silent=true,CustomName="Haunted Iron Sword",Equipment=[(id=iron_sword,Count=1,tag=(display=(Name="$rHaunted Iron Sword"),ench=[(id=20,lvl=1)])),(id=none),(id=none),(id=none),(id=stick)],DropChances=[0.3f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)]);type=entity,posOffset=#circleOffset(3),ID=Zombie,NBTTag=(Silent=true,CustomName="Haunted Iron Shovel",Equipment=[(id=iron_shovel,Count=1,tag=(display=(Name="$rHaunted Iron Shovel"),ench=[(id=20,lvl=1)])),(id=none),(id=none),(id=none),(id=stick)],DropChances=[0.3f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)]);type=entity,posOffset=#circleOffset(3),ID=Zombie,NBTTag=(Silent=true,CustomName="Haunted Iron Axe",Equipment=[(id=iron_axe,Count=1,tag=(display=(Name="$rHaunted Iron Axe"),ench=[(id=20,lvl=1)])),(id=none),(id=none),(id=none),(id=stick)],DropChances=[0.3f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)]);type=entity,posOffset=#circleOffset(3),ID=Zombie,NBTTag=(Silent=true,CustomName="Haunted Iron Pickaxe",Equipment=[(id=iron_pickaxe,Count=1,tag=(display=(Name="$rHaunted Iron Pickaxe"),ench=[(id=20,lvl=1)])),(id=none),(id=none),(id=none),(id=stick)],DropChances=[0.3f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)]);type=entity,posOffset=#circleOffset(3),ID=Zombie,NBTTag=(Silent=true,CustomName="Haunted Iron Hoe",Equipment=[(id=iron_hoe,Count=1,tag=(display=(Name="$rHaunted Iron Hoe"),ench=[(id=20,lvl=1)])),(id=none),(id=none),(id=none),(id=stick)],DropChances=[0.3f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)]);type=entity,posOffset=#circleOffset(3),amount=3,ID=Skeleton,NBTTag=(Silent=true,CustomName="Haunted Bow",Equipment=[(id=bow,Count=1,tag=(display=(Name="$rHaunted Bow"))),(id=none),(id=none),(id=none),(id=stick)],DropChances=[0.3f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)]);type=entity,posOffset=#circleOffset(3),ID=Skeleton,NBTTag=(Silent=true,CustomName="Haunted Diamond Swordbow",Equipment=[(id=lootplusplus:astral.swordbow_diamond,Count=1,tag=(display=(Name="$rHaunted Diamond Swordbow"),AttributeModifiers=[(AttributeName=generic.attackDamage,Name="Weapon modifier",Amount=7,Operation=0,UUIDLeast=-6586624321849018929,UUIDMost=-3801225194067177672)])),(id=none),(id=none),(id=none),(id=stick)],DropChances=[0.3f],ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)])); \

/ baby killer bunnies
type=entity,ID=Rabbit,amount=#rand(5,10),NBTTag=(RabbitType=99,Age=-1000000); \

/ blazes and ghasts
group(type=entity,ID=Blaze,amount=#rand(5,10);type=entity,ID=Ghast,amount=#rand(5,10)) \

),posOffset=#circleOffset(8,10))@chance=5,@luck=-2


/ =========== EFFECTS ============

/ perplexity
group(type=sound,ID=portal.travel,pitch=2.0;type=effect,ID=potioncore:perplexity,duration=120)@luck=-1

/ blackout
group(type=sound,ID=mob.zombie.remedy,pitch=2.0;type=effect,ID=blindness,amplifier=4,duration=30)@luck=-1

/ levitation
group(type=command,ID="tellraw @a[r=64] "#pName learned to fly! Now the tricky part is landing..."";type=effect,ID=potioncore:levitate,duration=20,amplifier=3)@luck=-1

/ drowning
group(type=command,ID="tellraw @p[name=#pName] "Quick! Find water!"";type=effect,ID=potioncore:drown,duration=60)@luck=-1

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

/ ~~~ Falling Blocks ~~~

/ 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,delay=2;type=sound,ID=random.fizz,delay=2)@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,delay=2;type=sound,ID=item.fireCharge.use,delay=2)@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,delay=2)@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,delay=2;type=sound,ID=dig.grass,delay=2)@luck=0

/ ~~~ Traps ~~~

group(type=structure,ID=lava_trap,pos=#pPos,rotation=#pDirect;type=block,ID=air,pos=#pPos,posOffsetY=3;type=entity,ID=lootplusplus.ThrownItem,pos=#pPos,amount=40,posOffsetY=#rand(20,400),posOffsetX=#rand(0.3,0.7),posOffsetZ=#rand(0.3,0.7),NBTTag=(ItemThrown=lootplusplus:astral.throwing_star))@luck=-1
group(type=structure,ID=lava_trap,pos=#pPos,rotation=#pDirect;type=block,ID=air,pos=#pPos,posOffsetY=3;type=entity,ID=lootplusplus.ThrownItem,pos=#pPos,amount=40,posOffsetY=#rand(20,400),posOffsetX=#rand(0.3,0.7),posOffsetZ=#rand(0.3,0.7),NBTTag=(ItemThrown=lootplusplus:astral.throwing_star_fire))@luck=-1
group(type=structure,ID=lava_trap,pos=#pPos,rotation=#pDirect;type=block,ID=air,pos=#pPos,posOffsetY=3;type=entity,ID=lootplusplus.ThrownItem,pos=#pPos,amount=40,posOffsetY=#rand(20,400),posOffsetX=#rand(0.3,0.7),posOffsetZ=#rand(0.3,0.7),NBTTag=(ItemThrown=lootplusplus:astral.throwing_star_poison))@luck=-1
group(type=structure,ID=lava_trap,pos=#pPos,rotation=#pDirect;type=block,ID=air,pos=#pPos,posOffsetY=3;type=entity,ID=lootplusplus.ThrownItem,pos=#pPos,amount=40,posOffsetY=#rand(20,400),posOffsetX=#rand(0.3,0.7),posOffsetZ=#rand(0.3,0.7),NBTTag=(ItemThrown=lootplusplus:astral.throwing_star_dark))@luck=-2
type=structure,ID=pit_trap,pos=#pPos@luck=-2@chance=0.5

group(type=structure,ID=lava_trap,pos=#pPos,rotation=#pDirect;type=block,ID=air,pos=#pPos,posOffsetY=3;type=fill,ID=air,pos=#pPos,size=(1,20,1);type=fill,ID=#randList(sand,gravel,lootplusplus:astral.quicksand),pos=#pPos,size=(1,20,1),posOffsetY=20)@luck=-1

type=structure,ID=astral_silverfish_trap,pos=#pPos,posOffsetZ=-1@luck=0

group(type=command,ID="gamerule commandBlockOutput false";type=structure,ID=astral_quicktile_trap;type=command,posOffset=(0.5,1,0.5),ID="tp @p[name=#pName] #bPosX #bPosY #bPosZ";type=command,ID="fill ~-3 ~-3 ~-3 ~2 ~1 ~2 lootplusplus:astral.quicksand 0 replace gravel";type=command,ID="fill ~-3 ~-3 ~-3 ~2 ~1 ~2 lootplusplus:astral.quicktiles 0 replace packed_ice")@luck=-2

/ ~~~ Kits ~~~

type=structure,ID=astral_kit_decorative@luck=0
type=structure,ID=astral_kit_end@luck=2
type=structure,ID=astral_kit_greenhouse@luck=-1
type=structure,ID=astral_kit_love@luck=0
type=structure,ID=astral_kit_lucky@luck=2@chance=0.5
type=structure,ID=astral_kit_rail@luck=0
type=structure,ID=astral_kit_rainbow@luck=1
type=structure,ID=astral_kit_table@luck=2
type=structure,ID=astral_kit_recipe@luck=1
type=structure,ID=astral_kit_potion@luck=2
type=structure,ID=astral_kit_horse@luck=1

/ ~~~ Wells ~~~

group(type=structure,ID=astral_well;type=message,ID="A wishing well? Maybe you should throw in an astral coin...";type=command,ID="/gamerule commandBlockOutput false";type=command,ID="fill ~-1 ~-1 ~-1 ~1 ~3 ~1 lootplusplus:astral.starry 0 replace obsidian";type=command,ID="fill ~-1 ~-1 ~-1 ~1 ~3 ~1 lootplusplus:astral.starry_fence 0 replace nether_brick_fence";type=command,ID="/give #pName lootplusplus:astral.astral_coin";type=block,ID=lucky:lucky_block_astral,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);ID=redstone,amount=#rand(32,64),posY='#'bPosY+10,posOffset='#'circleOffset(2))"]))@luck=2
group(type=structure,ID=astral_well;type=message,ID="A wishing well? Maybe you should throw in an astral coin...";type=command,ID="/gamerule commandBlockOutput false";type=command,ID="fill ~-1 ~-1 ~-1 ~1 ~3 ~1 lootplusplus:astral.starry 0 replace obsidian";type=command,ID="fill ~-1 ~-1 ~-1 ~1 ~3 ~1 lootplusplus:astral.starry_fence 0 replace nether_brick_fence";type=command,ID="/give #pName lootplusplus:astral.astral_coin";type=block,ID=lucky:lucky_block_astral,posY=#bPosY-3,NBTTag=(Drops=["group(type=message,ID=\"$3Your ender wish came true!\";type=block,ID=air,posY='#'bPosY+3;type=block,ID=beacon,posY='#'bPosY+2;ID=ender_pearl,amount=#rand(8,12),posY='#'bPosY+10,posOffset='#'circleOffset(2);ID=ender_eye,amount=#rand(8,12),posY='#'bPosY+10,posOffset='#'circleOffset(2);ID=end_portal_frame,amount=#rand(6,9),posY='#'bPosY+10,posOffset='#'circleOffset(2);ID=spawn_egg,damage=58,amount=#rand(10,20),posY='#'bPosY+10,posOffset='#'circleOffset(2);ID=spawn_egg,damage=67,amount=#rand(10,20),posY='#'bPosY+10,posOffset='#'circleOffset(2);ID=dragon_egg,posY='#'bPosY+10,posOffset='#'circleOffset(2))"]))@luck=2
group(type=structure,ID=astral_well;type=message,ID="A wishing well? Maybe you should throw in an astral coin...";type=command,ID="/gamerule commandBlockOutput false";type=command,ID="fill ~-1 ~-1 ~-1 ~1 ~3 ~1 lootplusplus:astral.starry 0 replace obsidian";type=command,ID="fill ~-1 ~-1 ~-1 ~1 ~3 ~1 lootplusplus:astral.starry_fence 0 replace nether_brick_fence";type=command,ID="/give #pName lootplusplus:astral.astral_coin";type=block,ID=lucky:lucky_block_astral,posY=#bPosY-3,NBTTag=(Drops=["group(type=message,ID=\"$lYou have wished upon a shooting star!\";type=block,ID=air,posY='#'bPosY+3;type=block,ID=beacon,posY='#'bPosY+2;type=fill,posOffsetY=3,ID=air,size=(1,27,1);type=entity,ID=Item,posY='#'bPosY+30),NBTTag=(CustomName="Shooting Star",CustomNameVisible=true,Item=(id=nether_star,Count=1,tag=(display=(Name="$rShooting Star"))),Riding=(id=lootplusplus.ThrownItem,ItemThrown=lootplusplus:astral.throwing_star)))"]))@luck=2
group(type=structure,ID=astral_well;type=message,ID="A wishing well? Maybe you should throw in an astral coin...";type=command,ID="/gamerule commandBlockOutput false";type=command,ID="fill ~-1 ~-1 ~-1 ~1 ~3 ~1 lootplusplus:astral.starry 0 replace obsidian";type=command,ID="fill ~-1 ~-1 ~-1 ~1 ~3 ~1 lootplusplus:astral.starry_fence 0 replace nether_brick_fence";type=command,ID="/give #pName lootplusplus:astral.astral_coin";type=block,ID=lucky:lucky_block_astral,posY=#bPosY-3,NBTTag=(Drops=["group(type=message,ID=\"$eYour star wish came true!\";type=block,ID=air,posY='#'bPosY+3;type=block,ID=beacon,posY='#'bPosY+2;type=entity,ID=lootplusplus.ThrownItem,posOffset=#circleOffset(0,8),amount=3,posOffsetY=#rand(1,3),NBTTag=(ItemThrown=lootplusplus:astral.throwing_star);ID=lootplusplus:astral.throwing_star,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(2);ID=lootplusplus:astral.star_cookie,amount=#rand(2,4),posY='#'bPosY+10,posOffset='#'circleOffset(2),NBTTag=(display=(Lore=["$rGives a random good potion effect when eaten."])))"]))@luck=1

group(type=structure,ID=astral_well;type=message,ID="A wishing well? Maybe you should throw in an astral coin...";type=command,ID="/gamerule commandBlockOutput false";type=command,ID="fill ~-1 ~-1 ~-1 ~1 ~3 ~1 lootplusplus:astral.starry 0 replace obsidian";type=command,ID="fill ~-1 ~-1 ~-1 ~1 ~3 ~1 lootplusplus:astral.starry_fence 0 replace nether_brick_fence";type=command,ID="/give #pName lootplusplus:astral.astral_coin";type=block,ID=lucky:lucky_block_astral,posY=#bPosY-3,NBTTag=(Drops=["group(type=message,ID=\"$eYour cute baby bunny wish came true!\";type=block,ID=air,posY='#'bPosY+3;type=block,ID=beacon,posY='#'bPosY+2;type=entity,ID=Rabbit,amount=#rand(8,12),posOffset='#'circleOffset(3),NBTTag=(Age=-1000000,RabbitType=#randList(0,1,2,3,4,5,99)))"]))@luck=-1
group(type=structure,ID=astral_well;type=message,ID="A wishing well? Maybe you should throw in an astral coin...";type=command,ID="/gamerule commandBlockOutput false";type=command,ID="fill ~-1 ~-1 ~-1 ~1 ~3 ~1 lootplusplus:astral.starry 0 replace obsidian";type=command,ID="fill ~-1 ~-1 ~-1 ~1 ~3 ~1 lootplusplus:astral.starry_fence 0 replace nether_brick_fence";type=command,ID="/give #pName lootplusplus:astral.astral_coin";type=block,ID=lucky:lucky_block_astral,posY=#bPosY-3,NBTTag=(Drops=["group(type=message,ID=\"$7Your flying wish came true! Or did it...\";type=block,ID=air,posY='#'bPosY+3;type=block,ID=beacon,posY='#'bPosY+2;type=effect,ID=potioncore:levitate,amplifier=1,duration=30)"]))@luck=0

group(type=structure,ID=astral_well;type=message,ID="A wishing well? Maybe you should throw in an astral coin...";type=command,ID="/gamerule commandBlockOutput false";type=command,ID="fill ~-1 ~-1 ~-1 ~1 ~3 ~1 lootplusplus:astral.starry 0 replace obsidian";type=command,ID="fill ~-1 ~-1 ~-1 ~1 ~3 ~1 lootplusplus:astral.starry_fence 0 replace nether_brick_fence";type=command,ID="/give #pName lootplusplus:astral.astral_coin";type=block,ID=lucky:lucky_block_astral,posY=#bPosY-3,NBTTag=(Drops=["group(type=message,ID=\"$6You have wished the stars to fall from the sky!\";type=block,ID=air,posY='#'bPosY+3;type=block,ID=beacon,posY='#'bPosY+2;type=entity,ID=lootplusplus.ThrownItem,posOffset=#circleOffset(0,8),amount=50,posOffsetY=#rand(5,100),NBTTag=(ItemThrown=lootplusplus:astral.throwing_#randList(star,star,star,star,star_fire,star_ice,star_poison,star_dark)))"]))@luck=-1
group(type=structure,ID=astral_well;type=message,ID="A wishing well? Maybe you should throw in an astral coin...";type=command,ID="/gamerule commandBlockOutput false";type=command,ID="fill ~-1 ~-1 ~-1 ~1 ~3 ~1 lootplusplus:astral.starry 0 replace obsidian";type=command,ID="fill ~-1 ~-1 ~-1 ~1 ~3 ~1 lootplusplus:astral.starry_fence 0 replace nether_brick_fence";type=command,ID="/give #pName lootplusplus:astral.astral_coin";type=block,ID=lucky:lucky_block_astral,posY=#bPosY-3,NBTTag=(Drops=["group(type=message,ID=\"$cYou have wished the stars to fall from the sky!\";type=block,ID=air,posY='#'bPosY+3;type=block,ID=beacon,posY='#'bPosY+2;type=entity,ID=lootplusplus.ThrownItem,posOffset=#circleOffset(0,8),amount=50,posOffsetY=#rand(5,100),NBTTag=(ItemThrown=lootplusplus:astral.throwing_star_explode))"]))@luck=-2
group(type=structure,ID=astral_well;type=message,ID="A wishing well? Maybe you should throw in an astral coin...";type=command,ID="/gamerule commandBlockOutput false";type=command,ID="fill ~-1 ~-1 ~-1 ~1 ~3 ~1 lootplusplus:astral.starry 0 replace obsidian";type=command,ID="fill ~-1 ~-1 ~-1 ~1 ~3 ~1 lootplusplus:astral.starry_fence 0 replace nether_brick_fence";type=command,ID="/give #pName lootplusplus:astral.astral_coin";type=block,ID=lucky:lucky_block_astral,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=sound,ID=game.tnt.primed;type=entity,ID=PrimedTnt,NBTTag=(Fuse=50b,Motion='#'randLaunchMotion),posY='#'bPosY+7,amount=20)"]))@luck=-2


/ ~~~ Giant Blocks ~~~

group(type=structure,ID=giant_astral_lucky_block_good,rotation=#pDirect;type=command,ID="/gamerule commandBlockOutput false";type=command,ID="/fill ~-8 ~ ~-8 ~8 ~8 ~8 lootplusplus:astral.starry 0 replace obsidian";type=command,ID="/fill ~-8 ~ ~-8 ~8 ~8 ~8 lootplusplus:astral.fake_gold 0 replace stained_hardened_clay")@luck=2
group(type=structure,ID=giant_astral_lucky_block_neutral,rotation=#pDirect;type=command,ID="/gamerule commandBlockOutput false";type=command,ID="/fill ~-8 ~ ~-8 ~8 ~8 ~8 lootplusplus:astral.starry 0 replace obsidian";type=command,ID="/fill ~-8 ~ ~-8 ~8 ~8 ~8 lootplusplus:astral.fake_gold 0 replace stained_hardened_clay")@luck=0
group(type=structure,ID=giant_astral_lucky_block_bad,rotation=#pDirect;type=command,ID="/gamerule commandBlockOutput false";type=command,ID="/fill ~-8 ~ ~-8 ~8 ~8 ~8 lootplusplus:astral.starry 0 replace obsidian";type=command,ID="/fill ~-8 ~ ~-8 ~8 ~8 ~8 lootplusplus:astral.fake_gold 0 replace stained_hardened_clay")@luck=-2

/ ~~~ Beacons ~~~
group(type=structure,ID=astral_beacon_fire;type=block,ID=beacon,NBTTag=(Primary=12))@chance=0.5@luck=2
group(type=structure,ID=astral_beacon_speed;type=block,ID=beacon,NBTTag=(Primary=1))@chance=0.5@luck=2
group(type=structure,ID=astral_beacon_health;type=block,ID=beacon,NBTTag=(Primary=21))@chance=0.5@luck=2
group(type=structure,ID=astral_beacon_heal;type=block,ID=beacon,NBTTag=(Primary=10))@chance=0.5@luck=2
group(type=structure,ID=astral_beacon_strength;type=block,ID=beacon,NBTTag=(Primary=5))@chance=0.5@luck=2

group(type=structure,ID=astral_beacon_confuse;type=block,ID=beacon,NBTTag=(Primary=9))@chance=0.5@luck=1
group(type=structure,ID=astral_beacon_wither;type=block,ID=beacon,NBTTag=(Primary=20))@chance=0.5@luck=0
group(type=structure,ID=astral_beacon_poison;type=block,ID=beacon,NBTTag=(Primary=19))@chance=0.5@luck=0
group(type=structure,ID=astral_beacon_blind;type=block,ID=beacon,NBTTag=(Primary=15))@chance=0.5@luck=0

/ ~~~ Temples ~~~
/ lucky
group(type=structure,ID=astral_lucky_fort,pos=#pPos;type=command,pos=#pPos,ID="fill ~-2 ~-1 ~-2 ~2 ~1 ~2 lootplusplus:astral.starry 0 replace obsidian")@luck=2
group(type=structure,ID=astral_lucky_temple,pos=#pPos;type=command,pos=#pPos,ID="fill ~-3 ~-1 ~-3 ~3 ~3 ~3 lootplusplus:astral.starry 0 replace obsidian")@luck=2@chance=0.5

/ neutral
group(type=structure,ID=astral_neutral_fort,pos=#pPos;type=command,pos=#pPos,ID="fill ~-2 ~-1 ~-2 ~2 ~1 ~2 lootplusplus:astral.starry 0 replace obsidian")@luck=1
group(type=structure,ID=astral_neutral_temple,pos=#pPos;type=command,pos=#pPos,ID="fill ~-3 ~-1 ~-3 ~3 ~3 ~3 lootplusplus:astral.starry 0 replace obsidian")@luck=1@chance=0.5

/ unlucky
group(type=structure,ID=astral_unlucky_fort,pos=#pPos;type=command,pos=#pPos,ID="fill ~-2 ~-1 ~-2 ~2 ~1 ~2 lootplusplus:astral.starry 0 replace obsidian")@luck=-1
group(type=structure,ID=astral_unlucky_temple,pos=#pPos;type=command,pos=#pPos,ID="fill ~-3 ~-1 ~-3 ~3 ~3 ~3 lootplusplus:astral.starry 0 replace obsidian")@luck=-1@chance=0.5

/ ~~~ Other ~~~

/ meteor inbound
group(type=command,ID="gamerule commandBlockOutput false";type=command,ID="title @p times 20 60 20";type=command,ID="title @a[r=16] subtitle {\"text\":\"Meteor Inbound\",color:\"red\"}";type=command,ID="title @a[r=16] title {\"text\":\"WARNING\",color:\"red\"}";type=explosion,damage=10,fire=true,delay=4;type=structure,ID=astral_meteor,delay=5,posOffsetY=-3;type=command,ID="fill ~-2 ~ ~-2 ~2 ~4 ~2 lootplusplus:astral.meteor 0 replace obsidian",delay=5,posOffsetY=-3;type=command,ID="fill ~-2 ~ ~-2 ~2 ~4 ~2 lootplusplus:astral.meteor 4 replace nether_brick",delay=5,posOffsetY=-3;type=command,ID="fill ~-2 ~ ~-2 ~2 ~4 ~2 lootplusplus:astral.meteor 8 replace clay",delay=5,posOffsetY=-3;type=command,ID="fill ~-2 ~ ~-2 ~2 ~4 ~2 lootplusplus:astral.meteor 0 replace stained_hardened_clay",delay=5,posOffsetY=-3)@luck=-2

/ bouncy castle
group(type=command,ID="/gamerule commandBlockOutput false";type=sound,ID=mob.slime.big,pitch=0.6;type=structure,ID=bouncing_castle,pos=#pPos,rotation=#pDirect)

/ nether portal
group(type=command,ID="/gamerule commandBlockOutput false";type=structure,ID=astral_nether_portal;type=command,ID="tp @e[r=3] ~ ~2 ~";type=entity,ID=PigZombie,amount=#rand(6,10),posOffset=#circleOffset(3,6);type=entity,ID=Blaze,amount=#rand(6,10),posOffset=#circleOffset(3,6);type=entity,ID=Skeleton,amount=#rand(3,5),posOffset=#circleOffset(3,6),NBTTag=(SkeletonType=1,Equipment=[(id=stone_sword,Count=1)]))@luck=-1

/ end shrine
group(type=command,ID="/gamerule commandBlockOutput false";type=command,ID="tp @e[r=3] ~ ~2 ~";type=command,ID="tp @e[r=1] ~2 ~ ~";type=structure,ID=astral_end_shrine;type=entity,ID=Enderman,amount=#rand(4,6),posOffset=#circleOffset(2,4))@luck=0

/ ============= DUNGEONS AND CUSTOM BLOCKS ==============

/ Ice Castle

/ Rainbow Clouds

/ Skelatron's Starship
type=entity,ID=Item,NBTTag=(CustomName="$eSkelatron's Starship",CustomNameVisible=true,Item=(Count=1,id=lucky:lucky_block_astral,tag=(Luck=100,display=(Name="$e$lSkelatron's Starship",Lore=["$rUse me in an open area below y=200!"]),Drops=["group(type=fill,posOffset=(-1,0,-1),ID=air,size=(3,25,3);type=fill,posOffset=(-1,-1,-1),ID=slime,size=(3,1,3);type=block,ID=lootplusplus:astral.launch_pad;type=command,ID="title @p times 20 60 20";type=command,ID="title @a[r=64] title {"text":"Skelatron's Starship","color":"yellow"}";type=structure,ID=astral_starship_base,posOffset=(-18,25,0);type=structure,ID=astral_starship_room_bottom,posOffset=(-8,30,0);type=structure,ID=astral_starship_room_bottom,posOffset=(-16,30,0);type=structure,ID=astral_starship_room_bottom,posOffset=(-24,30,0);type=structure,ID=astral_starship_room_top,posOffset=(-30,35,0);type=structure,ID=astral_starship_room_top,posOffset=(-22,35,0);type=structure,ID=astral_starship_room_top,posOffset=(-14,35,0);type=structure,ID=astral_starship_room_skelatron,posOffset=(-6,35,0))"])))@luck=2

/ Cloud Dwelling
type=entity,ID=Item,NBTTag=(CustomName="$lCloud Dwelling",CustomNameVisible=true,Item=(Count=1,id=lucky:lucky_block_astral,tag=(Luck=100,display=(Name="$r$lCloud Dwelling",Lore=["$rUse me in an open area below y=220!"]),Drops=["group(type=fill,posOffset=(-1,0,-1),ID=air,size=(3,35,3);type=fill,posOffset=(-1,-1,-1),ID=slime,size=(3,1,3);type=block,ID=lootplusplus:astral.launch_pad;type=structure,ID=astral_cloud_dweller,posOffset=(0,23,7);type=command,ID=\"fill ~-6 ~23 ~0 ~5 ~31 ~12 lootplusplus:astral.cloud 0 replace snow\";type=command,ID=\"fill ~-6 ~23 ~0 ~5 ~31 ~12 lootplusplus:astral.fluffy_cloud 0 replace carpet\")"])))@luck=1

/ Redstone Rocket
type=entity,ID=Item,NBTTag=(CustomName="$eRedstone Rocket",CustomNameVisible=true,Item=(Count=1,id=lucky:lucky_block_astral,tag=(Luck=100,display=(Name="$e$lRedstone Rocket",Lore=["$rTake a rocket to space!","$rUse me in an open area!"]),Drops=["group(type=structure,ID=astral_redstone_rocket;type=block,ID=redstone_block,posOffset=(-1,2,1))"])))@luck=1

/ Mushroom House
type=entity,ID=Item,NBTTag=(CustomName="$eMushroom House",CustomNameVisible=true,Item=(Count=1,id=lucky:lucky_block_astral,tag=(Luck=100,display=(Name="$e$lMushroom House",Lore=["$rUse me in an open area!"]),Drops=["type=structure,ID=astral_mushroom_house"])))@luck=1

/ ================== GAMES ===================

/ find the nether star!
group(type=command,ID="gamerule commandBlockOutput false";ID=nether_star;ID=quartz,amount=200,NBTTag=(random=#rand(1,1000000),ench=[],display=(Name="$rUnstackable Quartz"));type=command,ID="entitydata @e[type=Item,r=2] {Age:5600}";type=command,ID="title @p times 1 20 5";type=command,ID="title @a[r=16] subtitle \"Find the Nether Star!\"";type=command,ID="title @a[r=16] title 20";type=command,ID="title @a[r=16] title 19",delay=2;type=command,ID="title @a[r=16] title 18",delay=4;type=command,ID="title @a[r=16] title 17",delay=6;type=command,ID="title @a[r=16] title 16",delay=8;type=command,ID="title @a[r=16] title 15",delay=10;type=command,ID="title @a[r=16] title 14",delay=12;type=command,ID="title @a[r=16] title 13",delay=14;type=command,ID="title @a[r=16] title 12",delay=16;type=command,ID="title @a[r=16] title 11",delay=18;type=command,ID="title @a[r=16] title 10",delay=20;type=command,ID="title @a[r=16] title 9",delay=22;type=command,ID="title @a[r=16] title 8",delay=24;type=command,ID="title @a[r=16] title 7",delay=26;type=command,ID="title @a[r=16] title 6",delay=28;type=command,ID="title @a[r=16] title 5",delay=30;type=command,ID="title @a[r=16] title 4",delay=32;type=command,ID="title @a[r=16] title 3",delay=34;type=command,ID="title @a[r=16] title 2",delay=36;type=command,ID="title @a[r=16] title 1",delay=38;type=command,ID="title @a[r=16] subtitle \"\"",delay=40;type=command,ID="title @a[r=16] title \"Time's Up!\"",delay=40;type=command,ID="playsound random.levelup @a[r=64] ~ ~ ~ 4 2.0",delay=40)@luck=2

/ ghast hunt!
group(type=command,ID="gamerule commandBlockOutput false";type=command,ID="give @p[name=#pName] bow 1 0 {display:{Name:"$lGhast Shooter"}}";type=command,ID="give @p[name=#pName] arrow 25";type=command,ID="title @p times 1 20 5";type=command,ID="lppcondition title @a[r=64] subtitle ["",{"text":"Ready...","color":"red"}] _if_true_ title @a[r=64] title "Ghast Hunt!""; \
type=command,ID="lppcondition title @a[r=64] subtitle ["",{"text":"Set...","color":"yellow"}] _if_true_ title @a[r=64] title "Ghast Hunt!"",delay=2; \
group(type=command,ID="lppcondition title @a[r=64] subtitle ["",{"text":"GO!!!","color":"green"}] _if_true_ title @a[r=64] title "Ghast Hunt!"";type=effect,ID=potioncore:archery,amplifier=1,duration=21;type=entity,ID=Ghast,amount=25,posOffset=#circleOffset(0,20),posOffsetY=#rand(10,30),NBTTag=(CustomName="Hunted",Attributes=[(Name=generic.followRange,Base=0.0f)]);type=command,ID="scoreboard objectives add astralGhastHunt stat.killEntity.Ghast";type=command,ID="scoreboard players set @a astralGhastHunt 0"),delay=4; \
type=command,ID="lppcondition title @a[r=64] subtitle ["",{"text":"Ghast Hunt! "},{"score":{"name":"@p[name=#pName]","objective":"astralGhastHunt"}},{"text":"/10"}] _if_true_ title @a[r=64] title 20",delay=6; \
type=command,ID="lppcondition title @a[r=64] subtitle ["",{"text":"Ghast Hunt! "},{"score":{"name":"@p[name=#pName]","objective":"astralGhastHunt"}},{"text":"/10"}] _if_true_ title @a[r=64] title 19",delay=8; \
type=command,ID="lppcondition title @a[r=64] subtitle ["",{"text":"Ghast Hunt! "},{"score":{"name":"@p[name=#pName]","objective":"astralGhastHunt"}},{"text":"/10"}] _if_true_ title @a[r=64] title 18",delay=10; \
type=command,ID="lppcondition title @a[r=64] subtitle ["",{"text":"Ghast Hunt! "},{"score":{"name":"@p[name=#pName]","objective":"astralGhastHunt"}},{"text":"/10"}] _if_true_ title @a[r=64] title 17",delay=12; \
type=command,ID="lppcondition title @a[r=64] subtitle ["",{"text":"Ghast Hunt! "},{"score":{"name":"@p[name=#pName]","objective":"astralGhastHunt"}},{"text":"/10"}] _if_true_ title @a[r=64] title 16",delay=14; \
type=command,ID="lppcondition title @a[r=64] subtitle ["",{"text":"Ghast Hunt! "},{"score":{"name":"@p[name=#pName]","objective":"astralGhastHunt"}},{"text":"/10"}] _if_true_ title @a[r=64] title 15",delay=16; \
type=command,ID="lppcondition title @a[r=64] subtitle ["",{"text":"Ghast Hunt! "},{"score":{"name":"@p[name=#pName]","objective":"astralGhastHunt"}},{"text":"/10"}] _if_true_ title @a[r=64] title 14",delay=18; \
type=command,ID="lppcondition title @a[r=64] subtitle ["",{"text":"Ghast Hunt! "},{"score":{"name":"@p[name=#pName]","objective":"astralGhastHunt"}},{"text":"/10"}] _if_true_ title @a[r=64] title 13",delay=20; \
type=command,ID="lppcondition title @a[r=64] subtitle ["",{"text":"Ghast Hunt! "},{"score":{"name":"@p[name=#pName]","objective":"astralGhastHunt"}},{"text":"/10"}] _if_true_ title @a[r=64] title 12",delay=22; \
type=command,ID="lppcondition title @a[r=64] subtitle ["",{"text":"Ghast Hunt! "},{"score":{"name":"@p[name=#pName]","objective":"astralGhastHunt"}},{"text":"/10"}] _if_true_ title @a[r=64] title 11",delay=24; \
type=command,ID="lppcondition title @a[r=64] subtitle ["",{"text":"Ghast Hunt! "},{"score":{"name":"@p[name=#pName]","objective":"astralGhastHunt"}},{"text":"/10"}] _if_true_ title @a[r=64] title 10",delay=26; \
type=command,ID="lppcondition title @a[r=64] subtitle ["",{"text":"Ghast Hunt! "},{"score":{"name":"@p[name=#pName]","objective":"astralGhastHunt"}},{"text":"/10"}] _if_true_ title @a[r=64] title 9",delay=28; \
type=command,ID="lppcondition title @a[r=64] subtitle ["",{"text":"Ghast Hunt! "},{"score":{"name":"@p[name=#pName]","objective":"astralGhastHunt"}},{"text":"/10"}] _if_true_ title @a[r=64] title 8",delay=30; \
type=command,ID="lppcondition title @a[r=64] subtitle ["",{"text":"Ghast Hunt! "},{"score":{"name":"@p[name=#pName]","objective":"astralGhastHunt"}},{"text":"/10"}] _if_true_ title @a[r=64] title 7",delay=32; \
type=command,ID="lppcondition title @a[r=64] subtitle ["",{"text":"Ghast Hunt! "},{"score":{"name":"@p[name=#pName]","objective":"astralGhastHunt"}},{"text":"/10"}] _if_true_ title @a[r=64] title 6",delay=34; \
type=command,ID="lppcondition title @a[r=64] subtitle ["",{"text":"Ghast Hunt! "},{"score":{"name":"@p[name=#pName]","objective":"astralGhastHunt"}},{"text":"/10"}] _if_true_ title @a[r=64] title 5",delay=36; \
type=command,ID="lppcondition title @a[r=64] subtitle ["",{"text":"Ghast Hunt! "},{"score":{"name":"@p[name=#pName]","objective":"astralGhastHunt"}},{"text":"/10"}] _if_true_ title @a[r=64] title 4",delay=38; \
type=command,ID="lppcondition title @a[r=64] subtitle ["",{"text":"Ghast Hunt! "},{"score":{"name":"@p[name=#pName]","objective":"astralGhastHunt"}},{"text":"/10"}] _if_true_ title @a[r=64] title 3",delay=40; \
type=command,ID="lppcondition title @a[r=64] subtitle ["",{"text":"Ghast Hunt! "},{"score":{"name":"@p[name=#pName]","objective":"astralGhastHunt"}},{"text":"/10"}] _if_true_ title @a[r=64] title 2",delay=42; \
type=command,ID="lppcondition title @a[r=64] subtitle ["",{"text":"Ghast Hunt! "},{"score":{"name":"@p[name=#pName]","objective":"astralGhastHunt"}},{"text":"/10"}] _if_true_ title @a[r=64] title 1",delay=44; \
group(type=command,ID="tp @e[type=Ghast,name=Hunted] ~ ~-1000 ~";type=command,ID="title @a[r=64] subtitle \"\"",delay=40;type=command,ID="title @a[r=64] title \"Time's Up!\"";type=command,ID="playsound random.levelup @a[r=64] ~ ~ ~ 4 2.0";type=command,ID="lppcondition testfor @a[score_astralGhastHunt_min=1] _if_true_ lppcondition give @a[score_astralGhastHunt_min=1] emerald _if_true_ tellraw @a[r=64] ["",{"selector":"@a[score_astralGhastHunt_min=1]", "color":"aqua"},{"text":" got an emerald for killing 1 ghast!"}]";type=command,ID="lppcondition testfor @a[score_astralGhastHunt_min=5] _if_true_ lppcondition give @a[score_astralGhastHunt_min=5] lootplusplus:astral.throwing_star_dark 16 _if_true_ tellraw @a[r=64] ["",{"selector":"@a[score_astralGhastHunt_min=5]", "color":"aqua"},{"text":" got some dark throwing stars for killing 5 ghasts!"}]";type=command,ID="lppcondition testfor @a[score_astralGhastHunt_min=8] _if_true_ lppcondition give @a[score_astralGhastHunt_min=8] diamond 15 _if_true_ tellraw @a[r=64] ["",{"selector":"@a[score_astralGhastHunt_min=8]", "color":"aqua"},{"text":" got 15 diamonds for killing 8 ghasts!"}]";type=command,ID="lppcondition testfor @a[score_astralGhastHunt_min=10] _if_true_ lppcondition give @a[score_astralGhastHunt_min=10] nether_star _if_true_ tellraw @a[r=64] ["",{"text":"Awesome! "},{"selector":"@a[score_astralGhastHunt_min=10]", "color":"aqua"},{"text":" got a nether star for killing 10 ghasts!"}]"),delay=46)@luck=2

/ find the treasures!
group(type=command,ID="gamerule commandBlockOutput false";type=structure,ID=astral_obsidian_maze;type=command,ID="tp @a[r=16] #eval(#bExactPosX-1) #eval(#bPosY+1) #eval(#bExactPosZ-1)";type=command,ID="tp @p[name=#pName] #eval(#bExactPosX-1) #eval(#bPosY+1) #eval(#bExactPosZ-1)";type=command,ID="title @p times 1 20 5"; \
type=command,ID="lppcondition title @a[r=64] subtitle ["",{"text":"Ready...","color":"red"}] _if_true_ title @a[r=64] title "Treasure Maze!"",delay=4; \
type=command,ID="lppcondition title @a[r=64] subtitle ["",{"text":"Set...","color":"yellow"}] _if_true_ title @a[r=64] title "Treasure Maze!"",delay=6; \
group(type=command,ID="lppcondition title @a[r=64] subtitle ["",{"text":"GO!!!","color":"green"}] _if_true_ title @a[r=64] title "Treasure Maze!"";type=fill,posOffset=(-3,2,-2),ID=air,size=(1,2,1)),delay=8; \
type=command,ID="lppcondition title @a[r=64] subtitle "Find the treasures!" _if_true_ title @a[r=64] title 20",delay=10; \
type=command,ID="lppcondition title @a[r=64] subtitle "Find the treasures!" _if_true_ title @a[r=64] title 19",delay=12; \
type=command,ID="lppcondition title @a[r=64] subtitle "Find the treasures!" _if_true_ title @a[r=64] title 18",delay=14; \
type=command,ID="lppcondition title @a[r=64] subtitle "Find the treasures!" _if_true_ title @a[r=64] title 17",delay=16; \
type=command,ID="lppcondition title @a[r=64] subtitle "Find the treasures!" _if_true_ title @a[r=64] title 16",delay=18; \
type=command,ID="lppcondition title @a[r=64] subtitle "Find the treasures!" _if_true_ title @a[r=64] title 15",delay=20; \
type=command,ID="lppcondition title @a[r=64] subtitle "Find the treasures!" _if_true_ title @a[r=64] title 14",delay=22; \
type=command,ID="lppcondition title @a[r=64] subtitle "Find the treasures!" _if_true_ title @a[r=64] title 13",delay=24; \
type=command,ID="lppcondition title @a[r=64] subtitle "Find the treasures!" _if_true_ title @a[r=64] title 12",delay=26; \
type=command,ID="lppcondition title @a[r=64] subtitle "Find the treasures!" _if_true_ title @a[r=64] title 11",delay=28; \
type=command,ID="lppcondition title @a[r=64] subtitle "Find the treasures!" _if_true_ title @a[r=64] title 10",delay=30; \
type=command,ID="lppcondition title @a[r=64] subtitle "Find the treasures!" _if_true_ title @a[r=64] title 9",delay=32; \
type=command,ID="lppcondition title @a[r=64] subtitle "Find the treasures!" _if_true_ title @a[r=64] title 8",delay=34; \
type=command,ID="lppcondition title @a[r=64] subtitle "Find the treasures!" _if_true_ title @a[r=64] title 7",delay=36; \
type=command,ID="lppcondition title @a[r=64] subtitle "Find the treasures!" _if_true_ title @a[r=64] title 6",delay=38; \
type=command,ID="lppcondition title @a[r=64] subtitle "Find the treasures!" _if_true_ title @a[r=64] title 5",delay=40; \
type=command,ID="lppcondition title @a[r=64] subtitle "Find the treasures!" _if_true_ title @a[r=64] title 4",delay=42; \
type=command,ID="lppcondition title @a[r=64] subtitle "Find the treasures!" _if_true_ title @a[r=64] title 3",delay=44; \
type=command,ID="lppcondition title @a[r=64] subtitle "Find the treasures!" _if_true_ title @a[r=64] title 2",delay=46; \
type=command,ID="lppcondition title @a[r=64] subtitle "Find the treasures!" _if_true_ title @a[r=64] title 1",delay=48; \
group(type=command,ID="fill ~-7 ~1 ~-7 ~7 ~1 ~7 air 0 replace carpet";type=command,ID="title @a[r=64] subtitle \"\"";type=command,ID="title @a[r=64] title \"Time's Up!\"";type=command,ID="playsound random.levelup @a[r=64] ~ ~ ~ 4 2.0";type=fill,posOffset=(-7,0,-7),size=(15,6,15),ID=air;type=fill,ID=obsidian,size=(3,1,3),posOffset=(-1,0,-1);type=command,ID="tp @p[name=#pName] #bExactPosX #eval(#bPosY+1) #bExactPosZ"),delay=50)@luck=2