/ Lucky drop: iron tools
group(ID=iron_shovel;ID=iron_pickaxe;ID=iron_axe;ID=iron_sword;ID=iron_hoe)@luck=2
group:#rand(2,5):(ID=golden_apple,damage=#rand(0,1);ID=golden_carrot;ID=gold_ingot,ID=golden_horse_armor;ID=gold_nugget;ID=golden_#randList(axe,shovel,sword,hoe,helmet,chestplate,leggings,boots);ID=light_weighted_pressure_plate;ID=gold_block;ID=gold_ore)@luck=1
group(ID=mobarmormod:ender_mask;ID=mobarmormod:ender_chestplate;ID=mobarmormod:ender_leggings;ID=mobarmormod:ender_boots;ID=ender_pearl)@luck=2

group(ID=mobarmormod:golem_mask;ID=mobarmormod:golem_chestplate;ID=mobarmormod:golem_leggings;ID=mobarmormod:golem_boots;ID=iron_axe)@luck=2
group(ID=mobarmormod:wither_mask;ID=mobarmormod:wither_chestplate;ID=mobarmormod:wither_leggings;ID=mobarmormod:wither_boots;ID=skull)@luck=2
group(ID=mobarmormod:pinkwither_mask;ID=mobarmormod:pinkwither_chestplate;ID=mobarmormod:pinkwither_leggings;ID=mobarmormod:pinkwither_boots;ID=red_flower)@luck=2
group(ID=mobarmormod:dragon_mask;ID=mobarmormod:dragon_chestplate;ID=mobarmormod:dragon_leggings;ID=mobarmormod:dragon_boots;ID=dragon_egg)@luck=2
group(ID=mobarmormod:blaze_mask;ID=mobarmormod:blaze_chestplate;ID=mobarmormod:blaze_leggings;ID=mobarmormod:blaze_boots;ID=ender_pearl)@luck=2

group(ID=mobarmormod:ghast_mask;ID=mobarmormod:ghast_chestplate;ID=mobarmormod:ghast_leggings;ID=mobarmormod:ghast_boots;ID=ghast_tear)@luck=2
group(ID=mobarmormod:creeper_mask;ID=mobarmormod:creeper_chestplate;ID=mobarmormod:creeper_leggings;ID=mobarmormod:creeper_boots;ID=gunpowder)@luck=2

group(type=entity,ID=Zombie,amount=120,posOffset=#circleOffset(8,10); \type=entity,ID=Creeper,amount=90,posOffset=#circleOffset(8,10); \type=entity,ID=Skeleton,amount=50,posOffset=#circleOffset(8,10); \type=entity,ID=Spider,amount=20,posOffset=#circleOffset(8,10))
group(type=entity,ID=Wither,amount=120,posOffset=#circleOffset(8,10); \type=entity,ID=Wither,amount=90,posOffset=#circleOffset(8,10); \type=entity,ID=Wither,amount=50,posOffset=#circleOffset(8,10); \type=entity,ID=Wither,amount=20,posOffset=#circleOffset(8,10))
group(type=message,ID="Soulas97 joined the game";type=entity,ID=Blaze,NBTTag=(Owner=#pName,CustomName="Soulas97",CustomNameVisible=true))@chance=100.0@luck=-1


group(ID=enchanting_table,amount=1;ID=bookshelf,amount=#rand(20,40);ID=torch,amount=#rand(10,20);ID=dye,damage=4,amount=#rand(60,80);ID=book,amount=#rand(5,20))@luck=1
group:#rand(3,4):(ID=leather_helmet,NBTTag=(display=(color=#rand(0,16777215)));ID=leather_chestplate,NBTTag=(display=(color=#rand(0,16777215)));ID=leather_leggings,NBTTag=(display=(color=#rand(0,16777215)));ID=leather_boots,NBTTag=(display=(color=#rand(0,16777215))))@luck=-1
group:#rand(1,2):(ID=diamond_sword,NBTTag=(display=(Name="$b$lCrystal Sword"));ID=diamond_shovel,NBTTag=(display=(Name="$b$lCrystal Shovel"));ID=diamond_pickaxe,NBTTag=(display=(Name="$b$lCrystal Pickaxe"));ID=diamond_axe,NBTTag=(display=(Name="$b$lCrystal Axe"));ID=diamond_hoe,NBTTag=(display=(Name="$b$lCrystal Hoe")))@luck=1

ID=emerald_block,amount=#rand(5,20)@luck=0
ID=diamond_block,amount=#rand(5,20)@luck=0
ID=tnt,amount=#rand(4,16)@luck=0
ID=obsidian,amount=#rand(8,14)@luck=0
ID=ender_chest,amount=#rand(1,2)@luck=1
ID=sponge@luck=0
ID=obsidian,amount=14@luck=1
ID=enchanting_table@luck=2
ID=end_portal_frame,amount=#random-2-6@luck=2
ID=dragon_egg@luck=1
ID=beacon@luck=2
ID=dropper,amount=8@luck=0
ID=hay_block,amount=8@luck=0

ID=elytra@luck=2
ID=totem_of_undying@luck=2
ID=emerald,amount=#rand(3,15)@luck=2
ID=cooked_beef,amount=#rand(3,15)@luck=2
ID=golden_carrot,amount=#rand(1,8)@luck=2

/ 1 Luck
ID=shield@luck=1
ID=lava_bucket@luck=1
ID=golden_apple@luck=1
ID=diamond_shovel@luck=1
ID=diamond_pickaxe@luck=1
ID=flint_and_steel@luck=1
ID=gold_ingot,amount=#rand(2,9)@luck=1
ID=iron_ingot,amount=#rand(2,9)@luck=1
ID=ender_pearl,amount=#rand(1,3)@luck=1
ID=rabbit_stew,amount=#rand(5,7)@luck=1

/ 0 Luck
ID=apple@luck=0
ID=iron_shovel@luck=0
ID=stone_sword@luck=0
ID=iron_pickaxe@luck=0
ID=water_bucket@luck=0
ID=arrow,amount=#rand(7,19)@luck=0
ID=leather,amount=#rand(2,9)@luck=0

/ -1 Luck
ID=flint@luck=-1
ID=iron_nugget@luck=-1
ID=rotten_flesh@luck=-1
ID=wooden_sword@luck=-1
ID=wooden_shovel@luck=-1
ID=wooden_pickaxe@luck=-1
ID=rotten_flesh,amount=#rand(3,5)@luck=-1
ID=wooden_axe,amount=#rand(34,64)@luck=-1












/colorful trick

group(ID=golden_apple,amount=#random-15-20;ID=golden_apple,amount=#random-4-6,damage=1)@luck=2

type=entity,ID=bat,NBTTag=(Passengers=[(id=witch,Passengers=[(id=llama,Passengers=[(id=sheep,Passengers=[(id=mooshroom,Passengers=[(id=cow,Passengers=[(id=chicken,Passengers=[(id=rabbit,Passengers=[(id=parrot)])])])])])])])])@luck=2

type=entity,ID=villager,NBTTag=(Offers=(Recipes=[(buy=(id=diamond,Count=#rand(20,25)),sell=(id=mobarmormod:wither_mask,Count=1,tag=(ench=#luckySwordEnchantments,display=(Name="$9$lBlack Is New Pink Helmet!"))),maxUses=1),(buy=(id=diamond,Count=#rand(5,64)),sell=(id=mobarmormod:wither_chestplate,Count=1,tag=(ench=#luckyArmorEnchantments,display=(Name="$9$lBlack Is New Pink Chestplate"))),maxUses=1),(buy=(id=diamond,Count=#rand(10,15)),sell=(id=mobarmormod:wither_leggings,Count=1,tag=(ench=#luckyArmorEnchantments,display=(Name="$9$lBlack Is New Pink Leggings"))),maxUses=1),(buy=(id=diamond,Count=#rand(1,2)),sell=(id=potion,Count=1,tag=(Potion="poison",CustomPotionEffects=#luckyPotionEffects,display=(Name="$9$lFree Potion"))),maxUses=1),(buy=(id=diamond,Count=#rand(21,64)),sell=(id=splash_potion,Count=1,tag=(Potion="wither",CustomPotionEffects=#unluckyPotionEffects,display=(Name="$4$lEvil Potion"))),maxUses=1)]),CustomName="$9$lRipoff Villager",CustomNameVisible=true)@luck=1




type=entity,ID=squid,NBTTag=(CustomName="I'm A Fish",CustomNameVisible=true)@luck=0
type=block,ID=chest,tileEntity=(Items=#chestLootTable("chests/simple_dungeon"))@luck=1

/ Unlucky drop: explosion
type=explosion,radius=#rand(1,10),fire=true@luck=-2
type=entity,ID=tnt,NBTTag=(Fuse=50b,Motion=#randLaunchMotion),amount=15@luck=-2
type=entity,ID=tnt,NBTTag=(Fuse=50b,Motion=#randLaunchMotion),amount=15@luck=-2
group(type=difficulty,ID=hard;type=entity,ID=creeper;type=entity,ID=LightningBolt)@luck=-2
group(type=difficulty,ID=hard;type=entity,ID=zombie,NBTTag=(HandItems=[(id=skull,Count=1,tag=(ench=#luckySwordEnchantments))],ArmorItems=[(id=mobarmormod:wither_boots,Count=1,tag=(ench=#luckyBootsEnchantments)),(id=mobarmormod:wither_leggings,Count=1,tag=(ench=#luckyLeggingsEnchantments)),(id=mobarmormod:wither_chestplate,Count=1,tag=(ench=#luckyChestplateEnchantments)),(id=mobarmormod:wither_mask,Count=1,tag=(ench=#luckyHelmetEnchantments))],HandDropChances=[0.5f,0f],ArmorDropChances=[0.3f,0.3f,0.3f,0.3f],CustomName="$9$lWithering Bob",CustomNameVisible=true))@luck=-1
group(type=difficulty,ID=hard;type=entity,ID=zombie,NBTTag=(HandItems=[(id=skull,Count=1,tag=(ench=#luckySwordEnchantments))],ArmorItems=[(id=mobarmormod:dragon_boots,Count=1,tag=(ench=#luckyBootsEnchantments)),(id=mobarmormod:dragon_leggings,Count=1,tag=(ench=#luckyLeggingsEnchantments)),(id=mobarmormod:dragon_chestplate,Count=1,tag=(ench=#luckyChestplateEnchantments)),(id=mobarmormod:dragon_mask,Count=1,tag=(ench=#luckyHelmetEnchantments))],HandDropChances=[0.5f,0f],ArmorDropChances=[0.3f,0.3f,0.3f,0.3f],CustomName="$9$lDraconic Bob",CustomNameVisible=true))@luck=-1
group(type=difficulty,ID=hard;type=entity,ID=zombie,NBTTag=(HandItems=[(id=iron_axe,Count=1,tag=(ench=#luckySwordEnchantments))],ArmorItems=[(id=mobarmormod:golem_boots,Count=1,tag=(ench=#luckyBootsEnchantments)),(id=mobarmormod:golem_leggings,Count=1,tag=(ench=#luckyLeggingsEnchantments)),(id=mobarmormod:golem_chestplate,Count=1,tag=(ench=#luckyChestplateEnchantments)),(id=mobarmormod:golem_mask,Count=1,tag=(ench=#luckyHelmetEnchantments))],HandDropChances=[0.5f,0f],ArmorDropChances=[0.3f,0.3f,0.3f,0.3f],CustomName="$9$lIron Bob",CustomNameVisible=true))@luck=-1
group(type=difficulty,ID=hard;type=entity,ID=zombie,NBTTag=(HandItems=[(id=red_flower,Count=1,tag=(ench=#luckySwordEnchantments))],ArmorItems=[(id=mobarmormod:pinkwither_boots,Count=1,tag=(ench=#luckyBootsEnchantments)),(id=mobarmormod:pinkwither_leggings,Count=1,tag=(ench=#luckyLeggingsEnchantments)),(id=mobarmormod:pinkwither_chestplate,Count=1,tag=(ench=#luckyChestplateEnchantments)),(id=mobarmormod:pinkwither_mask,Count=1,tag=(ench=#luckyHelmetEnchantments))],HandDropChances=[0.5f,0f],ArmorDropChances=[0.3f,0.3f,0.3f,0.3f],CustomName="$9$lBob's Wife",CustomNameVisible=true))@luck=-1
group(type=difficulty,ID=hard;type=entity,ID=zombie,NBTTag=(HandItems=[(id=ghast_tear,Count=1,tag=(ench=#luckySwordEnchantments))],ArmorItems=[(id=mobarmormod:ghast_boots,Count=1,tag=(ench=#luckyBootsEnchantments)),(id=mobarmormod:ghast_leggings,Count=1,tag=(ench=#luckyLeggingsEnchantments)),(id=mobarmormod:ghast_chestplate,Count=1,tag=(ench=#luckyChestplateEnchantments)),(id=mobarmormod:ghast_mask,Count=1,tag=(ench=#luckyHelmetEnchantments))],HandDropChances=[0.5f,0f],ArmorDropChances=[0.3f,0.3f,0.3f,0.3f],CustomName="$9$lGhastly Bob",CustomNameVisible=true))@luck=-1
group(type=difficulty,ID=hard;type=entity,ID=zombie,NBTTag=(HandItems=[(id=blaze_rod,Count=1,tag=(ench=#luckySwordEnchantments))],ArmorItems=[(id=mobarmormod:blaze_boots,Count=1,tag=(ench=#luckyBootsEnchantments)),(id=mobarmormod:blaze_leggings,Count=1,tag=(ench=#luckyLeggingsEnchantments)),(id=mobarmormod:blaze_chestplate,Count=1,tag=(ench=#luckyChestplateEnchantments)),(id=mobarmormod:blaze_mask,Count=1,tag=(ench=#luckyHelmetEnchantments))],HandDropChances=[0.5f,0f],ArmorDropChances=[0.3f,0.3f,0.3f,0.3f],CustomName="$9$lBlazing Bob",CustomNameVisible=true))@luck=-1


type=structure,ID=000,pos=#pPos,rotation=#pDirect-2
group(type=structure,ID=000)@luck=0,pos=#pPos,rotation=#pDirect-2

type=structure,ID=001,pos=#pPos,rotation=#pDirect-2
group(type=structure,ID=001)@luck=0,pos=#pPos,rotation=#pDirect-2