/===Classic Lucky Stuff===
/classic lucky tools
group:#rand(1,2):( 
    ID=golden_shovel,NBTTag=(Enchantments=#luckyToolEnchantments,display=(Name=#jsonStr(text="Classic Lucky Shovel",color=yellow,bold=true)));
    ID=golden_pickaxe,NBTTag=(Enchantments=#luckyToolEnchantments,display=(Name=#jsonStr(text="Classic Lucky Pickaxe",color=yellow,bold=true)));
    ID=golden_axe,NBTTag=(Enchantments=#luckyAxeEnchantments,display=(Name=#jsonStr(text="Classic Lucky Axe",color=yellow,bold=true)));
    ID=golden_hoe,NBTTag=(Enchantments=#luckyToolEnchantments,display=(Name=#jsonStr(text="Classic Lucky Hoe",color=yellow,bold=true))))@luck=2

/classic lucky sword
ID=golden_sword,NBTTag=(Enchantments=#luckySwordEnchantments,display=(Name=#jsonStr(text="Classic Lucky Sword",color=yellow,bold=true)))@luck=2

/classic lucky armor
group:#rand(1,2):(
    ID=golden_helmet,NBTTag=(Enchantments=#luckyHelmetEnchantments,display=(Name=#jsonStr(text="Classic Lucky Helmet",color=yellow,bold=true)));
    ID=golden_chestplate,NBTTag=(Enchantments=#luckyChestplateEnchantments,display=(Name=#jsonStr(text="Classic Lucky Chestplate",color=yellow,bold=true)));
    ID=golden_leggings,NBTTag=(Enchantments=#luckyLeggingsEnchantments,display=(Name=#jsonStr(text="Classic Lucky Leggings",color=yellow,bold=true)));
    ID=golden_boots,NBTTag=(Enchantments=#luckyBootsEnchantments,display=(Name=#jsonStr(text="Classic Lucky Boots",color=yellow,bold=true)))
)@luck=2

/classic lucky potion
ID=potion,NBTTag=(
    Potion="fire_resistance",
    CustomPotionEffects=#luckyPotionEffects,
    display=(Name=#jsonStr(text="Classic Lucky Potion",color=yellow,bold=true))
)@luck=2

/classic unlucky potion
ID=splash_potion,NBTTag=(
    Potion="harming",
    CustomPotionEffects=#unluckyPotionEffects,
    display=(Name=#jsonStr(text="Classic Unlucky Potion",color=yellow,bold=true))
)@luck=1

/===Unlucky Stuff===
/unlucky tools
group:#rand(1,2):( 
    ID=wooden_shovel,NBTTag=(display=(Name=#jsonStr(text="Unlucky Shovel",color=whit,bold=true)));
    ID=wooden_pickaxe,NBTTag=(display=(Name=#jsonStr(text="Unlucky Pickaxe",color=whte,bold=true)));
    ID=wooden_axe,NBTTag=(display=(Name=#jsonStr(text="Unlucky Axe",color=white,bold=true)));
    ID=wooden_hoe,NBTTag=(display=(Name=#jsonStr(text="Unlucky Hoe",color=white,bold=true))))@luck=-1

/unlucky sword
ID=wooden_sword,NBTTag=(display=(Name=#jsonStr(text="Unlucky Sword",color=white,bold=true)))@luck=-1

/unlucky armor
group:#rand(1,2):(
    ID=leather_helmet,NBTTag=(display=(Name=#jsonStr(text="Unlucky Helmet",color=whit,bold=true)));
    ID=leather_chestplate,NBTTag=(display=(Name=#jsonStr(text="Unlucky Chestplate",color=white,bold=true)));
    ID=leather_leggings,NBTTag=(display=(Name=#jsonStr(text="Unlucky Leggings",color=white,bold=true)));
    ID=leather_boots,NBTTag=(display=(Name=#jsonStr(text="Unlucky Boots",color=white,bold=true)))
)@luck=-1

/===Very Lucky Stuff===
/very lucky tools
group:#rand(1,2):( 
    ID=diamond_shovel,NBTTag=(Enchantments=#luckyToolEnchantments,display=(Name=#jsonStr(text="Very Lucky Shovel",color=yellow,bold=true)));
    ID=diamond_pickaxe,NBTTag=(Enchantments=#luckyToolEnchantments,display=(Name=#jsonStr(text="Very Lucky Pickaxe",color=yellow,bold=true)));
    ID=diamond_axe,NBTTag=(Enchantments=#luckyAxeEnchantments,display=(Name=#jsonStr(text="Very Lucky Axe",color=yellow,bold=true)));
    ID=diamond_hoe,NBTTag=(Enchantments=#luckyToolEnchantments,display=(Name=#jsonStr(text="Very Lucky Hoe",color=yellow,bold=true))))@luck=2

/very lucky sword
ID=diamond_sword,NBTTag=(Enchantments=#luckySwordEnchantments,display=(Name=#jsonStr(text="Very Lucky Sword",color=yellow,bold=true)))@luck=2

/very lucky armor
group:#rand(1,2):(
    ID=diamond_helmet,NBTTag=(Enchantments=#luckyHelmetEnchantments,display=(Name=#jsonStr(text="Very Lucky Helmet",color=yellow,bold=true)));
    ID=diamond_chestplate,NBTTag=(Enchantments=#luckyChestplateEnchantments,display=(Name=#jsonStr(text="Very Lucky Chestplate",color=yellow,bold=true)));
    ID=diamond_leggings,NBTTag=(Enchantments=#luckyLeggingsEnchantments,display=(Name=#jsonStr(text="Very Lucky Leggings",color=yellow,bold=true)));
    ID=diamond_boots,NBTTag=(Enchantments=#luckyBootsEnchantments,display=(Name=#jsonStr(text="Very Lucky Boots",color=yellow,bold=true)))
)@luck=2


/===Mobs===
/ Joey the Wither Skeleton
group(type=difficulty,ID=hard;type=entity,ID=wither_skeleton,NBTTag=(
    HandItems=[(id=bow,Count=1,tag=(Enchantments=#luckyBowEnchantments))],
    ArmorItems=[(id=diamond_boots,Count=1,tag=(Enchantments=#luckyBootsEnchantments)),(id=diamond_leggings,Count=1,tag=(Enchantments=#luckyLeggingsEnchantments)),(id=diamond_chestplate,Count=1,tag=(Enchantments=#luckyChestplateEnchantments)),(id=diamond_helmet,Count=1,tag=(Enchantments=#luckyHelmetEnchantments))],
    HandDropChances=[0.5f,0f],ArmorDropChances=[0.3f,0.3f,0.3f,0.3f],
    CustomName=#jsonStr(text="Joey",color=yellow,bold=true),CustomNameVisible=true)
)@luck=-2
/ Mini-mites
type=entity,ID=endermite,NBTTag=(CustomName=#jsonStr(text="Mini-Mite",color=yellow,bold=true),CustomNameVisible=true),amount=#rand(10,25)@luck=-1
/ Skelly
group(type=difficulty,ID=hard;type=entity,ID=skeleton,NBTTag=(
    HandItems=[(id=iron_sword,Count=1,tag=(Enchantments=#luckySwordEnchantments))],
    ArmorItems=[(id=iron_boots,Count=1,tag=(Enchantments=#luckyBootsEnchantments)),(id=iron_leggings,Count=1,tag=(Enchantments=#luckyLeggingsEnchantments)),(id=iron_chestplate,Count=1,tag=(Enchantments=#luckyChestplateEnchantments)),(id=iron_helmet,Count=1,tag=(Enchantments=#luckyHelmetEnchantments))],
    HandDropChances=[0.5f,0f],ArmorDropChances=[0.3f,0.3f,0.3f,0.3f],
    CustomName=#jsonStr(text="Skelly",color=yellow,bold=true),CustomNameVisible=true)
)@luck=-2
/ Unlucky Blaze
type=entity,ID=blaze,NBTTag=(CustomName=#jsonStr(text="Unlucky Blaze",color=yellow,bold=true),CustomNameVisible=true),amount=#rand(1,5)@luck=-1
/lucky bunny
type=entity,ID=rabbit,NBTTag=(CustomName=#jsonStr(text="Lucky Bunny",color=yellow,bold=true),CustomNameVisible=true),amount=#rand(1,1)@luck=0
/Agent Snow
group(type=difficulty,ID=hard;type=entity,ID=snow_golem,NBTTag=(
    HandItems=[(id=bow,Count=1,tag=(Enchantments=#luckyBowEnchantments))],
    ArmorItems=[(id=diamond_boots,Count=1,tag=(Enchantments=#luckyBootsEnchantments)),(id=diamond_leggings,Count=1,tag=(Enchantments=#luckyLeggingsEnchantments)),(id=diamond_chestplate,Count=1,tag=(Enchantments=#luckyChestplateEnchantments)),(id=diamond_helmet,Count=1,tag=(Enchantments=#luckyHelmetEnchantments))],
    HandDropChances=[0.5f,0f],ArmorDropChances=[0.3f,0.3f,0.3f,0.3f],
    CustomName=#jsonStr(text="Agent Snow",color=yellow,bold=true),CustomNameVisible=true)
)@luck=1
/Unlucky Ghosts
type=entity,ID=vex,NBTTag=(CustomName=#jsonStr(text="Unlucky Ghost",color=yellow,bold=true),CustomNameVisible=true),amount=#rand(5,15)@luck=-1
/Ultimate Horseman
group(type=difficulty,ID=hard;type=entity,ID=bat,NBTTag=(
    Silent=true,
    ActiveEffects=[(Id=14,Duration=100000,Amplifier=1,ShowParticles=false)],
    Passengers=[(id=skeleton_horse,Tame=true,Type=4,
        Passengers=[(id=skeleton,
            HandItems=[(id=bow,Count=1,tag=(Enchantments=#luckyBowEnchantments))],
            ArmorItems=[(id=diamond_boots,Count=1,tag=(Enchantments=#luckyBootsEnchantments)),(id=diamond_leggings,Count=1,tag=(Enchantments=#luckyLeggingsEnchantments)),(id=diamond_chestplate,Count=1,tag=(Enchantments=#luckyChestplateEnchantments)),(id=diamond_helmet,Count=1,tag=(Enchantments=#luckyHelmetEnchantments))],
            HandDropChances=[0.5f,0f],ArmorDropChances=[0.3f,0.3f,0.3f,0.3f],
            CustomName=#jsonStr(text="Ultimate Horseman",color=blue,bold=true),CustomNameVisible=true)
        ])
    ])
)@luck=-2

/Jennifer Book Club
type=entity,ID=witch,NBTTag=(CustomName=#jsonStr(text="Jennifer Book Club",color=yellow,bold=true),CustomNameVisible=true),amount=#rand(8,16)@luck=-1

/ Billy Army
group(type=difficulty,ID=hard;type=entity,ID=zombie,NBTTag=(
    HandItems=[(id=stone_sword,Count=1,tag=(Enchantments=#luckySwordEnchantments))],
    ArmorItems=[(id=chainmail_boots,Count=1,tag=(Enchantments=#luckyBootsEnchantments)),(id=chainmail_leggings,Count=1,tag=(Enchantments=#luckyLeggingsEnchantments)),(id=chainmail_chestplate,Count=1,tag=(Enchantments=#luckyChestplateEnchantments)),(id=chainmail_helmet,Count=1,tag=(Enchantments=#luckyHelmetEnchantments))],
    HandDropChances=[0.5f,0f],ArmorDropChances=[0.3f,0.3f,0.3f,0.3f],
    CustomName=#jsonStr(text="Billy Army",color=yellow,bold=true),CustomNameVisible=true)
),amount=18@luck=-2

/Warlord Xu
group(type=difficulty,ID=hard;type=entity,ID=zombie,NBTTag=(
    HandItems=[(id=diamond_axe,Count=1,tag=(Enchantments=#luckySwordEnchantments))],
    ArmorItems=[(id=netherite_boots,Count=1,tag=(Enchantments=#luckyBootsEnchantments)),(id=netherite_leggings,Count=1,tag=(Enchantments=#luckyLeggingsEnchantments)),(id=netherite_chestplate,Count=1,tag=(Enchantments=#luckyChestplateEnchantments)),(id=lucky:lucky_block,Count=1,tag=(Enchantments=#luckyHelmetEnchantments))],
    HandDropChances=[0.5f,0f],ArmorDropChances=[0.3f,0.3f,0.3f,0.3f],
    CustomName=#jsonStr(text="Warlord Xu",color=red,bold=true),CustomNameVisible=true)
)@luck=-2

/Farmer Bob
group(type=difficulty,ID=hard;type=entity,ID=zombie,NBTTag=(
    HandItems=[(id=iron_hoe,Count=1,tag=(Enchantments=#luckySwordEnchantments))],
    ArmorItems=[(id=leather_boots,Count=1,tag=(Enchantments=#luckyBootsEnchantments)),(id=leather_leggings,Count=1,tag=(Enchantments=#luckyLeggingsEnchantments)),(id=leather_chestplate,Count=1,tag=(Enchantments=#luckyChestplateEnchantments)),(id=iron_helmet,Count=1,tag=(Enchantments=#luckyHelmetEnchantments))],
    HandDropChances=[0.5f,0f],ArmorDropChances=[0.3f,0.3f,0.3f,0.3f],
    CustomName=#jsonStr(text="Farmer Bob",color=gree,bold=true),CustomNameVisible=true)
)@luck=-1

/Mega Bob
group(type=difficulty,ID=hard;type=entity,ID=giant,NBTTag=(
    HandItems=[(id=diamond_sword,Count=1,tag=(Enchantments=#luckySwordEnchantments))],
    ArmorItems=[(id=diamond_boots,Count=1,tag=(Enchantments=#luckyBootsEnchantments)),(id=diamond_leggings,Count=1,tag=(Enchantments=#luckyLeggingsEnchantments)),(id=diamond_chestplate,Count=1,tag=(Enchantments=#luckyChestplateEnchantments)),(id=diamond_helmet,Count=1,tag=(Enchantments=#luckyHelmetEnchantments))],
    HandDropChances=[0.5f,0f],ArmorDropChances=[0.3f,0.3f,0.3f,0.3f],
    CustomName=#jsonStr(text="MEGA BOB",color=yellow,bold=true),CustomNameVisible=true)
)@luck=-2

/ Evil Player
group(type=difficulty,ID=hard;type=entity,ID=zombie,NBTTag=(
    HandItems=[(id=diamond_axe,Count=1,tag=(Enchantments=#luckySwordEnchantments))],
    ArmorItems=[(id=diamond_boots,Count=1,tag=(Enchantments=#luckyBootsEnchantments)),(id=diamond_leggings,Count=1,tag=(Enchantments=#luckyLeggingsEnchantments)),(id=diamond_chestplate,Count=1,tag=(Enchantments=#luckyChestplateEnchantments)),(id=player_head,Count=1,tag=(SkullOwner=#pName))],
    HandDropChances=[0.5f,0f],ArmorDropChances=[0.3f,0.3f,0.3f,0.3f],
    CustomName=#jsonStr(text="Evil #pName",color=red,bold=false),CustomNameVisible=true)
)@luck=-2



/===Items/Challenge Games===
ID=sponge@luck=0
ID=tnt,amount=8@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=saddle,amount=2@luck=0
ID=cake@luck=0
ID=nether_star@luck=2

/===Items===
/precious poppy
ID=poppy,NBTTag=(display=(Name=#jsonStr(text="Precious Poppy",color=dark_red)))@luck=-1

/wreaking ball
ID=snowball,NBTTag=(Enchantments=#luckySwordEnchantments,display=(Name=#jsonStr(text="Wreaking Ball",color=white,bold=true)))@luck=2

/Spawn Eggs and Spawner
group(ID=spawner,amount=1;ID=#randSpawnEgg,amount=#rand(5,9)@luck=2

/ iron, gold, diamond, emerald, lapis, with fireworks
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=lapis_lazuli,amount=#rand(8,16);
    type=entity,ID=firework_rocket,NBTTag=(
        LifeTime=20,FireworksItem=(id=firework_rocket,Count=1,tag=#randFireworksRocket)
    ),amount=20,posOffset=#circleOffset(0,2)
)@luck=2

/ Joke Items 1
group:1:(ID=iron_horse_armor,NBTTag=(display=(Name=#jsonStr(text="For Jen")));ID=red_mushroom_block,NBTTag=(display=(Name=#jsonStr(text="There's a Fungus Among Us")));ID=end_crystal,NBTTag=(display=(Name=#jsonStr(text="Oldest Anarchy Server in Minecraft"))))@luck=-1

/ Joke Items 2
group:1:(ID=gunpowder,NBTTag=(display=(Name=#jsonStr(text="Stop messaging me while I am configuring >:(")));ID=oak_boat,NBTTag=(display=(Name=#jsonStr(text="If you know, you know")));ID=eye_of_ender,NBTTag=(display=(Name=#jsonStr(text="Awakened Ender Eye"))))@luck=-1

/ EPIC DIRT
ID=dirt,NBTTag=(Enchantments=#luckySwordEnchantments,display=(Name=#jsonStr(text="EPIC DIRT!!!",color=yellow,bold=true)))@luck=1

/Peter Pumpkin
ID=carved_pumpkin,NBTTag=(Enchantments=#luckyHelmetEnchantments,display=(Name=#jsonStr(text="Peter Pumpkin",color=yellow,bold=true)))@luck=2

/ golden apples
group(ID=golden_apple,amount=#rand(2,4);ID=enchanted_golden_apple,amount=#rand(1,2))@luck=2

/ Pufferfishs
ID=pufferfish,amount=#rand(4,12)@luck=0

/ Minecarts and Rails
group(ID:minecart,amount=1;ID=rail,amount=#rand(8,24);ID=powered_rail,amount=#rand(8,24);ID=detector_rail,amount=#rand(8,24);ID=activator_rail,amount=#rand(8,24)))@luck=0

/ Cookies 4 Dayz!
ID=cookie,NBTTag=(display=(Name=#jsonStr(text="COOKIES 4 DAYZ",color=yellow))),amount=#rand(64,256)@luck=-1

/===Custom Items===
/Furb Lucky Block Book
type=command,ID=/summon item ~ ~1 ~ {Item:{id:written_book,tag:{pages:['[["Sometimes, things just don\\\'t go your way in life. here may be ups and downs on your adventure. And unlike what others would have you to believe, keep opening Lucky Blocks. You won\\\'t know what you\\\'ll get next. Love- AverageRat72353"]]'],title:"Furb Lucky Block Book",author:AverageRat72353},Count:1}}@luck=1

/Speedy Furb Lucky Boots
type=command,ID=/summon item ~ ~1 ~ {Item:{id:leather_boots,tag:{Trim:{pattern:wayfinder,material:lapis},display:{color:3949738,Name:'["",{"text":"Speedy Furb Lucky Boots","italic":false}]'},AttributeModifiers:[{AttributeName:"generic.armor",Amount:4,Slot:feet,UUID:[I;-12528,37180,113332,-74360],Name:1741453284587},{AttributeName:"generic.movement_speed",Amount:0.03,Slot:feet,UUID:[I;-12528,37480,113332,-74960],Name:1741453284587}],Unbreakable:1},Count:1}}@luck=2

/===Blocks===
/Tons of Bricks
ID=bricks,amount=#rand(16,32)@luck=1

/Ores
group:1:(group(ID=coal_ore,amount=#rand(8,16);ID=diamond_ore,amount=#rand(4,8);group(ID=emerald_ore,amount=#rand(4,8);ID=lapis_ore,amount=#rand(4,8);ID=iron_ore,amount=#rand(2,4));group(ID=gold_ore,amount=#rand(6,12)))@luck=1

/Obsidian
ID=obsidian,amount=14@luck=1

/Lucky Block Stuff
type=item,ID=lucky:lucky_block,NBTTag=(Luck=#randList(25,50,75,100,-75,-50,-25,-100)),amount=#rand(5,12)@luck=2

/Lots of Furnaces (with fuel)
group(ID=furnace,amount=#rand(4,12);ID=coal,amount=#rand(24,48))@luck=2

/"Cheese"
ID=end_stone,NBTTag=(display=(Name=#jsonStr(text="CHEESE!!!",color=white)))@luck=-1

/"Lucky Block"
ID=yellow_wool,NBTTag=(display=(Name=#jsonStr(text="This is a Lucky Block.",color=yellow)))@luck=-1

/Rock and Roll
ID=cobblestone,NBTTag=(display=(Name=#jsonStr(text="ROCK AND ROLL!!",color=red))),amount=#rand(24,120)@luck=-1

/Try Again
ID=lucky:furb_lucky_block,NBTTag=(display=(Name=#jsonStr(text="Try Again!")))@luck=-1

/ Lots of Cookies
group:#rand(8,24):( 
    ID=cookie,NBTTag=(display=(Name=#jsonStr(text="Chocolate Chip Cookie",color=yellow)));
    ID=cookie,NBTTag=(display=(Name=#jsonStr(text="White Chocolate Cookie",color=yellow)));
    ID=cookie,NBTTag=(display=(Name=#jsonStr(text="Madeline Cookie",color=yellow)));
    ID=cookie,NBTTag=(display=(Name=#jsonStr(text="Cocoa Cookie",color=yellow))))@luck=2

/===Wishing Wells===
/Bacon Well
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{display:{Name:"{\"text\":\"Coin\",\"color\":\"gold\"}"}};
    type=block,ID=lucky:lucky_block,posY=#bPosY-3,NBTTag=(Drops=["group(
        type=message,ID=\"$eYour bacon wish came true!\";
        type=block,ID=air,posY='#'bPosY+3;
        type=block,ID=beacon,posY='#'bPosY+2;
        ID=cooked_porkchop,amount=128,posY='#'bPosY+10,posOffset='#'circleOffset(2);
        ID=raw_porkchop,amount=64,posY='#'bPosY+10,posOffset='#'circleOffset(2)
    )"])
)@luck=1

/ Good Stuff Well
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{display:{Name:"{\"text\":\"Coin\",\"color\":\"gold\"}"}};
    type=block,ID=lucky:lucky_block,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=firework_rocket,NBTTag=(LifeTime=20,FireworksItem=(id=firework_rocket,Count=1,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=lapis_lazuli,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(2)
    )"])
)@luck=2
 
/ Blazes Well
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{display:{Name:"{\"text\":\"Coin\",\"color\":\"gold\"}"}};
    type=block,ID=lucky:lucky_block,posY=#bPosY-3,NBTTag=(Drops=["group(
        type=message,ID=\"$4Your blaze wish came true! Have Fun!!\";
        type=block,ID=air,posY='#'bPosY+3;
        type=block,ID=beacon,posY='#'bPosY+2;
        type=entity,ID=blaze,NBTTag=(Motion='#'randLaunchMotion),posY='#'bPosY+7,amount=20
    )"])
)@luck=-2

/Nuke Drop
type=entity,ID=tnt,NBTTag=(Fuse=50b,Motion=#randLaunchMotion),amount=35@luck=-2

/Defender Well
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{display:{Name:"{\"text\":\"Coin\",\"color\":\"gold\"}"}};
    type=block,ID=lucky:lucky_block,posY=#bPosY-3,NBTTag=(Drops=["group(
        type=message,ID=\"$eYou Got Defense!!!\";
        type=block,ID=air,posY='#'bPosY+3;
        type=block,ID=beacon,posY='#'bPosY+2;
        type=entity,ID=iron_golem,NBTTag=(Motion='#'randLaunchMotion),posY='#'bPosY+7,amount=20
    )"])
)@luck=2

/Goodbye :)
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{display:{Name:"{\"text\":\"Coin\",\"color\":\"gold\"}"}};
    type=block,ID=lucky:lucky_block,posY=#bPosY-3,NBTTag=(Drops=["group(
        type=message,ID=\"$4Goodbye :)\";
        type=block,ID=air,posY='#'bPosY+3;
        type=block,ID=beacon,posY='#'bPosY+2;
        type=entity,ID=tnt,NBTTag=(Fuse=50b,Motion='#'randLaunchMotion),posY='#'bPosY+7,amount=50
    )"])
)@luck=-2

/ Christmas Well
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{display:{Name:"{\"text\":\"Coin\",\"color\":\"gold\"}"}};
    type=block,ID=lucky:lucky_block,posY=#bPosY-3,NBTTag=(Drops=["group(
        type=message,ID=\"$bChristmas came Early!\";
        type=block,ID=air,posY='#'bPosY+3;
        type=block,ID=beacon,posY='#'bPosY+2;
        type=entity,ID=firework_rocket,NBTTag=(LifeTime=20,FireworksItem=(id=firework_rocket,Count=1,tag='#'randFireworksRocket)),amount=20,posY='#'bPosY+3,posOffset='#'circleOffset(2);
        ID=gold_block,amount=#rand(7,14),posY='#'bPosY+10,posOffset='#'circleOffset(2);
        ID=diamond_block,amount=#rand(3,9),posY='#'bPosY+10,posOffset='#'circleOffset(2);
        ID=emerald_block,amount=#rand(3,9),posY='#'bPosY+10,posOffset='#'circleOffset(2);
        ID=iron_block,amount=#rand(7,14),posY='#'bPosY+10,posOffset='#'circleOffset(2)
    )"])
)@luck=2



/Polls

/ basic poll
group(type=fill,ID=air,size=(1,51,1);
    group(
        NBTTag=(BlockState=(Name=red_glazed_terracotta)),posY=#bPosY+5;
        NBTTag=(BlockState=(Name=orange_glazed_terracotta)),posY=#bPosY+10;
        NBTTag=(BlockState=(Name=yellow_glazed_terracotta)),posY=#bPosY+15;
        NBTTag=(BlockState=(Name=lime_glazed_terracotta)),posY=#bPosY+20;
        NBTTag=(BlockState=(Name=light_blue_glazed_terracotta)),posY=#bPosY+25;
        NBTTag=(BlockState=(Name=blue_glazed_terracotta)),posY=#bPosY+30;
        NBTTag=(BlockState=(Name=purple_glazed_terracotta)),posY=#bPosY+35;
        NBTTag=(BlockState=(Name=magenta_glazed_terracotta)),posY=#bPosY+40;
        NBTTag=(BlockState=(Name=pink_glazed_terracotta)),posY=#bPosY+45
    ),type=entity,ID=falling_block;
    type=entity,ID=falling_block,NBTTag=(BlockState=(Name=diamond_block)),posY=#bPosY+50;
    type=entity,ID=lightning_bolt,posY=#bPosY+10,delay=5.3
)@luck=2

/ sponge poll
group(type=fill,ID=air,size=(1,51,1);
    group(
        NBTTag=(BlockState=(Name=prismarine_bricks)),posY=#bPosY+5;
        NBTTag=(BlockState=(Name=prismarine_bricks)),posY=#bPosY+10;
        NBTTag=(BlockState=(Name=gold_block)),posY=#bPosY+15;
        NBTTag=(BlockState=(Name=prismarine_bricks)),posY=#bPosY+20;
        NBTTag=(BlockState=(Name=prismarine_bricks)),posY=#bPosY+25;
        NBTTag=(BlockState=(Name=gold_block)),posY=#bPosY+30;
        NBTTag=(BlockState=(Name=prismarine_bricks)),posY=#bPosY+35;
        NBTTag=(BlockState=(Name=prismarine_bricks)),posY=#bPosY+40;
        NBTTag=(BlockState=(Name=gold_block)),posY=#bPosY+45
    ),type=entity,ID=falling_block;
    type=entity,ID=falling_block,NBTTag=(BlockState=(Name=sponge)),posY=#bPosY+50
)@luck=1

/ dirt poll
group(type=fill,ID=air,size=(1,51,1);
    group(
        NBTTag=(BlockState=(Name=dirt)),posY=#bPosY+5;
        NBTTag=(BlockState=(Name=dirt)),posY=#bPosY+10;
        NBTTag=(BlockState=(Name=dirt)),posY=#bPosY+15;
        NBTTag=(BlockState=(Name=dirt)),posY=#bPosY+20;
        NBTTag=(BlockState=(Name=dirt)),posY=#bPosY+25;
        NBTTag=(BlockState=(Name=dirt)),posY=#bPosY+30;
        NBTTag=(BlockState=(Name=dirt)),posY=#bPosY+35;
        NBTTag=(BlockState=(Name=dirt)),posY=#bPosY+40;
        NBTTag=(BlockState=(Name=dirt)),posY=#bPosY+45
    ),type=entity,ID=falling_block;
    type=entity,ID=falling_block,NBTTag=(BlockState=(Name=grass_block)),posY=#bPosY+50
)@luck=-1

/ lucky buildings
type=structure,ID=lucky_fort,pos=#pPos@luck=2
type=structure,ID=lucky_temple,pos=#pPos@chance=0.4@luck=2

/===Lucky Item Drops===

/Sword, Bow or Potions
type=item,ID=lucky:furb_lucky_sword@chance=1.5@luck=2
type=item,ID=lucky:furb_lucky_bow@chance=1.5@luck=2
type=item,ID=lucky:furb_lucky_potion,NBTTag=(Luck=#randList(100,-100)),amount=#rand(10,15)@chance=1.5@luck=2

/All 3
group(
    type=item,ID=lucky:furb_lucky_sword;
    type=item,ID=lucky:furb_lucky_bow;
    type=item,ID=lucky:furb_lucky_potion,NBTTag=(Luck=#randList(100,-100)),amount=#rand(10,15);
    type=entity,ID=firework_rocket,NBTTag=(
        LifeTime=20,FireworksItem=(id=firework_rocket,Count=1,tag=#randFireworksRocket)
    ),amount=20,posOffset=#circleOffset(0,2)
)@luck=2


/===Merchants===

/ evil villager
type=entity,ID=villager,NBTTag=(
    VillagerData=(level=3,profession=toolsmith,type=jungle),
    Offers=(Recipes=[
        (buy=(id=diamond,Count=#rand(2,5)),sell=(id=dead_bush,Count=1,tag=(display=(Name=#jsonStr(text="Lucky Bush",color=yellow,bold=true)))),maxUses=1),
        (buy=(id=diamond,Count=#rand(2,5)),sell=(id=dirt,Count=1,tag=(Enchantments=#luckySwordEnchantments,display=(Name=#jsonStr(text="Lucky Dirt",color=yellow,bold=true)))),maxUses=1),
        (buy=(id=diamond,Count=#rand(3,8)),sell=(id=cobweb,Count=1,tag=(Enchantments=#luckyAxeEnchantments,display=(Name=#jsonStr(text="Web Disaster",color=dark_red,bold=true)))),maxUses=1),
	(buy=(id=diamond,Count=#rand(3,8)),sell=(id=cookie,Count=1,tag=(Enchantments=#luckyShovelEnchantments,display=(Name=#jsonStr(text="Creepy Cookie",color=dark_red,bold=true)))),maxUses=1)
    ]),
    CustomName=#jsonStr(text="Evil Villager",color=dark_red,bold=true),CustomNameVisible=true
)@luck=1

/ weird al
type=entity,ID=villager,NBTTag=(
    VillagerData=(level=3,profession=librarian,type=jungle),
    Offers=(Recipes=[
        (buy=(id=diamond,Count=#rand(10,15)),sell=(id=shears,Count=1,tag=(Enchantments=#luckySwordEnchantments,display=(Name=#jsonStr(text="Finger Nail Clippers",color=yellow,bold=true)))),maxUses=1),
        (buy=(id=diamond,Count=#rand(5,15)),sell=(id=cooked_porkchop,Count=14,tag=(display=(Name=#jsonStr(text="Healthy Vegan Pork",color=yellow,bold=true)))),maxUses=1),
        (buy=(id=diamond,Count=#rand(5,15)),sell=(id=creeper_head,Count=1,tag=(Enchantments=#luckyHelmetEnchantments,display=(Name=#jsonStr(text="Cool Creeper Mask",color=yellow,bold=true)))),maxUses=1),
        (buy=(id=diamond,Count=#rand(15,25)),sell=(id=diamond_hoe,Count=1,tag=(Enchantments=#luckySwordEnchantments,display=(Name=#jsonStr(text="Sharp Blue Hoe",color=yellow,bold=true)))),maxUses=1),
	(buy=(id=diamond,Count=#rand(10,20)),sell=(id=coal,Count=1,tag=(Enchantments=#luckyToolEnchantments,display=(Name=#jsonStr(text="Coal Cataclysm",color=yellow,bold=true)))),maxUses=1)
    ]),
    CustomName=#jsonStr(text="Weird Al",color=green,bold=true),CustomNameVisible=true
)@luck=1

/ classic lucky villager (tools)
type=entity,ID=villager,NBTTag=(
    VillagerData=(level=3,profession=nitwit,type=plains),
    Offers=(Recipes=[
        (buy=(id=diamond,Count=#rand(10,15)),sell=(id=golden_shovel,Count=1,tag=(Enchantments=#luckyToolEnchantments,display=(Name=#jsonStr(text="Classic Lucky Shovel",color=yellow,bold=true)))),maxUses=1),
        (buy=(id=diamond,Count=#rand(15,20)),sell=(id=golden_pickaxe,Count=1,tag=(Enchantments=#luckyToolEnchantments,display=(Name=#jsonStr(text="Classic Lucky Pickaxe",color=yellow,bold=true)))),maxUses=1),
        (buy=(id=diamond,Count=#rand(15,20)),sell=(id=golden_axe,Count=1,tag=(Enchantments=#luckyAxeEnchantments,display=(Name=#jsonStr(text="Classic Lucky Axe",color=yellow,bold=true)))),maxUses=1),
        (buy=(id=diamond,Count=#rand(10,15)),sell=(id=golden_hoe,Count=1,tag=(Enchantments=#luckyToolEnchantments,display=(Name=#jsonStr(text="Classic Lucky Hoe",color=yellow,bold=true)))),maxUses=1)
    ]),
    CustomName=#jsonStr(text="ClassicLucky Villager",color=yellow,bold=true),CustomNameVisible=true
)@luck=1

/ classic lucky villager (armor)
type=entity,ID=villager,NBTTag=(
    VillagerData=(level=3,profession=nitwit,type=plains),
    Offers=(Recipes=[
        (buy=(id=diamond,Count=#rand(12,17)),sell=(id=golden_helmet,Count=1,tag=(Enchantments=#luckyHelmetEnchantments,display=(Name=#jsonStr(text="Classic Lucky Helmet",color=yellow,bold=true)))),maxUses=1),
        (buy=(id=diamond,Count=#rand(20,25)),sell=(id=golden_chestplate,Count=1,tag=(Enchantments=#luckyChestplateEnchantments,display=(Name=#jsonStr(text="Classic Lucky Chestplate",color=yellow,bold=true)))),maxUses=1),
        (buy=(id=diamond,Count=#rand(15,20)),sell=(id=golden_leggings,Count=1,tag=(Enchantments=#luckyLeggingsEnchantments,display=(Name=#jsonStr(text="Classic Lucky Leggings",color=yellow,bold=true)))),maxUses=1),
        (buy=(id=diamond,Count=#rand(12,17)),sell=(id=golden_boots,Count=1,tag=(Enchantments=#luckyBootsEnchantments,display=(Name=#jsonStr(text="Classic Lucky Boots",color=yellow,bold=true)))),maxUses=1)
    ]),
    CustomName=#jsonStr(text="Classic Lucky Villager",color=yellow,bold=true),CustomNameVisible=true
)@luck=1

/ classic lucky vilager (others)
type=entity,ID=villager,NBTTag=(
    VillagerData=(level=3,profession=nitwit,type=plains),
    Offers=(Recipes=[
        (buy=(id=diamond,Count=#rand(20,25)),sell=(id=golden_sword,Count=1,tag=(Enchantments=#luckySwordEnchantments,display=(Name=#jsonStr(text="Classic Lucky Sword",color=yellow,bold=true)))),maxUses=1),
        (buy=(id=diamond,Count=#rand(20,25)),sell=(id=bow,Count=1,tag=(Enchantments=#luckyBowEnchantments,display=(Name=#jsonStr(text="Classic Lucky Bow",color=yelow,bold=true)))),maxUses=1),
        (buy=(id=diamond,Count=#rand(10,15)),sell=(id=fishing_rod,Count=1,tag=(Enchantments=#luckyFishingRodEnchantments,display=(Name=#jsonStr(text="Classic Lucky Fishing Rod",color=yellow,bold=true)))),maxUses=1),
        (buy=(id=diamond,Count=#rand(10,15)),sell=(id=potion,Count=1,tag=(Potion="fire_resistance",CustomPotionEffects=#luckyPotionEffects,display=(Name=#jsonStr(text="Classic Lucky Potion",color=yellow,bold=true)))),maxUses=1),
        (buy=(id=diamond,Count=#rand(7,12)),sell=(id=splash_potion,Count=1,tag=(Potion="harming",CustomPotionEffects=#unluckyPotionEffects,display=(Name=#jsonStr(text="Classic Unlucky Potion",color=yellow,bold=true)))),maxUses=1)
    ]),
    CustomName=#jsonStr(text="Classic Lucky Villager",color=yellow,bold=true),CustomNameVisible=true
)@luck=1








