group(ID=carrot;ID=potato;ID=wheat_seeds;ID=wheat;ID=iron_hoe)@luck=6
group(ID=carrot;ID=golden_shovel;ID=iron_pickaxe;ID=iron_axe;ID=golden_hoe)@luck=20
group(ID=carrot;ID=damond_shovel;ID=iron_pickaxe;ID=iron_axe;ID=stone_hoe)@luck=0
group(ID=carrot;ID=iron_shovel;ID=iron_pickaxe;ID=diamond_axe;ID=iron_hoe)@luck=0
group(ID=leather_chestplate;ID=iron_helmet;ID=diamond_boots;ID=diamond_leggings)@luck=1
group:#rand(2,3):(ID=iron_shovel;ID=iron_pickaxe;ID=iron_axe;ID=iron_sword;ID=iron_hoe)@luck1
group:#rand(1,2):(ID=diamond_sword;ID=diamond_shovel;ID=diamond_pickaxe;ID=diamond_axe;ID=diamond_hoe)@luck=2
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
group:#rand(2,3):(ID=chainmail_helmet;ID=chainmail_chestplate;ID=chainmail_leggings;ID=chainmail_boots)@luck=2
group:#rand(2,3):(ID=iron_helmet;ID=iron_chestplate;ID=iron_leggings;ID=iron_boots;ID=iron_horse_armor)@luck=1
group:#rand(1,2):(ID=diamond_helmet;ID=diamond_chestplate;ID=diamond_leggings;ID=diamond_boots;ID=diamond_horse_armor)@luck=2
group(ID=iron_horse_armor;ID=golden_horse_armor;ID=diamond_horse_armor)@luck=2
group(ID=bow;ID=arrow,amount=#rand(16,32))@luck=1

ID=sponge@luck=10
ID=tnt,amount=8@luck=1
ID=obsidian,amount=14@luck=1
ID=enchanting_table@luck=2
ID=end_portal_frame,amount=#rand(2,6)@luck=2
ID=dragon_egg@luck=1
ID=ender_chest,amount=2@luck=0
ID=beacon@luck=2
ID=dropper,amount=8@luck=0
ID=hay_block,amount=8@luck=0

ID=apple,NBTTag=(display=(Name="$bNotch's Lucky Apple, and he is giving it to #pName"))@luck=2
ID=beacon,NBTTag=(display=(Name="$bFor #pName"))@luck=2
ID=sponge,damage=#rand(0,1)@luck=0
ID=red_flower,NBTTag=(ench=[(id=20,lvl=1)],HideFlags=1,display=(Name="$5Rose's Mom",Lore=["$dHit an yellow flower,","$5to make it die!"]))@luck=1
ID=dragon_egg,NBTTag=(ench=[(id=20,lvl=1)],HideFlags=1,display=(Name="$5Enderman's Mom",Lore=["$dHit a cow,","$5to make it poop!"]))@luck=1
ID=noteblock,amount=#rand(5,20)@luck=0
ID=gold_block,amount=5@luck=1
ID=red_flower,damage=0,amount=#rand(0,8)@luck=0
ID=apple,NBTTag=(ench=[(id=33,lvl=798)])@luck=-1
ID=cookie,amount=142@luck=0
ID=golden_apple,damage=1,amount=#rand(2,99),NBTTag=(display=(Name="$cThis is not for #pName"))@luck=1
ID=clock,NBTTag=(display=(Name="$fYou should not check the time, it will waste some time.:3"))@luck=0
group(type=message,ID="$cTHIS DROP SHOULD, CAN, AND WILL BE COPY & PASTED INTO OTHER LUCKY BLOCKS!!!!!!";ID=paper,NBTTag=(display=(Name="$cThe Copy & Paste Drop")))@luck=-1
ID=diamond_block,amount=#rand(12,23)@luck=1

group(type=structure,ID=wishing_well;type=message,ID="A wishing well? Maybe you should not throw in an awesome diamond...";type=command,ID="/give #pName diamond 1 0 {display:{Name:\"$6Robot Killer Diamond\"}}";type=block,ID=lucky:luckyluckyblock,posY=#bPosY-3,NBTTag=(Drops=["group(type=message,ID=\"$8Your diamond is wasted!\";type=block,ID=air,posY='#'bPosY+3;type=block,ID=beacon,posY='#'bPosY+2;type=command,ID=\"/kill @a[r=10]\")"]))@luck=-1
group(type=structure,ID=wishing_well;type=message,ID="A wishing well? Maybe you should throw in an diamondz...";type=command,ID="/give #pName diamond 1 0 {display:{Name:\"$6Diamondz\"}}";type=block,ID=lucky:luckyluckyblock,posY=#bPosY-3,NBTTag=(Drops=["group(type=message,ID=\"$aYour diamond wish came true!\";type=block,ID=air,posY='#'bPosY+3;type=block,ID=beacon,posY='#'bPosY+2;ID=diamond,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(2);ID=diamond_block,amount=#rand(8,16),posY='#'bPosY+10,posOffset='#'circleOffset(2);type=entity,ID=FireworksRocketEntity,NBTTag=(LifeTime=20,FireworksItem=(id=fireworks,tag='#'randFireworksRocket)),amount=10,posY='#'bPosY+3,posOffset='#'circleOffset(2);ID=diamond,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(2);ID=diamond,amount=#rand(4,12),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 piece of paper...";type=command,ID="/give #pName paper 1 0 {display:{Name:\"$6JUMP IN LIKE A MAN!\"}}";type=block,ID=lucky:luckyluckyblock,posY=#bPosY-3,NBTTag=(Drops=["group(type=message,ID=\"$4Have Some Free Beacons!\";type=block,ID=air,posY='#'bPosY+3;type=block,ID=beacon,posY='#'bPosY+2;type=entity,ID=FallingSand,NBTTag=(Block=beacon,Motion='#'randLaunchMotion),posY='#'bPosY+7,amount=30;type=entity,ID=FallingSand,NBTTag=(Block=beacon,Motion='#'randLaunchMotion),posY='#'bPosY+7,amount=20;type=entity,ID=beacon,amount=#rand(5,10),posY='#'bPosY+10,posOffset='#'circleOffset(10))"]))@luck=-2
group(type=structure,ID=wishing_well;type=message,ID="A wishing well? Maybe you should throw in a diamond...";type=command,ID="/give #pName diamond 1 0 {display:{Name:\"$6Throw this diamond into the well!\"}}";type=block,ID=lucky:luckyluckyblock,posY=#bPosY-3,NBTTag=(Drops=["group(type=message,ID=\"$6Your Death wish didn't come true!\";type=block,ID=air,posY='#'bPosY+3;type=block,ID=beacon,posY='#'bPosY+2;ID=carrot,amount=#rand(60,70),posY='#'bPosY+10,posOffset='#'circleOffset(2))"]))@luck=1
group(type=structure,ID=wishing_well;type=message,ID="A wishing well? Maybe you should really not throw in a coin...";type=command,ID="/give #pName diamond 1 0 {display:{Name:\"$6Diamond of throwing\"}}";type=block,ID=lucky:luckyluckyblock,posY=#bPosY-3,NBTTag=(Drops=["group(type=message,ID=\"$bSurprising, isn't it?\";type=block,ID=air,posY='#'bPosY+3;type=block,ID=beacon,posY='#'bPosY+2;type=entity,ID=Creeper,amount=#rand(40,50),NBTTag=(powered=1),posOffset='#'circleOffset(3),posY='#'bPosY+10)"]))@luck=-2

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=diamond_block,maxAmount=8,weight=10),(id=gold_block,maxAmount=4,weight=10),(id=diamond_block,maxAmount=4,weight=10),(id=emerald_block,maxAmount=4,weight=10),(id=dye,Damage=4,maxAmount=4,weight=10),(id=lucky:lucky_lucky_block,maxAmount=2,weight=10),(id=golden_carrot,maxAmount=2,weight=10),(id=golden_apple,Damage=1,maxAmount=2,weight=10)],maxTotalAmount=12))@luck=2

ID=gold_ingot,amount=#rand(8,16)@luck=1
ID=golden_shovel@luck=1
ID=painting,amount=4@luck=0
ID=saddle,amount=2@luck=2
ID=cake,amount=4@luck=0
ID=nether_star@luck=30
ID=red_flower,NBTTag=(display=(Name="$cThis is a red flower, not a poppy."))@luck=1
ID=golden_hoe,NBTTag=(display=(Name="$eThis is a banana, not a Golden Hoe."))@luck=1

group(ID=bookshelf,amount=#rand(12,24);ID=book,amount=#rand(16,32))@luck=10
group(ID=pumpkin,amount=#rand(8,16);ID=lit_pumpkin,amount=#rand(8,16))@luck=10
group(ID=golden_apple,amount=#rand(12,48);ID=golden_apple,amount=#rand(8,31),damage=1)@luck=20
group(ID=bucket,amount=#rand(9,42);ID=water_bucket,amount=#rand(3,19);ID=lava_bucket,amount=#rand(7,21);ID=milk_bucket,amount=#rand(3,33))@luck=30
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(42,56));group(ID=grass,amount=#rand(30,40);ID=cooked_mutton,amount=#rand(16,34));group(ID=rabbit,amount=#rand(9,29);ID=cooked_rabbit,amount=#rand(21,49)))@luck=19
group:1:(group(ID=carrot,amount=#rand(19,26);ID=golden_carrot,amount=#rand(4,8));group(ID=potato,amount=#rand(8,16);ID=baked_potato,amount=#rand(4,8);ID=poisonous_potato,amount=#rand(2,4));group(ID=pumpkin_pie,amount=#rand(6,12)))@luck=1
group(ID=ender_pearl,amount=49;ID=ender_eye,amount=23)@luck=30
ID=skull,damage=#rand(0,4),amount=#rand(1,3)@luck=0
group(ID=jukebox;ID=#rand(2256,2267),amount=#rand(11,21))@luck=1
group(ID=ender_pearl,amount=#rand(1,3);ID=blaze_rod,amount=#rand(1,3);ID=ghast_tear,amount=#rand(1,3);ID=gold_nugget,amount=#rand(1,3);ID=nether_wart,amount=#rand(1,3);ID=spider_eye,amount=#rand(1,3);ID=fermented_spider_eye,amount=#rand(1,3);ID=blaze_powder,amount=#rand(1,3);ID=magma_cream,amount=#rand(1,3);ID=ender_eye,amount=#rand(1,3);ID=speckled_melon,amount=#rand(1,3);ID=rabbit_foot,amount=#rand(1,3);type=particle,ID=2002,damage=3)@luck=2
group(ID=dispenser,amount=38;ID=noteblock,amount=7;ID=sticky_piston,amount=3;ID=piston,amount=12;ID=tnt,amount=63;ID=lever,amount=23;ID=stone_pressure_plate,amount=20;ID=wooden_pressure_plate,amount=21;ID=redstone_torch,amount=38;ID=stone_button,amount=45;ID=trapdoor,amount=21;ID=iron_trapdoor,amount=64;ID=fence_gate,amount=1;ID=redstone_lamp,amount=128;ID=tripwire_hook,amount=28;ID=wooden_button,amount=39;ID=light_weighted_pressure_plate,amount=1;ID=heavy_weighted_pressure_plate,amount=1;ID=daylight_detector,amount=1;ID=hopper,amount=4;ID=dropper,amount=#rand(2,4);ID=wooden_door,amount=1;ID=iron_door,amount=1;ID=redstone,amount=#rand(32,64);ID=repeater,amount=8;ID=comparator,amount=2;type=particle,ID=2002,damage=9)@luck=2
group(group:1:(ID=wool,damage=#rand(0,15),amount=#rand(32,64);ID=stained_hardened_clay,damage=#rand(0,15),amount=#rand(32,64);ID=dye,damage=#rand(0,15),amount=#rand(32,64));type=particle,ID=2002,damage=#randPotionParticle,amount=10)@luck=1
group(ID=iron_ingot,amount=#rand(8,16);ID=gold_ingot,amount=#rand(8,16);ID=diamond,amount=#rand(8,16);ID=emerald,amount=#rand(8,16);ID=dye,damage=4,amount=#rand(8,16);type=entity,ID=FireworksRocketEntity,NBTTag=(LifeTime=20,FireworksItem=(id=fireworks,tag=#randFireworksRocket)),amount=20,posOffset=#circleOffset(0,2))@luck=2
group(ID=stone_slab,damage=7,amount=#rand(12,43);ID=quartz_ore,amount=#rand(16,32);ID=quartz_block,amount=#rand(63,64);ID=quartz_block,damage=1,amount=#rand(4,8);ID=quartz_block,damage=2,amount=#rand(4,8);ID=quartz_stairs,amount=#rand(4,8);ID=quartz,amount=#rand(24,32);type=particle,ID=2002,damage=14)@luck=1
group(ID=fishing_rod;ID=349,damage=#rand(0,3),amount=#rand(10,20))@luck=1
group(type=command,ID="/ #pName Listen to me, #pName. You are in grave danger. You need to not run. Now. Take this banana, it is your only food.",commandSender="Ghost_Rock_";ID=golden_sword,NBTTag=(display=(Name="$eBanana")))@luck=42
group:1:(ID=clock,NBTTag=(display=(Name="You're wasting your Lucky Lucky Blocks."));ID=fish,damage=2,NBTTag=(display=(Name="What's my name?"));ID=fish,damage=3,NBTTag=(display=(Name="I got a problem...")))@luck=40
group(ID=red_flower,damage=#rand(0,8),amount=64)@luck=0

group:1:(type=entity,ID=Pig,NBTTag=(CustomName="$e$lLucky Lucky Oink",CustomNameVisible=true);type=entity,ID=Cow,NBTTag=(CustomName="$e$lI Am A Sheep",CustomNameVisible=true);type=entity,ID=Chicken,NBTTag=(CustomName="$e$lJust a Chicken. (NOT)",CustomNameVisible=true);type=entity,ID=Sheep,NBTTag=(CustomName="$e$lLucky Cow",CustomNameVisible=true);type=entity,ID=Rabbit,NBTTag=(CustomName="$e$lLucky Bat",CustomNameVisible=true);type=entity,ID=Squid,NBTTag=(CustomName="$e$lLucky Squidward",CustomNameVisible=true))@luck=34
group(type=entity,ID=ThrownEgg,NBTTag=(Motion=#randLaunchMotion(0.6,15)),amount=40;type=entity,ID=Item,NBTTag=(Item=(id=diamond,Count=1),Motion=#randLaunchMotion(0.7,18)),amount=20)@luck=2
type=entity,ID=ThrownExpBottle,NBTTag=(Motion=#randLaunchMotion),amount=#rand(120,297)@luck=54
type=entity,ID=Villager,NBTTag=(Offers=(Recipes=[(buy=(id=diamond,Count=#rand(20,25)),sell=(id=diamond_sword,Count=1,tag=(ench=#luckySwordEnchantments,display=(Name="$e$lLucky Sword"))),maxUses=1),(buy=(id=diamond,Count=#rand(20,25)),sell=(id=bow,Count=1,tag=(ench=#luckyBowEnchantments,display=(Name="$e$lLucky Bow"))),maxUses=1),(buy=(id=diamond,Count=#rand(10,15)),sell=(id=fishing_rod,Count=1,tag=(ench=#luckyFishingRodEnchantments,display=(Name="$e$lLucky Fishing Rod"))),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)@luck=1
type=entity,ID=Villager,NBTTag=(Offers=(Recipes=[(buy=(id=diamond,Count=#rand(12,17)),sell=(id=diamond_helmet,Count=1,tag=(ench=#luckyHelmetEnchantments,display=(Name="$e$lLucky Helmet"))),maxUses=1),(buy=(id=diamond,Count=#rand(20,25)),sell=(id=diamond_chestplate,Count=1,tag=(ench=#luckyChestplateEnchantments,display=(Name="$e$lLucky Chestplate"))),maxUses=1),(buy=(id=diamond,Count=#rand(15,20)),sell=(id=golden_leggings,Count=1,tag=(ench=#luckyLeggingsEnchantments,display=(Name="$e$lLucky Leggings"))),maxUses=1),(buy=(id=diamond,Count=#rand(12,17)),sell=(id=golden_boots,Count=1,tag=(ench=#luckyBootsEnchantments,display=(Name="$e$lLucky Boots"))),maxUses=1)]),CustomName="$e$lLucky Villager",CustomNameVisible=true)@luck=1
type=entity,ID=Villager,NBTTag=(Offers=(Recipes=[(buy=(id=diamond,Count=#rand(10,15)),sell=(id=diamond_shovel,Count=1,tag=(ench=#luckyToolEnchantments,display=(Name="$e$lLucky Shovel"))),maxUses=1),(buy=(id=diamond,Count=#rand(15,20)),sell=(id=diamond_pickaxe,Count=1,tag=(ench=#luckyToolEnchantments,display=(Name="$e$lLucky Pickaxe"))),maxUses=1),(buy=(id=diamond,Count=#rand(15,20)),sell=(id=golden_axe,Count=1,tag=(ench=#luckyAxeEnchantments,display=(Name="$e$lLucky Axe"))),maxUses=1),(buy=(id=diamond,Count=#rand(10,15)),sell=(id=golden_hoe,Count=1,tag=(ench=#luckyToolEnchantments,display=(Name="$e$lLucky Hoe"))),maxUses=1)]),CustomName="$e$lLucky Villager",CustomNameVisible=true)@luck=1
group(type=fill,ID=air,size=(1,8,1);type=entity,ID=FallingSand,posY=#bPosY+7,NBTTag=(Block=iron_block);type=particle,ID=largesmoke,size=(1,2,1),particleAmount=500;type=sound,ID=random.fizz)@luck=0
group(type=fill,ID=air,size=(1,8,1);type=entity,ID=FallingSand,posY=#bPosY+7,NBTTag=(Block=gold_block);type=particle,ID=flame,size=(1,2,1),particleAmount=500;type=sound,ID=item.fireCharge.use)@luck=0
group(type=fill,ID=air,size=(1,8,1);type=entity,ID=FallingSand,posY=#bPosY+7,NBTTag=(Block=diamond_block);type=entity,ID=LightningBolt)@luck=1
group(type=fill,ID=air,size=(1,8,1);type=entity,ID=FallingSand,posY=#bPosY+7,NBTTag=(Block=emerald_block);type=particle,ID=happyVillager,size=(1,2,1),particleAmount=500;type=sound,ID=dig.grass)@luck=0
group(type=fill,ID=air,size=(1,51,1);group(NBTTag=(Block=stained_hardened_clay,Data=14),posY=#bPosY+5;NBTTag=(Block=stained_hardened_clay,Data=1),posY=#bPosY+10;NBTTag=(Block=stained_hardened_clay,Data=4),posY=#bPosY+15;NBTTag=(Block=stained_hardened_clay,Data=5),posY=#bPosY+20;NBTTag=(Block=stained_hardened_clay,Data=3),posY=#bPosY+25;NBTTag=(Block=stained_hardened_clay,Data=11),posY=#bPosY+30;NBTTag=(Block=stained_hardened_clay,Data=10),posY=#bPosY+35;NBTTag=(Block=stained_hardened_clay,Data=2),posY=#bPosY+40;NBTTag=(Block=stained_hardened_clay,Data=6),posY=#bPosY+45),type=entity,ID=FallingSand;type=entity,ID=FallingSand,NBTTag=(Block=emerald_block),posY=#bPosY+10;type=entity,ID=Cow,delay=5.3)@luck=40
group(type=fill,ID=air,size=(1,51,1);group(NBTTag=(Block=stained_hardened_clay,Data=14),posY=#bPosY+5;NBTTag=(Block=diamond_block,Data=1),posY=#bPosY+10;NBTTag=(Block=emerald_block,Data=4),posY=#bPosY+15;NBTTag=(Block=gold_block,Data=5),posY=#bPosY+20;NBTTag=(Block=iron_block,Data=3),posY=#bPosY+25;NBTTag=(Block=stone,Data=11),posY=#bPosY+30;NBTTag=(Block=diamond_block),posY=#bPosY+35;NBTTag=(Block=diamond_block,Data=2),posY=#bPosY+40;NBTTag=(Block=diamond_block,Data=6),posY=#bPosY+45),type=entity,ID=FallingSand;type=entity,ID=FallingSand,NBTTag=(Block=emerald_block),posY=#bPosY+10;type=entity,ID=Cow,delay=5.3)@luck=40

ID=diamond_sword,NBTTag=(ench=#luckySwordEnchantments,display=(Name="$e$lLucky Lucky Sword"))@luck=40

ID=bow,NBTTag=(ench=#luckyBowEnchantments,display=(Name="$e$lLucky Lucky Bow"))@luck=40

ID=fishing_rod,NBTTag=(ench=#luckyFishingRodEnchantments,display=(Name="$e$lLucky Lucky Fishing Rod"))@luck=39

group:#rand(1,2):(ID=golden_shovel,NBTTag=(ench=#luckyToolEnchantments,display=(Name="$e$lLucky Lucky Shovel"));ID=diamond_pickaxe,NBTTag=(ench=#luckyToolEnchantments,display=(Name="$e$lLucky Lucky Pickaxe"));ID=diamond_axe,NBTTag=(ench=#luckyAxeEnchantments,display=(Name="$e$lLucky Lucky Axe"));ID=diamond_hoe,NBTTag=(ench=#luckyToolEnchantments,display=(Name="$e$lLucky Lucky Hoe")))@luck=50

group:#rand(1,2):(ID=golden_helmet,NBTTag=(ench=#luckyHelmetEnchantments,display=(Name="$e$lLucky Lucky Helmet"));ID=diamond_chestplate,NBTTag=(ench=#luckyChestplateEnchantments,display=(Name="$e$Lucky Lucky Chestplate"));ID=diamond_leggings,NBTTag=(ench=#luckyLeggingsEnchantments,display=(Name="$e$lLucky Lucky Lucky? Leggings"));ID=diamond_boots,NBTTag=(ench=#luckyBootsEnchantments,display=(Name="$e$lLucky Lucky Boots")))@luck=40

ID=potion,damage=8195,NBTTag=(CustomPotionEffects=#luckyPotionEffects,display=(Name="$e$lLucky Lucky Potion"))@luck=80