ID=gold_ingot,amount=#rand(8,16)@luck=1
ID=stick@luck=-1
ID=saddle,amount=2@luck=0
ID=cake@luck=0
ID=nether_star@luck=2

ID=tnt,amount=16@luck=1
ID=obsidian,amount=14@luck=1
ID=enchanting_table@luck=2
ID=ender_chest,amount=2@luck=0
type=structure,ID=lava_trap,pos=#pPos,rotation=#pDirect@luck=-2
type=structure,ID=water_trap,pos=#pPos@luck=-2  
type=structure,ID=pit_trap,pos=#pPos@luck=-2
type=structure,ID=cobweb_trap@luck=-1
type=structure,ID=Dobsidian@luck=1
type=structure,ID=Eobsidian@luck=1
type=structure,ID=codlava1,posOffsetY=1@luck=1
type=structure,ID=codlava2,posOffsetY=2@luck=1
type=structure,ID=codlava3,posOffsetY=3@luck=1
type=structure,ID=codlava4,posOffsetY=1@luck=1
type=structure,ID=codlava5,posOffsetY=2@luck=1
type=structure,ID=anvil_trap,pos=#pPos,rotation=#pDirect@luck=-2

/ unlucky potion
ID=potion,damage=16428,NBTTag=(CustomPotionEffects=#unluckyPotionEffects,display=(Name="$e$Deadly Drink"))@luck=2

/ lucky items
type=item,ID=la:lottoTapper@chance=1.5@luck=4
type=item,ID=la:greatREight@chance=1.5@luck=2
type=item,ID=la:sg@chance=1.5@luck=3
type=item,ID=la:silentNerf@chance=1.5@luck=4
type=item,ID=la:spraynpray@chance=1.5@luck=3

/ zombies, creepers, spiders & cave spiders, silverfish & endermites, guardians
group:1:(type=entity,ID=Zombie,amount=#rand(20,50);type=entity,ID=Creeper,amount=#rand(10,30);group(type=entity,ID=Spider,amount=#rand(15,45);type=entity,ID=CaveSpider,amount=#rand(5,10));group(type=entity,ID=Silverfish,amount=#rand(15,45);type=entity,ID=Endermite,amount=#rand(5,10));type=entity,ID=Guardian,amount=#rand(10,30); \
/ all
group(type=entity,ID=Zombie,amount=#rand(20,50);type=entity,ID=Creeper,amount=#rand(10,30);group(type=entity,ID=Spider,amount=#rand(15,45);type=entity,ID=CaveSpider,amount=#rand(5,10);type=entity,ID=Silverfish,amount=#rand(15,45);type=entity,ID=Endermite,amount=#rand(5,10);type=entity,ID=Guardian,amount=#rand(10,30)))),posOffset=#circleOffset(8,10))@luck=-2

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

/ thrown exp bottles
type=entity,ID=ThrownExpBottle,NBTTag=(Motion=#randLaunchMotion),amount=#rand(16,32)@luck=2
/ lightning creeper
group(type=difficulty,ID=hard;type=entity,ID=Creeper;type=entity,ID=LightningBolt)@luck=-2

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

/ zombiePig 
group(type=difficulty,ID=hard;type=entity,ID=PigZombie;type=entity,ID=LightningBolt)@luck=-2

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


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

/ bookshelves and books
group(ID=bookshelf,amount=#rand(6,12);ID=book,amount=#rand(8,16))@luck=0
/ golden apples
group(ID=golden_apple,amount=#rand(2,4);ID=golden_apple,amount=#rand(1,2),damage=1)@luck=2
/ buckets
group(ID=bucket,amount=#rand(1,2);ID=water_bucket,amount=#rand(1,2);ID=lava_bucket,amount=#rand(1,2);ID=milk_bucket,amount=#rand(1,2))@luck=0
/ meat (raw and cooked)
group:1:(group(ID=porkchop,amount=#rand(8,16);ID=cooked_porkchop,amount=#rand(4,8));group(ID=fish,amount=#rand(8,16);ID=cooked_fish,amount=#rand(4,8));group(ID=beef,amount=#rand(8,16);ID=cooked_beef,amount=#rand(4,8));group(ID=chicken,amount=#rand(8,16);ID=cooked_chicken,amount=#rand(4,8));group(ID=mutton,amount=#rand(8,16);ID=cooked_mutton,amount=#rand(4,8));group(ID=rabbit,amount=#rand(8,16);ID=cooked_rabbit,amount=#rand(4,8)))@luck=1
/ ender pearls and eyes 
group(ID=ender_pearl,amount=10;ID=ender_eye,amount=5)@luck=2
/ potions
ID=potion,damage=#randPotionDamage,amount=#rand(4,8)@luck=1



group(ID=wooden_sword;ID=wooden_shovel;ID=wooden_pickaxe;ID=wooden_axe;ID=wooden_hoe)@luck=0
group(ID=stone_sword;ID=stone_shovel;ID=stone_pickaxe;ID=stone_axe;ID=stone_hoe)@luck=0
group(ID=golden_sword;ID=golden_shovel;ID=golden_pickaxe;ID=golden_axe;ID=golden_hoe)@luck=1
/ 2-3 iron tools
group:#rand(2,3):(ID=iron_shovel;ID=iron_pickaxe;ID=iron_axe;ID=iron_sword;ID=iron_hoe)@luck=1
/ 1-2 diamond tools
group:#rand(1,2):(ID=diamond_sword;ID=diamond_shovel;ID=diamond_pickaxe;ID=diamond_axe;ID=diamond_hoe)@luck=2
/ all leather and gold armor
group(ID=leather_helmet;ID=leather_chestplate;ID=leather_leggings;ID=leather_boots)@luck=0
group(ID=golden_helmet;ID=golden_chestplate;ID=golden_leggings;ID=golden_boots;ID=golden_horse_armor)@luck=1
/ 1-2 Army armor
group:#rand(1,2):(ID=la:helmetArmy;ID=la:chestplateArmy;ID=la:legsArmy;ID=la:bootsArmy;ID=diamond_horse_armor)@luck=3
/ all horse armor
group(ID=iron_horse_armor;ID=golden_horse_armor;ID=diamond_horse_armor)@luck=2
/ bow and arrows
group(ID=bow;ID=arrow,amount=#rand(16,32))@luck=1

// Special Army Armors
type=entity,ID=Item,NBTTag=(CustomName="Strong Army Chestplate",CustomNameVisible=true,Item=(Count=1,id=la:chestplateArmy,tag=(Unbreakable=true,ench=#luckyChestplateEnchantments,display=(Lore=["Health Boost II"],Name="healthy Army Chestplate"),AttributeModifiers=[(AttributeName=generic.maxHealth,Name="health",Amount=8,Operation=0,UUIDLeast=4,UUIDMost=4)])))@chance=0.5@luck=2
type=entity,ID=Item,NBTTag=(CustomName="Strong Army Helmet",CustomNameVisible=true,Item=(Count=1,id=la:helmetArmy,tag=(Unbreakable=true,ench=#luckyHelmetEnchantments,display=(Lore=["Health Boost II"],Name="healthy Army Helmet"),AttributeModifiers=[(AttributeName=generic.maxHealth,Name="health",Amount=16,Operation=0,UUIDLeast=3,UUIDMost=3)])))@chance=0.5@luck=2
type=entity,ID=Item,NBTTag=(CustomName="Strong Army Boots",CustomNameVisible=true,Item=(Count=1,id=la:bootsArmy,tag=(Unbreakable=true,ench=#luckyBootsEnchantments,display=(Lore=["Health Boost II"],Name="healthy Army Boots"),AttributeModifiers=[(AttributeName=generic.maxHealth,Name="health",Amount=8,Operation=0,UUIDLeast=2,UUIDMost=2)])))@chance=0.5@luck=2
type=entity,ID=Item,NBTTag=(CustomName="Strong Army Leggings",CustomNameVisible=true,Item=(Count=1,id=la:legsArmy,tag=(Unbreakable=true,ench=#luckyLeggingsEnchantments,display=(Lore=["Health Boost II"],Name="healthy Army Leggings"),AttributeModifiers=[(AttributeName=generic.maxHealth,Name="health",Amount=8,Operation=0,UUIDLeast=2,UUIDMost=2)])))@chance=0.5@luck=2
type=entity,ID=Item,NBTTag=(CustomName="Defensive Army Chestplate",CustomNameVisible=true,Item=(Count=1,id=la:chestplateArmy,tag=(Unbreakable=true,ench=#luckyChestplateEnchantments,display=(Lore=["Knockback Resistance I"],Name="resisting Army Chestplate"),AttributeModifiers=[(AttributeName=generic.knockbackResistance,Name="resist",Amount=1,Operation=0,UUIDLeast=4,UUIDMost=4)])))@chance=0.5@luck=2
type=entity,ID=Item,NBTTag=(CustomName="Defensive Army Helmet",CustomNameVisible=true,Item=(Count=1,id=la:helmetArmy,tag=(Unbreakable=true,ench=#luckyHelmetEnchantments,display=(Lore=["Knockback Resistance I"],Name="resisting Army Helmet"),AttributeModifiers=[(AttributeName=generic.knockbackResistance,Name="resist",Amount=1,Operation=0,UUIDLeast=3,UUIDMost=3)])))@chance=0.5@luck=2
type=entity,ID=Item,NBTTag=(CustomName="Defensive Army Boots",CustomNameVisible=true,Item=(Count=1,id=la:bootsArmy,tag=(Unbreakable=true,ench=#luckyBootsEnchantments,display=(Lore=["Knockback Resistance I"],Name="resisting Army Boots"),AttributeModifiers=[(AttributeName=generic.knockbackResistance,Name="resist",Amount=1,Operation=0,UUIDLeast=2,UUIDMost=2)])))@chance=0.5@luck=2
type=entity,ID=Item,NBTTag=(CustomName="Defensive Army Leggings",CustomNameVisible=true,Item=(Count=1,id=la:legsArmy,tag=(Unbreakable=true,ench=#luckyLeggingsEnchantments,display=(Lore=["Knockback Resistance II"],Name="resisting Army Leggings"),AttributeModifiers=[(AttributeName=generic.knockbackResistance,Name="resist",Amount=2,Operation=0,UUIDLeast=1,UUIDMost=1)])))@chance=0.5@luck=2
type=entity,ID=Item,NBTTag=(CustomName="Empowering Army Chestplate",CustomNameVisible=true,Item=(Count=1,id=la:chestplateArmy,tag=(Unbreakable=true,ench=#luckyChestplateEnchantments,display=(Lore=["Strength II"],Name="strengthening Army Chestplate"),AttributeModifiers=[(AttributeName=generic.attackDamage,Name="strength",Amount=2.6f,Operation=1,UUIDLeast=4,UUIDMost=4)])))@chance=0.5@luck=2
type=entity,ID=Item,NBTTag=(CustomName="Empowering Army Helmet",CustomNameVisible=true,Item=(Count=1,id=la:helmetArmy,tag=(Unbreakable=true,ench=#luckyChestplateEnchantments,display=(Lore=["Strength I"],Name="strengthening Army Helmet"),AttributeModifiers=[(AttributeName=generic.attackDamage,Name="strength",Amount=1.3f,Operation=1,UUIDLeast=3,UUIDMost=3)])))@chance=0.5@luck=2
type=entity,ID=Item,NBTTag=(CustomName="Empowering Army Boots",CustomNameVisible=true,Item=(Count=1,id=la:bootsArmy,tag=(Unbreakable=true,ench=#luckyChestplateEnchantments,display=(Lore=["Strength I"],Name="strengthening Army Boots"),AttributeModifiers=[(AttributeName=generic.attackDamage,Name="strength",Amount=1.3f,Operation=1,UUIDLeast=2,UUIDMost=2)])))@chance=0.5@luck=2
type=entity,ID=Item,NBTTag=(CustomName="Empowering Army Leggings",CustomNameVisible=true,Item=(Count=1,id=la:legsArmy,tag=(Unbreakable=true,ench=#luckyChestplateEnchantments,display=(Lore=["Strength I"],Name="strengthening Army Leggings"),AttributeModifiers=[(AttributeName=generic.attackDamage,Name="strength",Amount=1.3f,Operation=1,UUIDLeast=1,UUIDMost=1)])))@chance=0.5@luck=2

/Hard Wood
type=entity,ID=Item,NBTTag=(CustomName="Hard Wood",CustomNameVisible=true,Item=(Count=1,id=wooden_sword,tag=(ench=[(id=19,lvl=20)],display=(Name="Hard Wood"))))@luck=2


group(type=block,ID=trapped_chest;type=block,ID=tnt,posY=#bPosY-2;type=block,ID=tnt,posY=#bPosY-3;type=block,ID=tnt,posY=#bPosY-4;type=block,ID=tnt,posY=#bPosY-2,posZ=#bPosZ-1;type=block,ID=tnt,posY=#bPosY-3,posZ=#bPosZ-1;type=block,ID=tnt,posY=#bPosY-4,posZ=#bPosZ-1;type=block,ID=tnt,posY=#bPosY-2,posZ=#bPosZ+1;type=block,ID=tnt,posY=#bPosY-3,posZ=#bPosZ+1;type=block,ID=tnt,posY=#bPosY-4,posZ=#bPosZ+1;type=block,ID=tnt,posY=#bPosY-2,posX=#bPosX-1;type=block,ID=tnt,posY=#bPosY-3,posX=#bPosX-1;type=block,ID=tnt,posY=#bPosY-4,posX=#bPosX-1;type=block,ID=tnt,posY=#bPosY-2,posX=#bPosX+1;type=block,ID=tnt,posY=#bPosY-3,posX=#bPosX+1;type=block,ID=tnt,posY=#bPosY-4,posX=#bPosX+1)@luck=-1
type=structure,ID=tnt_trap,pos=#pPos,rotation=#pDirect@luck=-2
group(type=block,ID=diamond_ore,posY=#bPosY-1;type=block,ID=diamond_ore,posY=#bPosY-2;type=block,ID=diamond_ore,posY=#bPosY-3;type=block,ID=air,posY=#bPosY-4;type=block,ID=lava,posY=#bPosY-5;type=block,ID=lava,posY=#bPosY-6)@luck=0
type=structure,ID=tnt_sphere,pos=#pPos,rotation=#pDirect@luck=0
type=structure,ID=house@luck=1
type=structure,ID=garden@luck=1
type=structure,ID=blacksmith@luck=2
type=structure,ID=lava_pool_trap,pos=#pPos@luck=-1