/ ========== TOOLS & ARMOR ==========

/ all wood, stone and gold tools
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

/ 1-2 netherite tools
group:#rand(1,2):(ID=netherite_sword;ID=netherite_shovel;ID=netherite_pickaxe;ID=netherite_axe;ID=netherite_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

/ 2-3 chain and iron armor
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

/ 1-2 diamond armor
group:#rand(1,2):(ID=diamond_helmet;ID=diamond_chestplate;ID=diamond_leggings;ID=diamond_boots;ID=diamond_horse_armor)@luck=2

/ 1-2 netherite armor
group:#rand(1,2):(ID=netherite_helmet;ID=netherite_chestplate;ID=netherite_leggings;ID=netherite_boots;ID=diamond_horse_armor)@luck=2

/ 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

/ crossbow and arrows
group(ID=crossbow;ID=arrow,amount=#rand(16,32))@luck=1

/ ========== BLOCKS ==========

ID=sponge@luck=0
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

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

ID=gold_ingot,amount=#rand(8,16)@luck=1
ID=stick@luck=-1
ID=painting,amount=4@luck=0
ID=saddle,amount=2@luck=0
ID=cake@luck=0
ID=rotten_flesh@luck=-1
ID=nether_star@luck=2
ID=poppy,NBTTag=(display=(Name=#jsonStr(text="Romantic Rose",color=dark_red)))@luck=-1
ID=rabbit_stew,amount=#rand(5,7)@luck=1

/ ========== GROUPS ==========

/ bookshelves and books
group(ID=bookshelf,amount=#rand(6,12);ID=book,amount=#rand(8,16))@luck=0

/ pumpkins and jack o'lanterns
group(ID=pumpkin,amount=#rand(8,16);ID=jack_o_lantern,amount=#rand(8,16))@luck=0

/ golden apples
group(ID=golden_apple,amount=#rand(2,4);ID=enchanted_golden_apple,amount=#rand(1,2))@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=salmon,amount=#rand(8,16);ID=cooked_salmon,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

/ vegetable food (carrots, potatoes, pumpkin pie)
group:1:(group(ID=carrot,amount=#rand(8,16);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

/ ender pearls and eyes
group(ID=ender_pearl,amount=10;ID=ender_eye,amount=5)@luck=2

/ potions
ID=#randList(potion,splash_potion),NBTTag=(Potion=#randPotion),amount=#rand(4,8)@luck=1

/ spawn eggs
ID=#randSpawnEgg,amount=#rand(4,8)@luck=1

/ heads
group:#rand(1,3):(ID=skeleton_skull;ID=wither_skeleton_skull;ID=zombie_head;ID=player_head;ID=creeper_head)@luck=0

/ jukebox and music discs
group(ID=jukebox;ID=#randList(music_disc_11,music_disc_13,music_disc_blocks,music_disc_chirp,music_disc_far,music_disc_mall,music_disc_mellohi,music_disc_stal,music_disc_strad,music_disc_wait,music_disc_ward),amount=#rand(1,3))@luck=1

/ brewing
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=glistering_melon_slice,amount=#rand(1,3);ID=rabbit_foot,amount=#rand(1,3);type=particle,ID=splashpotion,potion="fire_resistance")@luck=2

/ redstone
group(ID=dispenser,amount=2;ID=note_block,amount=1;ID=sticky_piston,amount=4;ID=piston,amount=4;ID=tnt,amount=6;ID=lever,amount=2;ID=stone_pressure_plate,amount=2;ID=oak_pressure_plate,amount=2;ID=redstone_torch,amount=8;ID=stone_button,amount=2;ID=oak_trapdoor,amount=2;ID=iron_trapdoor,amount=2;ID=oak_fence_gate,amount=1;ID=redstone_lamp,amount=4;ID=tripwire_hook,amount=2;ID=oak_button,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=oak_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=splashpotion,potion="healing")@luck=2

/ colorful
group(group:1:(ID=#randColor_wool,amount=#rand(32,64);ID=#randColor_terracotta,amount=#rand(32,64);ID=#randColor_dye,amount=#rand(32,64));type=particle,ID=splashpotion,potion=#randPotion,amount=10)@luck=1

/ 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

/ quartz
group(
    ID=quartz_slab,amount=#rand(4,8);
    ID=nether_quartz_ore,amount=#rand(16,32);
    ID=quartz_block,amount=#rand(4,8);
    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=splashpotion,potion="invisibility"
)@luck=1

/ fish
group(ID=fishing_rod;ID=#randList(cod,pufferfish,salmon,tropical_fish),amount=#rand(10,20))@luck=1

/ random jokes
group:1:(ID=clock,NBTTag=(display=(Name=#jsonStr(text="You're wasting your time")));ID=tropical_fish,NBTTag=(display=(Name=#jsonStr(text="I'm funny")));ID=pufferfish,NBTTag=(display=(Name=#jsonStr(text="Oooooh!"))))@luck=-1

/ flowers
ID=#randList(dandelion,poppy,blue_orchid,allium,azure_bluet,pink_tulip,oxeye_daisy),amount=64@luck=0

/ enchantment books
ID=enchanted_book,NBTTag=(StoredEnchantments=#randEnchantment),amount=#rand(7,10)@luck=1

/ prismarine
group(ID=prismarine,amount=#rand(4,8);ID=prismarine,damage=1,amount=#rand(4,8);ID=prismarine,damage=2,amount=#rand(4,8);ID=sea_lantern,amount=#rand(4,8);ID=prismarine_shard,amount=#rand(15,30);ID=prismarine_crystals,amount=#rand(10,20);type=particle,ID=splashpotion,potion="invisibility")@luck=1

/ ========== ENTITIES ==========

/ lucky mobs
group:1:(
    type=entity,ID=pig,NBTTag=(CustomName=#jsonStr(text="Lucky Pig",color=yellow,bold=true),CustomNameVisible=true);
    type=entity,ID=cow,NBTTag=(CustomName=#jsonStr(text="Lucky Cow",color=yellow,bold=true),CustomNameVisible=true);
    type=entity,ID=chicken,NBTTag=(CustomName=#jsonStr(text="Lucky Chicken",color=yellow,bold=true),CustomNameVisible=true);
    type=entity,ID=sheep,NBTTag=(CustomName=#jsonStr(text="Lucky Sheep",color=yellow,bold=true),CustomNameVisible=true);
    type=entity,ID=rabbit,NBTTag=(CustomName=#jsonStr(text="Lucky Rabbit",color=yellow,bold=true),CustomNameVisible=true);
    type=entity,ID=squid,NBTTag=(CustomName=#jsonStr(text="Unlucky Squid",color=yellow,bold=true),CustomNameVisible=true)
)@luck=0

/ colored sheep
type=entity,ID=sheep,NBTTag=(CustomName=#jsonStr(text="$cM$6r. $eR$aa$2i$bn$3b$5o$dw"),CustomNameVisible=true,Color=#rand(0,15)),posOffset=#circleOffset(4),amount=16@luck=1

/ eggs + diamonds
group(type=entity,ID=egg,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

/ thrown exp bottles
type=entity,ID=experience_bottle,NBTTag=(Motion=#randLaunchMotion),amount=#rand(16,32)@luck=2

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

/ lightning creeper
group(type=difficulty,ID=hard;type=entity,ID=creeper;type=entity,ID=lightning_bolt)@luck=-2

/ giant
group(type=difficulty,ID=hard;type=entity,ID=majruszsdifficulty:giant)@luck=-2

/ wither
group(type=difficulty,ID=hard;type=entity,ID=wither)@chance=0.1@luck=-2

/ ghast
group(type=difficulty,ID=hard;type=entity,ID=ghast)@chance=0.2@luck=-2

/ elder guardian
group(type=difficulty,ID=hard;type=entity,ID=guardian,NBTTag=(Elder=1))@chance=0.5@luck=-2

/ killer rabbit
group(type=difficulty,ID=hard;type=entity,ID=rabbit,NBTTag=(RabbitType=99))@luck=-1

/ ghostly horseman skeleton
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=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="Ghostly Horseman",color=gray,bold=true),CustomNameVisible=true)
        ])
    ])
)@luck=-2

/ stacked villager and pigs
type=entity,ID=pig,NBTTag=(Passengers=[(id=pig,Passengers=[(id=pig,Passengers=[(id=pig,Passengers=[(id=pig,Passengers=[(id=pig,Passengers=[(id=pig,Passengers=[(id=pig,Passengers=[(id=villager,VillagerData=(profession=nitwit))])])])])])])])])@luck=0

/ horses
type=entity,ID=#randList(horse,skeleton_horse,zombie_horse),amount=12,posOffset=#circleOffset(4),NBTTag=(Tame=true,Owner=#pUUIDArray)@luck=1

/ llamas
type=entity,ID=llama,amount=8,posOffset=#circleOffset(4),NBTTag=(CustomName=#jsonStr(text=#randList(Llaura,Llauretta,Llavender,Llinda,Llisa,Llouise,Llucy,Llydia),color=dark_purple,bold=true),Variant=#rand(0,3),CustomNameVisible=true)@luck=0

/ witch with bats
group(type=difficulty,ID=hard;type=entity,ID=witch;type=entity,ID=bat,posY=#bPosY+#rand(0,2),posOffset=#circleOffset(0,1),amount=64)@luck=-1

/ huge slime and magma cube
group:1:(type=entity,ID=slime,NBTTag=(Size=10);type=entity,ID=magma_cube,NBTTag=(Size=10))@luck=-2

/ pet wolves
group(type=entity,ID=wolf,amount=#rand(5,10),posOffset=#circleOffset(3),NBTTag=(CollarColor=#rand(0,15),Owner=#pUUIDArray,Sitting=true);type=particle,ID="heart",size=(2,0,2),particleAmount=20)@luck=1

/ pet cats
group(type=entity,ID=cat,amount=#rand(5,10),posOffset=#circleOffset(3),NBTTag=(CatType=#rand(0,10),CollarColor=#rand(0,15),Owner=#pUUIDArray,Sitting=true);type=particle,ID="heart",size=(2,0,2),particleAmount=20)@luck=1

/ pet rabbits
group(type=entity,ID=rabbit,amount=#rand(5,10),posOffset=#circleOffset(3),NBTTag=(RabbitType=#rand(0,5));type=particle,ID="heart",size=(2,0,2),particleAmount=20)@luck=1

/lucky leaves
type=entity,id=craziness_awakened.triffid,nBTTag=(CustomName="$2$lLucky $2$lLeaves",CustomNameVisible=true),scatterOffset=4-4,adjustHeight=2,amount=16,relativeToPlayer=true,reinitialize=true@luck=-1

/sweg bees
type=entity,id=craziness_awakened.wasp,nBTTag=(CustomName="$6$lSweg $6$lBee",CustomNameVisible=true),scatterOffset=4-4,adjustHeight=2,amount=16,relativeToPlayer=true,reinitialize=true@luck=-1

/mantis army
type=entity,id=craziness_awakened.mantis,nBTTag=(CustomName="$2$lMantis $2$lArmy",CustomNameVisible=true),scatterOffset=4-4,adjustHeight=2,amount=16,relativeToPlayer=true,reinitialize=true@luck=-2

/mobzilla
group(type=difficulty,id=hard;type=entity,id=craziness_awakened.mobzilla)@chance=0.1@luck=-2

/bob the decked zombie
group(type=difficulty,id=hard;type=entity,id=zombie,nBTTag=(HandItems=[(id=netherite_sword,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))],HandDropChances=[0f,0f],ArmorDropChances=[0f,0f,0f,1f],CustomName=#jsonStr(text="Lucky Bob",color=yellow,bold=true),CustomNameVisible=true))@luck=-1

/bobmom
group(type=difficulty,id=hard;type=entity,id=zombie,nBTTag=(HandItems=[(id=netherite_sword,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))],HandDropChances=[0f,0f],ArmorDropChances=[0f,0f,0f,1f],CustomName=#jsonStr(text="Bob's Mom",color=yellow,bold=true),CustomNameVisible=true))@luck=-2

/charles the decked scorpion
group(type=difficulty,id=hard;type=entity,id=craziness_awakened:scorpion,nBTTag=(HandItems=[(id=netherite_sword,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))],HandDropChances=[0f,0f],ArmorDropChances=[0f,0f,0f,1f],CustomName=#jsonStr(text="Charles",color=yellow,bold=true),CustomNameVisible=true))@luck=-2

/king bob
group(type=difficulty,id=hard;type=entity,id=zombie,nBTTag=(HandItems=[(id=craziness_awakened:royal_guardian_sword,Count=1,tag=(Enchantments=#luckySwordEnchantments))],ArmorItems=[(id=craziness_awakened:royal_guardian_boots,Count=1,tag=(Enchantments=#luckyBootsEnchantments)),(id=craziness_awakened:royal_guardian_leggings,Count=1,tag=(Enchantments=#luckyLeggingsEnchantments)),(id=craziness_awakened:royal_guardian_chestplate,Count=1,tag=(Enchantments=#luckyChestplateEnchantments))],HandDropChances=[0f,0f],ArmorDropChances=[0f,0f,0f,1f],CustomName=#jsonStr(text="King Bob",color=yellow,bold=true),CustomNameVisible=true))@luck=-2

/alien
group(type=difficulty,id=hard;type=entity,id=craziness_awakened:alien)@luck=-2

/wtf
group(type=difficulty,id=hard;type=entity,id=craziness_awakened:wtf)@luck=-2

/nastysaurus
group(type=difficulty,id=hard;type=entity,id=craziness_awakened:nastysaurus)@luck=-2

/mantis
group(type=difficulty,id=hard;type=entity,id=craziness_awakened:mantis)@luck=-2

/bee
group(type=difficulty,id=hard;type=entity,id=craziness_awakened:wasp)@luck=-2

/basilisk
group(type=difficulty,id=hard;type=entity,id=craziness_awakened:basilisc)@luck=-2

/dragon
group(type=difficulty,id=hard;type=entity,id=craziness_awakened:the_king)@chance=0.05@luck=2

/caterkiller
group(type=difficulty,id=hard;type=entity,id=craziness_awakened:caterkiller)@luck=-2

/molenoid
group(type=difficulty,id=hard;type=entity,id=craziness_awakened:molenoid)@luck=-2

/robopounder
group(type=difficulty,id=hard;type=entity,id=craziness_awakened:robo_pounder)@luck=-2

/robowarrior
/group(type=difficulty,id=hard;type=entity,id=craziness_awakened:)@luck=-2

/robosniper
group(type=difficulty,id=hard;type=entity,id=craziness_awakened:robo_sniper)@luck=-2

/robogunner
group(type=difficulty,id=hard;type=entity,id=craziness_awakened:robo_gunner)@luck=-2

/bomb-bot
group(type=difficulty,id=hard;type=entity,id=craziness_awakened:bomb_bot)@luck=-2

/triffid
group(type=difficulty,id=hard;type=entity,id=craziness_awakened:triffid)@luck=-2

/rotator
group(type=difficulty,id=hard;type=entity,id=craziness_awakened:rotator)@luck=-2

type=entity,ID=villager,NBTTag=(
    VillagerData=(level=3,profession=weaponsmith,type=jungle),
    Offers=(Recipes=[
        (buy=(id=emerald,Count=#rand(20,25)),sell=(id=craziness_awakened:emeralds_sword,Count=1,tag=(Enchantments=#luckySwordEnchantments,display=(Name=#jsonStr(text="Hero's Sword",color=green,bold=true)))),maxUses=1),
        (buy=(id=emerald,Count=#rand(8,10)),sell=(id=lucky:lucky_bow,Count=1),maxUses=1),
        (buy=(id=emerald,Count=#rand(5,7)),sell=(id=lucky:lucky_potion,Count=1),maxUses=5),
        (buy=(id=emerald,Count=#rand(10,15)),sell=(id=potion,Count=1,tag=(Potion="fire_resistance",CustomPotionEffects=#luckyPotionEffects,display=(Name=#jsonStr(text="Hero's Potion",color=blue,bold=true)))),maxUses=1),
        (buy=(id=emerald,Count=#rand(7,12)),sell=(id=splash_potion,Count=1,tag=(Potion="harming",CustomPotionEffects=#unluckyPotionEffects,display=(Name=#jsonStr(text="Evil Potion",color=blue,bold=true)))),maxUses=1)
            ]),
    CustomName=#jsonStr(text="Weaponsmith",color=green,bold=true),CustomNameVisible=true
)@chance=0.4@luck=2

type=entity,ID=villager,NBTTag=(
    VillagerData=(level=3,profession=armorer,type=jungle),
    Offers=(Recipes=[
        (buy=(id=emerald,Count=#rand(12,17)),sell=(id=craziness_awakened:emeralds_armor_helmet,Count=1,tag=(Enchantments=#luckyHelmetEnchantments,display=(Name=#jsonStr(text="Hero's Helmet",color=green,bold=true)))),maxUses=1),
        (buy=(id=emerald,Count=#rand(20,25)),sell=(id=craziness_awakened:emeralds_armor_chestplate,Count=1,tag=(Enchantments=#luckyChestplateEnchantments,display=(Name=#jsonStr(text="Hero's Chestplate",color=green,bold=true)))),maxUses=1),
        (buy=(id=emerald,Count=#rand(15,20)),sell=(id=craziness_awakened:emeralds_armor_leggings,Count=1,tag=(Enchantments=#luckyLeggingsEnchantments,display=(Name=#jsonStr(text="Hero's Leggings",color=green,bold=true)))),maxUses=1),
        (buy=(id=emerald,Count=#rand(12,17)),sell=(id=craziness_awakened:emeralds_armor_boots,Count=1,tag=(Enchantments=#luckyBootsEnchantments,display=(Name=#jsonStr(text="Hero's Boots",color=green,bold=true)))),maxUses=1)
            ]),
    CustomName=#jsonStr(text="Armorsmith",color=green,bold=true),CustomNameVisible=true
)@chance=0.4@luck=2

type=entity,ID=villager,NBTTag=(
    VillagerData=(level=3,profession=weaponsmith,type=jungle),
    Offers=(Recipes=[
        (buy=(id=diamond,Count=#rand(20,25)),sell=(id=diamond_sword,Count=1,tag=(Enchantments=#luckySwordEnchantments,display=(Name=#jsonStr(text="Hero's Sword",color=blue,bold=true)))),maxUses=1),
        (buy=(id=diamond,Count=#rand(20,25)),sell=(id=bow,Count=1,tag=(Enchantments=#luckyBowEnchantments,display=(Name=#jsonStr(text="Hero's Bow",color=blue,bold=true)))),maxUses=1),
        (buy=(id=diamond,Count=#rand(10,15)),sell=(id=fishing_rod,Count=1,tag=(Enchantments=#luckyFishingRodEnchantments,display=(Name=#jsonStr(text="Hero's Fishing Rod",color=blue,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="Hero's Potion",color=blue,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="Evil Potion",color=blue,bold=true)))),maxUses=1)
    ]),
    CustomName=#jsonStr(text="Hero Villager",color=blue,bold=true),CustomNameVisible=true
)@luck=1

type=entity,ID=villager,NBTTag=(
    VillagerData=(level=3,profession=armorer,type=jungle),
    Offers=(Recipes=[
        (buy=(id=diamond,Count=#rand(12,17)),sell=(id=diamond_helmet,Count=1,tag=(Enchantments=#luckyHelmetEnchantments,display=(Name=#jsonStr(text="Hero's Helmet",color=blue,bold=true)))),maxUses=1),
        (buy=(id=diamond,Count=#rand(20,25)),sell=(id=diamond_chestplate,Count=1,tag=(Enchantments=#luckyChestplateEnchantments,display=(Name=#jsonStr(text="Hero's Chestplate",color=blue,bold=true)))),maxUses=1),
        (buy=(id=diamond,Count=#rand(15,20)),sell=(id=diamond_leggings,Count=1,tag=(Enchantments=#luckyLeggingsEnchantments,display=(Name=#jsonStr(text="Hero's Leggings",color=blue,bold=true)))),maxUses=1),
        (buy=(id=diamond,Count=#rand(12,17)),sell=(id=diamond_boots,Count=1,tag=(Enchantments=#luckyBootsEnchantments,display=(Name=#jsonStr(text="Hero's Boots",color=blue,bold=true)))),maxUses=1)
    ]),
    CustomName=#jsonStr(text="Hero Villager",color=blue,bold=true),CustomNameVisible=true
)@luck=1

type=entity,ID=villager,NBTTag=(
    VillagerData=(level=3,profession=toolsmith,type=jungle),
    Offers=(Recipes=[
        (buy=(id=diamond,Count=#rand(10,15)),sell=(id=diamond_shovel,Count=1,tag=(Enchantments=#luckyToolEnchantments,display=(Name=#jsonStr(text="Hero's Shovel",color=blue,bold=true)))),maxUses=1),
        (buy=(id=diamond,Count=#rand(15,20)),sell=(id=diamond_pickaxe,Count=1,tag=(Enchantments=#luckyToolEnchantments,display=(Name=#jsonStr(text="Hero's Pickaxe",color=blue,bold=true)))),maxUses=1),
        (buy=(id=diamond,Count=#rand(15,20)),sell=(id=diamond_axe,Count=1,tag=(Enchantments=#luckyAxeEnchantments,display=(Name=#jsonStr(text="Hero's Axe",color=blue,bold=true)))),maxUses=1),
        (buy=(id=diamond,Count=#rand(10,15)),sell=(id=diamond_hoe,Count=1,tag=(Enchantments=#luckyToolEnchantments,display=(Name=#jsonStr(text="Hero's Hoe",color=blue,bold=true)))),maxUses=1)
    ]),
    CustomName=#jsonStr(text="Toolsmith",color=blue,bold=true),CustomNameVisible=true
)@luck=1

/ ==== Monster Apocalyple ====

group(
    / sword, difficulty, time, potion effects
    ID=wooden_sword;
    type=difficulty,ID=hard;
    type=effect,ID=slowness,duration=30,amplifier=4;
    type=effect,ID=blindness,duration=30;
    group:1:(
        / zombies, creepers, spiders & cave spiders, silverfish, endermites, guardians & scorpions
        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=cave_spider,amount=#rand(5,10));
        group(type=entity,ID=silverfish,amount=#rand(15,45);type=entity,ID=endermite,amount=#rand(5,10);type=entity,ID=craziness_awakened:scorpion,amount=#rand(5,15));
        type=entity,ID=guardian,amount=#rand(10,30);
        / all at once
        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=cave_spider,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);
            type=entity,ID=craziness_awakened:scorpion,amount=#rand(10,30))
        )
    ),posOffset=#circleOffset(8,10)
)@luck=-2

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

/ anvil cage
group(
    type=structure,ID=cage,pos=#pPos,rotation=#pDirect;
    type=fill,ID=air,size=(1,70,1),pos=#pPos;type=fill,ID=anvil,size=(1,2,1),pos=(#pPosX,#pPosY+70,#pPosZ)
)@luck=-2

/ lava cage
group(
    type=structure,ID=cage,pos=#pPos,rotation=#pDirect;
    type=block,ID=lava,pos=(#pPosX,#pPosY+3,#pPosZ)
)@luck=-2

/ water cage
type=structure,ID=water_cage,pos=#pPos@luck=-2

/ lava pit
group(
    type=fill,ID=air,size=(3,20,3),pos=(#pPosX-1,#pPosY-20,#pPosZ-1);
    type=fill,ID=lava,size=(3,1,3),pos=(#pPosX-1,#pPosY-20,#pPosZ-1);
    type=fill,ID=cobweb,size=(3,1,3),pos=(#pPosX-1,#pPosY-19,#pPosZ-1)
)@luck=-2

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

/ falling blocks
group(type=fill,ID=air,size=(1,8,1);type=entity,ID=falling_block,posY=#bPosY+7,NBTTag=(BlockState=(Name=iron_block));type=particle,ID=large_smoke,size=(1,2,1),particleAmount=500;type=sound,ID=block.fire.extinguish)@luck=0
group(type=fill,ID=air,size=(1,8,1);type=entity,ID=falling_block,posY=#bPosY+7,NBTTag=(BlockState=(Name=gold_block));type=particle,ID=flame,size=(1,2,1),particleAmount=500;type=sound,ID=entity.ghast.shoot)@luck=0
group(type=fill,ID=air,size=(1,8,1);type=entity,ID=falling_block,posY=#bPosY+7,NBTTag=(BlockState=(Name=diamond_block));type=entity,ID=lightning_bolt)@luck=1
group(type=fill,ID=air,size=(1,8,1);type=entity,ID=falling_block,posY=#bPosY+7,NBTTag=(BlockState=(Name=emerald_block));type=particle,ID=happy_villager,size=(1,2,1),particleAmount=500;type=sound,ID=block.grass.break)@luck=0
group(type=fill,ID=air,size=(1,8,1);type=entity,ID=falling_block,posY=#bPosY+7,NBTTag=(BlockState=(Name=lapis_block));type=particle,ID=splash,size=(1,2,1),particleAmount=1000;type=sound,ID=entity.player.swim)@luck=0
group(type=fill,ID=air,size=(1,8,1);type=entity,ID=falling_block,posY=#bPosY+7,NBTTag=(BlockState=(Name=craziness_awakened:amethyst_block)))@luck=1
group(type=fill,ID=air,size=(1,8,1);type=entity,ID=falling_block,posY=#bPosY+7,NBTTag=(BlockState=(Name=craziness_awakened.titanium_block)))@luck=2
group(type=fill,ID=air,size=(1,8,1);type=entity,ID=falling_block,posY=#bPosY+7,NBTTag=(BlockState=(Name=craziness_awakened:ruby_block)))@luck=1
group(type=fill,ID=air,size=(1,8,1);type=entity,ID=falling_block,posY=#bPosY+7,NBTTag=(BlockState=(Name=craziness_awakened.uranium_block)))@luck=2

/ iron block pole
group(type=fill,ID=air,size=(1,51,1);
    group(
        NBTTag=(BlockState=(Name=iron_block)),posY=#bPosY+5;
        NBTTag=(BlockState=(Name=iron_block)),posY=#bPosY+10;
        NBTTag=(BlockState=(Name=iron_block)),posY=#bPosY+15;
        NBTTag=(BlockState=(Name=iron_block)),posY=#bPosY+20;
        NBTTag=(BlockState=(Name=iron_block)),posY=#bPosY+25;
        NBTTag=(BlockState=(Name=iron_block)),posY=#bPosY+30;
        NBTTag=(BlockState=(Name=iron_block)),posY=#bPosY+35;
        NBTTag=(BlockState=(Name=iron_block)),posY=#bPosY+40;
        NBTTag=(BlockState=(Name=iron_block)),posY=#bPosY+45
    ),type=entity,ID=falling_block;
    type=entity,ID=falling_block,NBTTag=(BlockState=(Name=lucky:reawakened_lucky_block)),posY=#bPosY+50;
    type=entity,ID=lightning_bolt,posY=#bPosY+10,delay=5.3
)@luck=2

/ gold block pole
group(type=fill,ID=air,size=(1,51,1);
    group(
        NBTTag=(BlockState=(Name=gold_block)),posY=#bPosY+5;
        NBTTag=(BlockState=(Name=gold_block)),posY=#bPosY+10;
        NBTTag=(BlockState=(Name=gold_block)),posY=#bPosY+15;
        NBTTag=(BlockState=(Name=gold_block)),posY=#bPosY+20;
        NBTTag=(BlockState=(Name=gold_block)),posY=#bPosY+25;
        NBTTag=(BlockState=(Name=gold_block)),posY=#bPosY+30;
        NBTTag=(BlockState=(Name=gold_block)),posY=#bPosY+35;
        NBTTag=(BlockState=(Name=gold_block)),posY=#bPosY+40;
        NBTTag=(BlockState=(Name=gold_block)),posY=#bPosY+45
    ),type=entity,ID=falling_block;
    type=entity,ID=falling_block,NBTTag=(BlockState=(Name=lucky:reawakened_lucky_block)),posY=#bPosY+50;
    type=entity,ID=lightning_bolt,posY=#bPosY+10,delay=5.3
)@luck=2

/ diamond block pole
group(type=fill,ID=air,size=(1,51,1);
    group(
        NBTTag=(BlockState=(Name=diamond_block)),posY=#bPosY+5;
        NBTTag=(BlockState=(Name=diamond_block)),posY=#bPosY+10;
        NBTTag=(BlockState=(Name=diamond_block)),posY=#bPosY+15;
        NBTTag=(BlockState=(Name=diamond_block)),posY=#bPosY+20;
        NBTTag=(BlockState=(Name=diamond_block)),posY=#bPosY+25;
        NBTTag=(BlockState=(Name=diamond_block)),posY=#bPosY+30;
        NBTTag=(BlockState=(Name=diamond_block)),posY=#bPosY+35;
        NBTTag=(BlockState=(Name=diamond_block)),posY=#bPosY+40;
        NBTTag=(BlockState=(Name=diamond_block)),posY=#bPosY+45
    ),type=entity,ID=falling_block;
    type=entity,ID=falling_block,NBTTag=(BlockState=(Name=lucky:reawakened_lucky_block)),posY=#bPosY+50;
    type=entity,ID=lightning_bolt,posY=#bPosY+10,delay=5.3
)@luck=2

/ emerald block pole
group(type=fill,ID=air,size=(1,51,1);
    group(
        NBTTag=(BlockState=(Name=emerald_block)),posY=#bPosY+5;
        NBTTag=(BlockState=(Name=emerald_block)),posY=#bPosY+10;
        NBTTag=(BlockState=(Name=emerald_block)),posY=#bPosY+15;
        NBTTag=(BlockState=(Name=emerald_block)),posY=#bPosY+20;
        NBTTag=(BlockState=(Name=emerald_block)),posY=#bPosY+25;
        NBTTag=(BlockState=(Name=emerald_block)),posY=#bPosY+30;
        NBTTag=(BlockState=(Name=emerald_block)),posY=#bPosY+35;
        NBTTag=(BlockState=(Name=emerald_block)),posY=#bPosY+40;
        NBTTag=(BlockState=(Name=emerald_block)),posY=#bPosY+45
    ),type=entity,ID=falling_block;
    type=entity,ID=falling_block,NBTTag=(BlockState=(Name=lucky:reawakened_lucky_block)),posY=#bPosY+50;
    type=entity,ID=lightning_bolt,posY=#bPosY+10,delay=5.3
)@luck=2

/ lapis block pole
group(type=fill,ID=air,size=(1,51,1);
    group(
        NBTTag=(BlockState=(Name=lapis_block)),posY=#bPosY+5;
        NBTTag=(BlockState=(Name=lapis_block)),posY=#bPosY+10;
        NBTTag=(BlockState=(Name=lapis_block)),posY=#bPosY+15;
        NBTTag=(BlockState=(Name=lapis_block)),posY=#bPosY+20;
        NBTTag=(BlockState=(Name=lapis_block)),posY=#bPosY+25;
        NBTTag=(BlockState=(Name=lapis_block)),posY=#bPosY+30;
        NBTTag=(BlockState=(Name=lapis_block)),posY=#bPosY+35;
        NBTTag=(BlockState=(Name=lapis_block)),posY=#bPosY+40;
        NBTTag=(BlockState=(Name=lapis_block)),posY=#bPosY+45
    ),type=entity,ID=falling_block;
    type=entity,ID=falling_block,NBTTag=(BlockState=(Name=lucky:reawakened_lucky_block)),posY=#bPosY+50;
    type=entity,ID=lightning_bolt,posY=#bPosY+10,delay=5.3
)@luck=2

/ uranium block pole
group(type=fill,ID=air,size=(1,51,1);
    group(
        NBTTag=(BlockState=(Name=craziness_awakened.uranium_block)),posY=#bPosY+5;
        NBTTag=(BlockState=(Name=craziness_awakened.uranium_block)),posY=#bPosY+10;
        NBTTag=(BlockState=(Name=craziness_awakened.uranium_block)),posY=#bPosY+15;
        NBTTag=(BlockState=(Name=craziness_awakened.uranium_block)),posY=#bPosY+20;
        NBTTag=(BlockState=(Name=craziness_awakened.uranium_block)),posY=#bPosY+25;
        NBTTag=(BlockState=(Name=craziness_awakened.uranium_block)),posY=#bPosY+30;
        NBTTag=(BlockState=(Name=craziness_awakened.uranium_block)),posY=#bPosY+35;
        NBTTag=(BlockState=(Name=craziness_awakened.uranium_block)),posY=#bPosY+40;
        NBTTag=(BlockState=(Name=craziness_awakened.uranium_block)),posY=#bPosY+45
    ),type=entity,ID=falling_block;
    type=entity,ID=falling_block,NBTTag=(BlockState=(Name=lucky:reawakened_lucky_block)),posY=#bPosY+50;
    type=entity,ID=lightning_bolt,posY=#bPosY+10,delay=5.3
)@luck=2

/ titanium block pole
group(type=fill,ID=air,size=(1,51,1);
    group(
        NBTTag=(BlockState=(Name=craziness_awakened.titanium_block)),posY=#bPosY+5;
        NBTTag=(BlockState=(Name=craziness_awakened.titanium_block)),posY=#bPosY+10;
        NBTTag=(BlockState=(Name=craziness_awakened.titanium_block)),posY=#bPosY+15;
        NBTTag=(BlockState=(Name=craziness_awakened.titanium_block)),posY=#bPosY+20;
        NBTTag=(BlockState=(Name=craziness_awakened.titanium_block)),posY=#bPosY+25;
        NBTTag=(BlockState=(Name=craziness_awakened.titanium_block)),posY=#bPosY+30;
        NBTTag=(BlockState=(Name=craziness_awakened.titanium_block)),posY=#bPosY+35;
        NBTTag=(BlockState=(Name=craziness_awakened.titanium_block)),posY=#bPosY+40;
        NBTTag=(BlockState=(Name=craziness_awakened.titanium_block)),posY=#bPosY+45
    ),type=entity,ID=falling_block;
    type=entity,ID=falling_block,NBTTag=(BlockState=(Name=lucky:reawakened_lucky_block)),posY=#bPosY+50;
    type=entity,ID=lightning_bolt,posY=#bPosY+10,delay=5.3
)@luck=2

/ ruby block pole
group(type=fill,ID=air,size=(1,51,1);
    group(
        NBTTag=(BlockState=(Name=craziness_awakened:ruby_block)),posY=#bPosY+5;
        NBTTag=(BlockState=(Name=craziness_awakened:ruby_block)),posY=#bPosY+10;
        NBTTag=(BlockState=(Name=craziness_awakened:ruby_block)),posY=#bPosY+15;
        NBTTag=(BlockState=(Name=craziness_awakened:ruby_block)),posY=#bPosY+20;
        NBTTag=(BlockState=(Name=craziness_awakened:ruby_block)),posY=#bPosY+25;
        NBTTag=(BlockState=(Name=craziness_awakened:ruby_block)),posY=#bPosY+30;
        NBTTag=(BlockState=(Name=craziness_awakened:ruby_block)),posY=#bPosY+35;
        NBTTag=(BlockState=(Name=craziness_awakened:ruby_block)),posY=#bPosY+40;
        NBTTag=(BlockState=(Name=craziness_awakened:ruby_block)),posY=#bPosY+45
    ),type=entity,ID=falling_block;
    type=entity,ID=falling_block,NBTTag=(BlockState=(Name=lucky:reawakened_lucky_block)),posY=#bPosY+50;
    type=entity,ID=lightning_bolt,posY=#bPosY+10,delay=5.3
)@luck=2

/ amethyst block pole
group(type=fill,ID=air,size=(1,51,1);
    group(
        NBTTag=(BlockState=(Name=craziness_awakened:amethyst_block)),posY=#bPosY+5;
        NBTTag=(BlockState=(Name=craziness_awakened:amethyst_block)),posY=#bPosY+10;
        NBTTag=(BlockState=(Name=craziness_awakened:amethyst_block)),posY=#bPosY+15;
        NBTTag=(BlockState=(Name=craziness_awakened:amethyst_block)),posY=#bPosY+20;
        NBTTag=(BlockState=(Name=craziness_awakened:amethyst_block)),posY=#bPosY+25;
        NBTTag=(BlockState=(Name=craziness_awakened:amethyst_block)),posY=#bPosY+30;
        NBTTag=(BlockState=(Name=craziness_awakened:amethyst_block)),posY=#bPosY+35;
        NBTTag=(BlockState=(Name=craziness_awakened:amethyst_block)),posY=#bPosY+40;
        NBTTag=(BlockState=(Name=craziness_awakened:amethyst_block)),posY=#bPosY+45
    ),type=entity,ID=falling_block;
    type=entity,ID=falling_block,NBTTag=(BlockState=(Name=lucky:reawakened_lucky_block)),posY=#bPosY+50;
    type=entity,ID=lightning_bolt,posY=#bPosY+10,delay=5.3
)@luck=2


/ chests
type=block,ID=chest,tileEntity=(Items=#chestLootTable("chests/spawn_bonus_chest"))@luck=0
type=block,ID=chest,tileEntity=(Items=#chestLootTable("chests/simple_dungeon"))@luck=1
type=block,ID=chest,tileEntity=(Items=#chestLootTable("chests/stronghold_corridor"))@luck=1
type=block,ID=chest,tileEntity=(Items=#chestLootTable("chests/shipwreck_map"))@luck=1

/ bedrock problem
type=structure,ID=bedrock_problem,rotation=#pDirect@luck=-1

/ explosion
group(type=difficulty,ID=hard;type=explosion,radius=6)@luck=-2

/ choice of 2 lucky blocks
group:1:(type=structure,ID=lucky_choice_left,rotation=#pDirect;type=structure,ID=lucky_choice_right,rotation=#pDirect)@luck=0

/ wishing wells
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:reawakened_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=5,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

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:reawakened_lucky_block,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{display:{Name:"{\"text\":\"Coin\",\"color\":\"gold\"}"}};
    type=block,ID=lucky:reawakened_reawakened_lucky_block,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=tnt,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{display:{Name:"{\"text\":\"Coin\",\"color\":\"gold\"}"}};
    type=block,ID=lucky:reawakened_lucky_block,posY=#bPosY-3,NBTTag=(Drops=["group(
        type=message,ID=\"$4Well it's time to die\";
        type=block,ID=air,posY='#'bPosY+3;
        type=block,ID=beacon,posY='#'bPosY+2;
        type=entity,ID=craziness_awakened:mantis,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{display:{Name:"{\"text\":\"Coin\",\"color\":\"gold\"}"}};
    type=block,ID=lucky:reawakened_lucky_block,posY=#bPosY-3,NBTTag=(Drops=["group(
        type=message,ID=\"$4Hope you like bees!\";
        type=block,ID=air,posY='#'bPosY+3;
        type=block,ID=beacon,posY='#'bPosY+2;
        type=entity,ID=craziness_awakened:wasp,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{display:{Name:"{\"text\":\"Coin\",\"color\":\"gold\"}"}};
    type=block,ID=lucky:reawakened_lucky_block,posY=#bPosY-3,NBTTag=(Drops=["group(
        type=message,ID=\"$4ABDUCTION!\";
        type=block,ID=air,posY='#'bPosY+3;
        type=block,ID=beacon,posY='#'bPosY+2;
        type=entity,ID=craziness_awakened:alien,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{display:{Name:"{\"text\":\"Coin\",\"color\":\"gold\"}"}};
    type=block,ID=lucky:reawakened_lucky_block,posY=#bPosY-3,NBTTag=(Drops=["group(
        type=message,ID=\"$bYour wish came true (If you like orespawn)!\";
        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=5,posY='#'bPosY+3,posOffset='#'circleOffset(2);
        ID=craziness_awakened.uranium_nugget,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(2);
        ID=craziness_awakened:titanium_nugget,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(2);
        ID=craziness_awakened:blt,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{display:{Name:"{\"text\":\"Coin\",\"color\":\"gold\"}"}};
    type=block,ID=lucky:reawakened_lucky_block,posY=#bPosY-3,NBTTag=(Drops=["group(
        type=message,ID=\"$eYour wish came true! (If you like meat)\";
        type=block,ID=air,posY='#'bPosY+3;
        type=block,ID=beacon,posY='#'bPosY+2;
        ID=craziness_awakened:blt,amount=128,posY='#'bPosY+10,posOffset='#'circleOffset(2);
        ID=craziness_awakened:crabby_patty,amount=64,posY='#'bPosY+10,posOffset='#'circleOffset(2);
        ID=craziness_awakened:cooked_corn_dog,amount=32,posY='#'bPosY+10,posOffset='#'circleOffset(2)
    )"])
)@luck=1

/ bouncing castle
type=structure,ID=bouncing_castle,pos=#pPos,rotation=#pDirect

/ giant lucky blocks
type=structure,ID=giant_lucky_block_good,rotation=#pDirect@luck=2
type=structure,ID=giant_lucky_block_bad,rotation=#pDirect@luck=-2

/ baby player
type=entity,ID=armor_stand,NBTTag=(Small=true,NoBasePlate=true,ShowArms=true,HandItems=[(id=stone_pickaxe,Count=1)],ArmorItems=[(id=leather_boots,Count=1,tag=(display=(color=#randColor))),(id=leather_leggings,Count=1,tag=(display=(color=#randColor))),(id=leather_chestplate,Count=1,tag=(display=(color=#randColor))),(id=player_head,Count=1,tag=(SkullOwner=#pName))],Rotation=[#pYaw+180f,0f],CustomName=#jsonStr(text="Baby #pName"),CustomNameVisible=true)@luck=0

/ tnt pole
group(type=fill,ID=air,size=(1,51,1);
    type=entity,ID=falling_block,NBTTag=(BlockState=(Name=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=falling_block,NBTTag=(BlockState=(Name=tnt))
)@luck=-2

/========== ENCHANTED ITEMS ==========

/lucky sword
ID=craziness_awakened:emeralds_sword,NBTTag=(Enchantments=#luckySwordEnchantments,display=(Name=#jsonStr(text="Hero's Sword",color=blue,bold=true)))@luck=2

/lucky bow
ID=bow,NBTTag=(Enchantments=#luckyBowEnchantments,display=(Name=#jsonStr(text="Hero's Bow",color=blue,bold=true)))@luck=2

/ hero's crossbow, trident
group:1:(ID=crossbow,NBTTag=(Enchantments=#luckyCrossbowEnchantments,display=(Name=#jsonStr(text="Hero's Crossbow",color=blue,bold=true)));ID=trident,NBTTag=(Enchantments=#luckyTridentEnchantments,display=(Name=#jsonStr(text="Hero's Trident",color=blue,bold=true))))@luck=2

/ hero's tools
group:#rand(1,2):(
    ID=diamond_shovel,NBTTag=(Enchantments=#luckyToolEnchantments,display=(Name=#jsonStr(text="Hero's Shovel",color=blue,bold=true)));
    ID=diamond_pickaxe,NBTTag=(Enchantments=#luckyToolEnchantments,display=(Name=#jsonStr(text="Hero's Pickaxe",color=blue,bold=true)));
    ID=diamond_axe,NBTTag=(Enchantments=#luckyAxeEnchantments,display=(Name=#jsonStr(text="Hero's Axe",color=blue,bold=true)));
    ID=diamond_hoe,NBTTag=(Enchantments=#luckyToolEnchantments,display=(Name=#jsonStr(text="Hero's Hoe",color=blue,bold=true)));
    ID=fishing_rod,NBTTag=(Enchantments=#luckyFishingRodEnchantments,display=(Name=#jsonStr(text="Hero's Fishing Rod",color=blue,bold=true)))
)@luck=2

/ hero's armor
group:#rand(1,2):(
    ID=craziness_awakened:emeralds_armor_helmet,NBTTag=(Enchantments=#luckyHelmetEnchantments,display=(Name=#jsonStr(text="Hero's Helmet",color=blue,bold=true)));
    ID=craziness_awakened:emeralds_armor_chestplate,NBTTag=(Enchantments=#luckyChestplateEnchantments,display=(Name=#jsonStr(text="Hero's Chestplate",color=blue,bold=true)));
    ID=craziness_awakened:emeralds_armor_leggings,NBTTag=(Enchantments=#luckyLeggingsEnchantments,display=(Name=#jsonStr(text="Hero's Leggings",color=blue,bold=true)));
    ID=craziness_awakened:emeralds_armor_boots,NBTTag=(Enchantments=#luckyBootsEnchantments,display=(Name=#jsonStr(text="Hero's Boots",color=blue,bold=true)))
)@luck=2

/ hero's potion
ID=potion,NBTTag=(
    Potion="fire_resistance",
    CustomPotionEffects=#luckyPotionEffects,
    display=(Name=#jsonStr(text="Hero's Potion",color=blue,bold=true))
)@luck=2

/ evil potion
ID=splash_potion,NBTTag=(
    Potion="harming",
    CustomPotionEffects=#unluckyPotionEffects,
    display=(Name=#jsonStr(text="Evil Potion",color=dard_red,bold=true))
)@luck=1

/ lucky items
type=item,ID=lucky:lucky_sword@chance=1.5@luck=2
type=item,ID=lucky:lucky_bow@chance=1.5@luck=2
type=item,ID=lucky:lucky_potion,NBTTag=(Luck=#randList(100,-100)),amount=#rand(10,15)@chance=1.5@luck=2

group(
    type=item,ID=lucky:lucky_sword;
    type=item,ID=lucky:lucky_bow;
    type=item,ID=lucky: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=5,posOffset=#circleOffset(0,2)
)@luck=2

/ ========== CRAZINESS AWAKENED TOOLS & ARMOR ==========

/ 1-2 amethyst tools  
group:$rand(1,2):(id=craziness_awakened:amethyst_sword;id=craziness_awakened:amethyst_shovel;id=craziness_awakened:amethyst_pickaxe;id=craziness_awakened:amethyst_axe;id=craziness_awakened:amethyst_hoe)@luck=2

/ 1-2 ultimate tools  
group:$rand(1,2):(id=craziness_awakened:ultimate_sword;id=craziness_awakened:ultimate_shovel;id=craziness_awakened:ultimate_pickaxe;id=craziness_awakened:ultimate_axe;id=craziness_awakened:ultimate_hoe;id=craziness_awakened:ultimate_)@luck=2

/ 1-2 tigereye tools  
group:$rand(1,2):(id=craziness_awakened:tigers_eye_sword;id=craziness_awakened:tigers_eye_shovel;id=craziness_awakened:tigers_eye_pickaxe;id=craziness_awakened:tigers_eye_axe;id=craziness_awakened:tigers_eye_hoe)@luck=2

/ 1-2 kyanite tools  
group:$rand(1,2):(id=craziness_awakened:kyanite_sword;id=craziness_awakened:kyanite_shovel;id=craziness_awakened:kyanite_pickaxe;id=craziness_awakened:kyanite_axe;id=craziness_awakened:kyanite_hoe)@luck=1

/ 1-2 ruby tools  
group:$rand(1,2):(id=craziness_awakened:rubys_sword;id=craziness_awakened:rubys_shovel;id=craziness_awakened:rubys_pickaxe;id=craziness_awakened:rubys_axe;id=craziness_awakened:rubys_hoe)@luck=2

/ 1-2 pink tourmaline tools  
group:$rand(1,2):(id=craziness_awakened:pink_tourmaline_sword;id=craziness_awakened:pink_tourmaline_shovel;id=craziness_awakened:pink_tourmaline_pickaxe;id=craziness_awakened:pink_tourmaline_axe;id=craziness_awakened:pink_tourmaline_hoe)@luck=2

/ 1-2 emerald tools  
group:$rand(1,2):(id=craziness_awakened:emeralds_sword;id=craziness_awakened:emeralds_shovel;id=craziness_awakened:emeralds_pickaxe;id=craziness_awakened:emeralds_axe;id=craziness_awakened:emeralds_hoe)@luck=2

/ 1-2 random weapons  
group:$rand(1,2):(id=craziness_awakened:ultimate_battle_axe;id=craziness_awakened:attitude_adjuster;id=craziness_awakened:bighamy;id=craziness_awakened:chainsaw;id=craziness_awakened:experience_sword;id=craziness_awakened:poison_sword;id=craziness_awakened:rat_sword;id=craziness_awakened:mantis_claw;id=craziness_awakened:nightmare_sword)@luck=2

/ 1-2 ultimate armor  
group:$rand(1,2):(id=craziness_awakened:ultimate_armor_helmet;id=craziness_awakened:ultimate_armor_chestplate;id=craziness_awakened:ultimate_armor_leggings;id=craziness_awakened:ultimate_armor_boots)@luck=2

/ 1-2 ruby armor  
group:$rand(1,2):(id=craziness_awakened:ruby_armor_helmet;id=craziness_awakened:ruby_armor_chestplate;id=craziness_awakened:ruby_armor_leggings;id=craziness_awakened:ruby_armor_boots)@luck=2

/ 1-2 tigereye armor  
group:$rand(1,2):(id=craziness_awakened:tigers_eyes_helmet;id=craziness_awakened:tigers_eyes_chestplate;id=craziness_awakened:tigers_eyes_leggings;id=craziness_awakened:tigers_eyes_boots)@luck=2

/ 1-2 lavaeel armor  
group:$rand(1,2):(id=craziness_awakened:lavaa_eel_helmet;id=craziness_awakened:lavaa_eel_chestplate;id=craziness_awakened:lavaa_eel_leggings;id=craziness_awakened:lavaa_eel_boots)@luck=1

/ 1-2 mothscale armor  
group:$rand(1,2):(id=craziness_awakened:mothra_scale_helmet;id=craziness_awakened:mothra_scale_chestplate;id=craziness_awakened:mothra_scale_leggings;id=craziness_awakened:mothra_scale_boots)@luck=1

/ 1-2 emerald armor  
group:$rand(1,2):(id=craziness_awakened:emeralds_armor_helmet;id=craziness_awakened:emeralds_armor_chestplate;id=craziness_awakened:emeralds_armor_leggings;id=craziness_awakened:emeralds_armor_boots)@luck=2

/ 1-2 experience armor  
group:$rand(1,2):(id=craziness_awakened:experience_armor_helmet;id=craziness_awakened:experience_armor_chestplate;id=craziness_awakened:experience_armor_leggings;id=craziness_awakened:experience_armor_boots)@luck=2

/ 1-2 amethyst armor  
group:$rand(1,2):(id=craziness_awakened:amethyst_armor_helmet;id=craziness_awakened:amethyst_armor_chestplate;id=craziness_awakened:amethyst_armor_leggings;id=craziness_awakened:amethyst_armor_boots)@luck=2

/ 1-2 pink tourmaline armor  
group:$rand(1,2):(id=craziness_awakened:pink_tourmalinea_armor_helmet;id=craziness_awakened:pink_tourmalinea_armor_chestplate;id=craziness_awakened:pink_tourmalinea_armor_leggings;id=craziness_awakened:pink_tourmalinea_armor_boots)@luck=2

/ 1-2 peacock armor  
group:$rand(1,2):(id=craziness_awakened:peacock_feathers_helmet;id=craziness_awakened:peacock_feathers_chestplate;id=craziness_awakened:peacock_feathers_leggings;id=craziness_awakened:peacock_feathers_boots)@luck=1

/ 1-2 lapis armor  
group:$rand(1,2):(id=craziness_awakened:lapis_helmet;id=craziness_awakened:lapis_chestplate;id=craziness_awakened:lapis_leggings;id=craziness_awakened:lapis_boots)@luck=1

/ ========== CRAZINESS AWAKENED SPECIAL ITEMS ==========

id=craziness_awakened:big_bertha_blade@luck=2  
id=craziness_awakened:big_bertha_hilt@luck=2  
id=craziness_awakened:big_bertha_handle@luck=2  
id=craziness_awakened:thunder_staff@luck=1