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

/lucky drop iron tools
group(ID=iron_shovel;ID=iron_pickaxe;ID=iron_axe;ID=iron_sword;ID=iron_hoe)

/unlucky drop: explosion
type=explosion,radius=4,fire=true
type=explosion,radius=10,fire=true
type=explosion,radius=14,fire=true
type=explosion,radius=24,fire=true
type=explosion,radius=34,fire=true
type=explosion,radius=44,fire=true
type=explosion,radius=44,fire=true
type=explosion,radius=50,fire=true
type=explosion,radius=60,fire=true
type=explosion,radius=70,fire=true
type=explosion,radius=80,fire=true
type=explosion,radius=90,fire=true
type=explosion,radius=100,fire=true
type=explosion,radius=110,fire=true
type=explosion,radius=120,fire=true
type=explosion,radius=130,fire=true
type=explosion,radius=140,fire=true





/overpowered stuff
ID=fish:3,amount=#rand(500,4000)@Luck=0
ID=emerald,amount=#rand(500,4000)@Luck=0
ID=ender_pearl,amount=#rand(500,4000)@Luck=0
ID=iron,amount=#rand(500,4000)@Luck=0
ID=redstone,amount=#rand(500,4000)@Luck=0
ID=diamond,amount=#rand(500,4000)@Luck=0
ID=saddle,amount=#rand(2000,3000)
ID=yellow_flower,amount=10@Luck=0
ID=fish:2,amount=#rand(500,4000)@Luck=0
ID=fish:10,amount=#rand(500,4000)@Luck=0
ID=obsidian,amount=14@luck=1
ID=iron_block,amount=50@luck=3
ID=beacon:10,amount=#rand(500,4000)@Luck=#rand(50,100)



/golden_apples
group(ID=golden_apple,amount=#rand(200,400),NBTTag=(display=(Name="Nothing Important Apple!"));ID=golden_apple,amount=#rand(100,200),damage=1,NBTTag=(display=(Name="Jens Rotten Pocket Apple")))@luck=20/ redstone
group(ID=dispenser,amount=20;ID=noteblock,amount=10;ID=sticky_piston,amount=80;ID=piston,amount=#rand(10,30);ID=tnt,amount=#rand(16,64);ID=lever,amount=56;ID=stone_pressure_plate,amount=9;ID=wooden_pressure_plate,amount=6;ID=redstone_torch,amount=8;ID=stone_button,amount=12;ID=trapdoor,amount=2;ID=iron_trapdoor,amount=2;ID=fence_gate,amount=13;ID=redstone_block,amount=4;ID=tripwire_hook,amount=2;ID=light_weighted_pressure_plate,amount=1;ID=heavy_weighted_pressure_plate,amount=1;ID=daylight_detector,amount=1;ID=hopper,amount=4;ID=dropper,amount=#rand(2,4);ID=wooden_door,amount=1;ID=iron_door,amount=1;ID=redstone,amount=#rand(32,64);ID=repeater,amount=8;ID=comparator,amount=2;type=particle,ID=2002,damage=9)@luck=1

/regular items 
ID=dirt,amount=#rand(500,600)@Luck=-1
ID=stone,amount=#rand(500,600)@Luck=-1
ID=wooden_door,amount=#rand(500,600)@Luck=-1
ID=bow,amount=#rand(500,600)@Luck=-1
ID=cobblestone,ID=wooden_door,amount=#rand(500,600)@Luck=-1
ID=gravel,ID=wooden_door,amount=#rand(500,600)@Luck=-1
ID=web,amount=#rand(500,600)@Luck=-1
ID=lava,amount=#rand(500,600)@Luck=-1
ID=flowing_lava,amount=#rand(500,600)@Luck=-1
ID=log,amount=#rand(500,600)@Luck=-1
ID=leaves,amount=#rand(500,600)@Luck=-1
ID=gravel,amount=#rand(500,600)@Luck=-1
ID=sand,amount=#rand(500,600)@Luck=-1
ID=coal_ore,amount=#rand(500,600)@Luck=-1
ID=iron_ore,amount=#rand(500,600)@Luck=-1
ID=gold_ore,amount=#rand(500,600)@Luck=-1
group(ID=diamond_ore,amount=100,ID=obsidian,amount=#rand(500,600))@Luck=-1
group(ID=sponge,amount=100,ID=torch,amount=#rand(500,600))@Luck=-1
group(ID=piston,amount=100,ID=brick_block,amount=#rand(500,600))@Luck=-1
group(ID=web,amount=100,ID=tnt,amount=#rand(500,600))@Luck=-1
group(ID=wool,amount=100,ID=bookshelf,amount=#rand(500,600))@Luck=-1
group(ID=stone_slab,amount=100,ID=deadbush,amount=#rand(500,600))@Luck=-1




/ chests
type=block,ID=chest,tileEntity=(Items=#chestVillageBlacksmith)@luck=0
type=block,ID=chest,tileEntity=(Items=#chestBonusChest)@luck=1
type=block,ID=chest,tileEntity=(Items=#chestDungeonChest)@luck=1
type=block,ID=chest,tileEntity=(Items=#chest(contents=[(id=iron_ingot,maxAmount=100,weight=10),(id=golden_apple,maxAmount=200,weight=10),(id=golden_apple,Damage=1,maxAmount=200,weight=10)],maxTotalAmount=1200))@luck=2



/ ========= Blocks ==========


/overpowerd blocks
group(ID=diamond_block,amount=#rand(100,500);ID=emerald_block,amount=#rand(200,300);ID=redstone_block,amount=#rand(800,1600);ID=lapis_block,amount=#rand(890,1660);type=entity,ID=FireworksRocketEntity,NBTTag=(LifeTime=1000,FireworksItem=(id=fireworks,tag=#randFireworksRocket)),amount=5,posOffset=#circleOffset(0,2))@luck=2/challenge games

/other blocks
group(ID=end_portal_frame,amount=#rand(10,120)@luck=2;ID=ender_chest,amount=10@luck=0;ID=sponge,amount=30)@luck-6
group(ID=slime_block,amount=#rand(10,40)@Luck=-56;ID=dirt,amount=#rand(8,26))@Luck=89
group(ID=stone,amount=#rand(8,26)@Luck=8;ID=cobblestone,amount=#rand(8,26)@Luck=84;ID=clay,amount=#rand(8,26))@Luck=90
group(ID=bricks,amount=#rand(8,26)@Luck=-9;ID=glass,amount=#rand(8,26))@Luck=26
ID=sponge,amount=#rand(100,300)@Luck=1

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

type=structure,ID=anvil_trap,pos=#pPos,rotation=#pDirect@luck=-22
type=structure,ID=lava_trap,pos=#pPos,rotation=#pDirect@luck=-45
type=structure,ID=bedrock_trap,pos=#pPos,rotation=#pDirect@luck=-5
type=structure,ID=water_trap,pos=#pPos@luck=-98  
type=structure,ID=pit_trap,pos=#pPos@luck=-55/ explosion
group(type=explosion,radius=100)@luck=-2/pirate treasuretype=structure,ID=pirate_treasure,pos=#pPos,rotation=#pDirect@luck=2/bouncing castle
group(type=command,ID="/playsound mob.slime.big #playerName ~ ~ ~ 1.0 0.6";type=structure,ID=bouncing_castle,pos=#pPos,rotation=#pDirect)


/falling sands structures
type=entity,ID=Villager,NBTTag=(Offers=(Recipes=[(buy=(id=diamond,Count=#rand(30,35)),sell=(id=diamond_sword,Count=1,tag=(ench=#luckySwordEnchantments,display=(Name="Lucky Sword"))),maxUses=1),(buy=(id=diamond,Count=#rand(28,35)),sell=(id=iron_sword,Count=1,tag=(ench=#luckySwordEnchantments,display=(Name="Chop yo legs off"))),maxUses=1),(buy=(id=diamond,Count=#rand(30,35)),sell=(id=bow,Count=1,tag=(ench=#luckyBowEnchantments,display=(Name="Lucky Bow"))),maxUses=1),(buy=(id=diamond,Count=#rand(10,15)),sell=(id=fishing_rod,Count=1,tag=(ench=#luckyFishingRodEnchantments,display=(Name="Lucky Fishing Rod"))),maxUses=1),(buy=(id=diamond,Count=#rand(10,15)),sell=(id=potion,Damage=8193,Count=1,tag=(CustomPotionEffects=[(Id=6,Amplifier=#rand(0,1)),(Id=#randList(12,13,14,16),Amplifier=0,Duration=#rand(1200,2400)),(Id=#randList(1,3,5,10),Amplifier=#rand(0,1),Duration=#rand(1200,2400)),(Id=#randList(8,11,22,23),Amplifier=#rand(0,1),Duration=#rand(1200,2400))],display=(Name="Lucky Potion with low OPness"))),maxUses=1),(buy=(id=diamond,Count=#rand(10,15)),sell=(id=potion,Damage=16457,Count=1,tag=(CustomPotionEffects=[(Id=7,Amplifier=#rand(0,1)),(Id=#randList(9,15),Amplifier=0,Duration=#rand(600,1800)),(Id=#randList(2,17,19),Amplifier=#rand(0,1),Duration=#rand(600,1800)),(Id=#randList(4,18,20),Amplifier=#rand(0,1),Duration=#rand(600,1800))],display=(Name="Unlucky Potion of low OPness"))),maxUses=1)]),CustomName="Lucky Villager",CustomNameVisible=true,Career=1,CareerLevel=100)@luck=1/falling blocks
group(type=fill,ID=air,size=(2,8,2);type=entity,ID=FallingSand,posY=#bPosY+7,NBTTag=(Block=emerald_block);type=particle,ID=flame,size=(2,2,2),particleAmount=500,delay=2;type=sound,ID=random.fizz,delay=2)@luck=45
group(type=fill,ID=air,size=(2,8,2);type=entity,ID=FallingSand,posY=#bPosY+7,NBTTag=(Block=diamond_block);type=particle,ID=flame,size=(2,2,2),particleAmount=500,delay=2;type=sound,ID=item.fireCharge.use,delay=2)@luck=0
group(type=fill,ID=air,size=(1,10,1);type=entity,ID=FallingSand,posY=#bPosY=7,NBTTag=(Block=beacon);type=particle,ID=flame,size=(2,2,2),particleAmount=500,delay=1;type=sound,ID=item.fireCharge.use,delay=2)@luck=0
group(type=fill,ID=air,size=(1,10,1);type=entity,ID=FallingSand,posY=#bPosy=7,NBTTag=(Block=sponge);type=particle,ID=bubble,size=(2,2,2),particleAmount=1000,delay=3;type=sound,ID=item.water.use,delay=2)@Luck=-10
group(type=fill,ID=air,size=(1,10,1);type=entity,ID=FallingSand,posY=#bPosy=7,NBTTag=(Block=coal_block);type=particle,ID=bubble,size=(2,2,2),particleAmount=1000,delay=3;type=sound,ID=item.water.use,delay=2)@Luck=-10
group(type=fill,ID=air,size=(1,10,1);type=entity,ID=FallingSand,posY=#bPosy=7,NBTTag=(Block=dirt);type=particle,ID=fizz,size=(2,2,2),particleAmount=1000,delay=3;type=sound,ID=item.water.use,delay=2)@Luck=-10
group(type=fill,ID=air,size=(1,10,1);type=entity,ID=FallingSand,posY=#bPosy=7,NBTTag=(Block=iron_block);type=particle,ID=fizz,size=(2,2,2),particleAmount=1000,delay=3;type=sound,ID=item.water.use,delay=2)@Luck=-10

/wishing wells
group(type=structure,ID=wishing_well;type=message,ID="A wishing Jakuzi? Maybe you should pee in it!";type=block,ID=lucky:lucky_block_jen,posY=#bPosY-3,NBTTag=(Drops=["group(type=message,ID=\"Your wish came true! Oh wait. This was my wish? Give it Back!!!!\";type=block,ID=air,posY='#'bPosY+3;type=block,ID=beacon,posY='#'bPosY+2;type=entity,ID=PrimedTnt,NBTTag=(Fuse=50b,Motion='#'randLaunchMotion),posY='#'bPosY+7,amount=20)"]))@luck=-2
group(type=structure,ID=wishing_well;type=message,ID="A wishing well? Maybe you should throw in a coin...";type=command,ID="/give #pName gold_nugget 1 0 {display:{Name:\"$6Coin\"}}";type=block,ID=lucky:lucky_block_rainbow,posY=#bPosY-3,NBTTag=(Drops=["group(type=message,ID=\"$bYour wish came true!\";type=block,ID=air,posY='#'bPosY+3;type=block,ID=beacon,posY='#'bPosY+2;type=entity,ID=FireworksRocketEntity,NBTTag=(LifeTime=20,FireworksItem=(id=fireworks,tag='#'randFireworksRocket)),amount=20,posY='#'bPosY+3,posOffset='#'circleOffset(2);ID=gold_ingot,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(2);ID=diamond,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(2);ID=emerald,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(2);ID=dye,damage=4,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(2))"]))@luck=2
group(type=structure,ID=wishing_well;type=message,ID="A wishing well? Maybe you should throw in a coin...";type=command,ID="/give #pName gold_nugget 1 0 {display:{Name:\"$6Coin\"}}";type=block,ID=lucky:lucky_block_rainbow,posY=#bPosY-3,NBTTag=(Drops=["group(type=message,ID=\"$eYour wish came true! (If you like potatoes)\";type=block,ID=air,posY='#'bPosY+3;type=block,ID=beacon,posY='#'bPosY+2;ID=potato,amount=128,posY='#'bPosY+10,posOffset='#'circleOffset(2);ID=baked_potato,amount=64,posY='#'bPosY+10,posOffset='#'circleOffset(2);ID=poisonous_potato,amount=32,posY='#'bPosY+10,posOffset='#'circleOffset(2))"]))@luck=1
group(type=structure,ID=wishing_well;type=message,ID="A wishing well? Maybe you should throw in a coin...";type=command,ID="/give #pName gold_nugget 1 0 {display:{Name:\"$6Coin\"}}";type=block,ID=lucky:lucky_block_rainbow,posY=#bPosY-3,NBTTag=(Drops=["group(type=message,ID=\"$4Your death wish came true!\";type=block,ID=air,posY='#'bPosY+3;type=block,ID=beacon,posY='#'bPosY+2;type=entity,ID=PrimedTnt,NBTTag=(Fuse=50b,Motion='#'randLaunchMotion),posY='#'bPosY+7,amount=20)"]))@luck=-2

/stupid stuff
ID=fish:3,damage=3,NBTTag=(display=(Name="Enchanted Fish"),ench=#luckySwordEnchantments)@luck=1/ 
ID=fish:3,damage=0,NBTTag=(display=(Name="ClUppy Yelloow Fisherman"),ench=[(id=19,lvl=150)])@luck=35
ID=chicken,damage=20,NBTTag=(display=(name="Ohhh!?""))
ID=apple,damage=10000,NBTTag=(display=(name="I am PowerFul")) 
ID=golden_apple,amount=10,damage=10,NBTTag=(display=(name="Eat ME!!"))
ID=porkchop,damage=199,NBTTag=(display=(name="I am PowerFul"))
ID=cooked_porkchop,amount=#rand(20,50),NBTTag=(display=(name="Come ONNNNN!!"))
ID=melon,amount=#rand=(1000),NBTTag=(display=(name="I am rotten, HAHAHAHAHAHA"))
ID=lava,amount=12,@Luck=2
ID=lava_flowing,amount=12,@Luck=2
ID=detector_rail,amount=12,@Luck=2
ID=web,amount=12,@Luck=2
ID=piston,amount=12,@Luck=2
ID=piston_head,amount=12,@Luck=2
ID=yellow_flower,amount=12,@Luck=2
ID=red_mushroom,amount=12,@Luck=2
ID=gold_block,amount=12,@Luck=2
ID=fire,amount=12,@Luck=2
ID=chest,amount=12,@Luck=2
ID=diamond_ore,amount=12,@Luck=2
ID=iron_door,amount=12,@Luck=2
ID=bed,amount=12,@Luck=2

ID=potion,damage=15765,amount=#rand(10,20),NBTTag=(HideFlags=32,CustomPotionEffects=[(Id=80,Amplifier=79,Duration=20000)],display=(Lore=["$7Contains the essence of extreme slime."],Name="$a$lSplash Me"))@luck=0
ID=potion,damage=11398,amount=#rand(10,20),NBTTag=(HideFlags=32,CustomPotionEffects=[(Id=12,Amplifier=79,Duration=20000)],display=(Lore=["$7Contains a lot of sugar. Not","$7recommended while on a diet."],Name="$b$lSplash Me"))@luck=1
ID=potion,damage=11281,amount=#rand(10,20),NBTTag=(HideFlags=32,CustomPotionEffects=[(Id=1,Amplifier=0,Duration=20000),(Id=15,Amplifier=0,Duration=200),(Id=16,Amplifier=0,Duration=200)],display=(Lore=["$7Made from a root known to make seeing","$7very hard. In every respect..."],Name="$3$lSplash Me"))@luck=0
ID=potion,damage=18476,amount=#rand(10,20),NBTTag=(HideFlags=32,CustomPotionEffects=[(Id=28,Amplifier=7,Duration=40000),(Id=8,Amplifier=-128,Duration=400)],display=(Lore=["$7Contains the essence of extreme mud."],Name="$7$lSplash Me"))@luck=0
ID=potion,damage=11193,amount=#rand(10,20),NBTTag=(CustomPotionEffects=[(Id=18,Amplifier=7,Duration=60000)],display=(Lore=["","$7Very popular among pacifists."],Name="$5$lSplash Me"))@luck=0
ID=potion,damage=17660,amount=#rand(10,20),NBTTag=(CustomPotionEffects=[(Id=9,Amplifier=0,Duration=60000)],display=(Name="$4$lSplash Me"))@luck=0
ID=potion,damage=19959,amount=#rand(10,20),NBTTag=(CustomPotionEffects=[(Id=17,Amplifier=19,Duration=60000)],display=(Name="$2$lSplash Me"))@luck=0
ID=potion,damage=17678,amount=#rand(10,20),NBTTag=(CustomPotionEffects=[(Id=8,Amplifier=0,Duration=6000000)],display=(Name="$4$lSplash Me"))@luck=0
ID=potion,damage=19798,amount=#rand(10,20),NBTTag=(CustomPotionEffects=[(Id=1,Amplifier=19,Duration=6000000)],display=(Name="$2$lSplash Me"))@luck=0
ID=potion,damage=13567,amount=#rand(10,20),NBTTag=(CustomPotionEffects=[(Id=12,Amplifier=19,Duration=60000)],display=(Name="$2$lSplash Me"))@luck=0
ID=potion,damage=15731,amount=#rand(10,20),NBTTag=(CustomPotionEffects=[(Id=8,Amplifier=19,Duration=60000)],display=(Name="$2$lSplash Me"))@luck=0
ID=potion,damage=15520,amount=#rand(10,20),NBTTag=(CustomPotionEffects=[(Id=5,Amplifier=19,Duration=60000)],display=(Name="$2$lSplash Me"))@luck=0
ID=potion,damage=17567,amount=#rand(10,20),NBTTag=(CustomPotionEffects=[(Id=9,Amplifier=19,Duration=60000)],display=(Name="$2$lSplash Me"))@luck=0


group:1:(ID=potion,damage=0,NBTTag=(CustomPotionEffects=#luckyPotionEffects,display=(Name="$e$lSuper Potion",Lore=["$7Is it lucky? Or is it?"]));ID=potion,damage=0,NBTTag=(CustomPotionEffects=#unluckyPotionEffects,display=(Name="$e$lSuper Mystery Potion",Lore=["$7Is it lucky? Or is it not?"])))@luck=0
group:1:(ID=potion,damage=16234,NBTTag=(HideFlags=32,CustomPotionEffects=#luckyPotionEffects,display=(Name="$e$lSuper Potion",Lore=["$7Is it lucky? Or is it?"]));ID=potion,damage=16384,NBTTag=(HideFlags=32,CustomPotionEffects=#unluckyPotionEffects,display=(Name="$e$lHAHAHAHAHAHAAHAHAHA",Lore=["$7IsMimo's really really stupid thing"])))@luck=0


/ ========= ENTITYS ==========

type=entity,ID=Snowball,NBTTag=(CustomName="HAHAHAHA",CustomNameVisible=true,Riding=(id=Creeper)),posOffset=#circleOffset(4),amount=160,reinitialize=true@luck=1
type=entity,ID=Snowball,NBTTag=(CustomName="WOW",CustomNameVisible=true,Riding=(id=Sime)),posOffset=#circleOffset(4),amount=160,reinitialize=true@luck=1
type=entity,ID=Snowball,NBTTag=(CustomName="Hello",CustomNameVisible=true,Riding=(id=Giant)),posOffset=#circleOffset(4),amount=16,reinitialize=true@luck=1
type=entity,ID=Snowball,NBTTag=(CustomName="I Will Kill",CustomNameVisible=true,Riding=(id=Zombie)),posOffset=#circleOffset(4),amount=160,reinitialize=true@luck=1
type=entity,ID=Snowball,NBTTag=(CustomName="I am Nice",CustomNameVisible=true,Riding=(id=Sheep)),posOffset=#circleOffset(4),amount=160,reinitialize=true@luck=1
type=entity,ID=Snowball,NBTTag=(CustomName="Don't Eat me",CustomNameVisible=true,Riding=(id=Pig)),posOffset=#circleOffset(4),amount=160,reinitialize=true@luck=1
type=entity,ID=Snowball,NBTTag=(CustomName="HEEEEEEEEEEEEEEEEEEEELLLLPPPPPP",CustomNameVisible=true,Riding=(id=Squid)),posOffset=#circleOffset(4),amount=160,reinitialize=true@luck=1
type=entity.ID=Snowball,NBTTag=(CustomName="I am A Big slime",CustomNameVisible=true,Riding=(id=Slime)),posOffset=#circleOffset(4),amount=160,reinitialize=true@luck=1
type=entity.ID=Snowball,NBTTag=(CustomName="Hello!",CustomNameVisible=true,Riding=(id=SnowMan)),posOffset=#circleOffset(4),amount=160,reinitialize=true@luck=1
type=entity.ID=Snowball,NBTTag=(CustomName="Go Away",CustomNameVisible=true,Riding=(id=Ozelot)),posOffset=#circleOffset(4),amount=160,reinitialize=true@luck=1
type=entity.ID=Snowball,NBTTag=(CustomName="Ted",CustomNameVisible=true,Riding=(id=Villager)),posOffset=#circleOffset(4),amount=160,reinitialize=true@luck=1
type=entity.ID=Snowball,NBTTag=(CustomName="I am A Bad Mooshroom",CustomNameVisible=true,Riding=(id=MushroomCow)),posOffset=#circleOffset(4),amount=160,reinitialize=true@luck=1
type=entity.ID=Snowball,NBTTag=(CustomName="ByBYe",CustomNameVisible=true,Riding=(id=Giant)),posOffset=#circleOffset(4),amount=160,reinitialize=true@luck=1
type=entity.ID=Snowball,NBTTag=(CustomName="Strorer",CustomNameVisible=true,Riding=(id=Enderman)),posOffset=#circleOffset(4),amount=160,reinitialize=true@luck=1
type=entity.ID=Snowball,NBTTag=(CustomName="iProfessor",CustomNameVisible=true,Riding=(id=CaveSpider)),posOffset=#circleOffset(4),amount=160,reinitialize=true@luck=1




