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

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
group:#rand(2,3):(ID=iron_shovel;ID=iron_pickaxe;ID=iron_axe;ID=iron_sword;ID=iron_hoe)@luck=1
group:#rand(1,2):(ID=diamond_sword;ID=diamond_shovel;ID=diamond_pickaxe;ID=diamond_axe;ID=diamond_hoe)@luck=2
group:1:(ID=lucky:ukraine_lucky_sword;ID=lucky:ukraine_lucky_bow)@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=golden_leggings;ID=golden_boots)@luck=2
group(ID=diamond_horse_armor;ID=golden_horse_armor)@luck=2
group(ID=bow;ID=arrow,amount=#rand(16,32))@luck=1
group(ID=lucky:ukraine_lucky_bow;ID=arrow,amount=#rand(16,32))@luck=2


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

group(
ID=glowstone,amount=8;
ID=sea_lantern,amount=8
)@luck=0
group(
ID=obsidian,amount=14;
ID=endstone,amount=14
)@luck=1
ID=enchanting_table@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
group(
ID=tube_coral_block,amount=16;
ID=horn_coral_block,amount=16
)@luck=0
group(
    ID=oak_log,amount=#rand(4,8);
    ID=oak_planks,amount=#rand(16,32);
    ID=oak_sapling,amount=#rand(3,6);
    ID=oak_leaves,amount=#rand(4,24);
    ID=oak_fence,amount=#rand(4,8);
    ID=oak_stairs,amount=#rand(4,8);
    ID=oak_slab,amount=#rand(4,8);
	ID=oak_pressure_plate,amount=#rand(8,16);
    ID=oak_fence_gate,amount=#rand(2,4);
    ID=oak_button,amount=#rand(32,64);
	ID=oak_door,amount=3
)@luck=1@chance=0.75
group(
    ID=birch_log,amount=#rand(4,8);
    ID=birch_planks,amount=#rand(16,32);
    ID=birch_sapling,amount=#rand(3,6);
    ID=birch_leaves,amount=#rand(4,24);
    ID=birch_fence,amount=#rand(4,8);
    ID=birch_stairs,amount=#rand(4,8);
    ID=birch_slab,amount=#rand(4,8);
	ID=birch_pressure_plate,amount=#rand(8,16);
    ID=birch_fence_gate,amount=#rand(2,4);
    ID=birch_button,amount=#rand(32,64);
	ID=birch_door,amount=3
)@luck=1@chance=0.75
group(
    ID=spruce_log,amount=#rand(4,8);
    ID=spruce_planks,amount=#rand(16,32);
    ID=spruce_sapling,amount=#rand(3,6);
    ID=spruce_leaves,amount=#rand(4,24);
    ID=spruce_fence,amount=#rand(4,8);
    ID=spruce_stairs,amount=#rand(4,8);
    ID=spruce_slab,amount=#rand(4,8);
	ID=spruce_pressure_plate,amount=#rand(8,16);
    ID=spruce_fence_gate,amount=#rand(2,4);
    ID=spruce_button,amount=#rand(32,64);
	ID=spruce_door,amount=3
)@luck=1@chance=0.75
group(
    ID=jungle_log,amount=#rand(4,8);
    ID=jungle_planks,amount=#rand(16,32);
    ID=jungle_sapling,amount=#rand(3,6);
    ID=jungle_leaves,amount=#rand(4,24);
    ID=jungle_fence,amount=#rand(4,8);
    ID=jungle_stairs,amount=#rand(4,8);
    ID=jungle_slab,amount=#rand(4,8);
	ID=jungle_pressure_plate,amount=#rand(8,16);
    ID=jungle_fence_gate,amount=#rand(2,4);
    ID=jungle_button,amount=#rand(32,64);
	ID=jungle_door,amount=3
)@luck=1@chance=0.75
group(
    ID=acacia_log,amount=#rand(4,8);
    ID=acacia_planks,amount=#rand(16,32);
    ID=acacia_sapling,amount=#rand(3,6);
    ID=acacia_leaves,amount=#rand(4,24);
    ID=acacia_fence,amount=#rand(4,8);
    ID=acacia_stairs,amount=#rand(4,8);
    ID=acacia_slab,amount=#rand(4,8);
	ID=acacia_pressure_plate,amount=#rand(8,16);
    ID=acacia_fence_gate,amount=#rand(2,4);
    ID=acacia_button,amount=#rand(32,64);
	ID=acacia_door,amount=3
)@luck=1@chance=0.75
group(
    ID=dark_oak_log,amount=#rand(4,8);
    ID=dark_oak_planks,amount=#rand(16,32);
    ID=dark_oak_sapling,amount=#rand(8,12);
    ID=dark_oak_leaves,amount=#rand(4,24);
    ID=dark_oak_fence,amount=#rand(4,8);
    ID=dark_oak_stairs,amount=#rand(4,8);
    ID=dark_oak_slab,amount=#rand(4,8);
	ID=dark_oak_pressure_plate,amount=#rand(8,16);
    ID=dark_oak_fence_gate,amount=#rand(2,4);
    ID=dark_oak_button,amount=#rand(32,64);
	ID=dark_oak_door,amount=3
)@luck=1@chance=0.75

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

group(
ID=gold_ingot,amount=#rand(8,16);
ID=lapis_lazuli,amount=#rand(8,16)
)@luck=1
group(ID=stick;ID=blaze_rod)@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=pufferfish_bucket,amount=#rand(2,4)@luck=1
ID=beetroot_soup,amount=#rand(5,7)@luck=1
group(ID=soul_torch,amount=32;ID=torch,amount=32)@luck=0
group(ID=soul_lantern,amount=32;ID=lantern,amount=32)@luck=0


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

group(ID=water_bucket,amount=#rand(1,2);ID=lava_bucket,amount=#rand(1,2))@luck=0
group(ID=ender_pearl,amount=10;ID=ender_eye,amount=5)@luck=2
group(ID=#randList(potion,splash_potion),amount=#rand(4,8),NBTTag=(Potion="#randList(fire_resistance,water_breathing)"))@luck=1
group(ID=tipped_arrow,amount=#rand(4,8),NBTTag=(Potion="#randList(fire_resistance,water_breathing)"))@luck=1
group(ID=#randList(pufferfish,pufferfish,trader_llama)_spawn_egg,amount=#rand(4,8))@luck=1
group(ID=jukebox;ID=#randList(music_disc_wait,music_disc_13),amount=2)@luck=1
group(group:1:(ID=#randList(blue,yellow)_wool,amount=#rand(32,64);ID=#randList(blue,yellow)_terracotta,amount=#rand(32,64);ID=#randList(blue,yellow)_dye,amount=#rand(32,64));type=particle,ID=splashpotion,potion=#randPotion,amount=10)@luck=1
group(group:1:(ID=#randList(blue,yellow)_stained_glass,amount=#rand(32,64);ID=#randList(blue,yellow)_glazed_terracotta,amount=#rand(32,64);ID=#randList(blue,yellow)_concrete,amount=#rand(32,64));type=particle,ID=splashpotion,potion=#randPotion,amount=10)@luck=1
group(group:1:(ID=#randList(blue,yellow)_banner,amount=#rand(32,64);ID=#randList(blue,yellow)_candle,amount=#rand(32,64);ID=#randList(tube,horn)_coral_block,amount=#rand(32,64));type=particle,ID=splashpotion,potion=#randPotion,amount=10)@luck=1
group(
    ID=lapis_lazuli,amount=#rand(8,16);
    ID=diamond,amount=#rand(8,16);
    ID=gold_ingot,amount=#rand(8,16);
    ID=blaze_rod,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
group(
    ID=prismarine_slab,amount=#rand(4,8);
    ID=prismarine,amount=#rand(16,32);
    ID=prismarine_block,amount=#rand(4,8);
    ID=prismarine_bricks,amount=#rand(4,8);
    ID=dark_prismarine,amount=#rand(4,8);
    ID=prismarine_stairs,amount=#rand(4,8);ID=prismarine_shard,amount=#rand(24,32);
    ID=smooth_sandstone_slab,amount=#rand(4,8);
    ID=sandstone,amount=#rand(16,32);
    ID=smooth_sandstone,amount=#rand(4,8);
    ID=chiseled_sandstone,amount=#rand(4,8);
    ID=cut_sandstone,amount=#rand(4,8);
    ID=smooth_sandstone_stairs,amount=#rand(4,8);ID=sand,amount=#rand(24,32);	
    type=particle,ID=splashpotion,potion="invisibility"
)@luck=1
group(ID=fishing_rod;ID=#randList(cod,pufferfish),amount=#rand(10,20))@luck=1
group(
ID=enchanted_book,NBTTag=(StoredEnchantments=#randEnchantment),amount=#rand(7,10);
ID=enchanted_book,NBTTag=(Enchantments=#randEnchantment),amount=#rand(7,10)
)@luck=1
ID=#randList(cornflower,dandelion),amount=64@luck=0

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

type=entity,ID=sheep,NBTTag=(CustomName=#jsonStr(text="Ukrainian Sheep"),CustomNameVisible=true,Color=#randList(4,11)),posOffset=#circleOffset(4),amount=16@luck=1
group(type=entity,ID=egg,NBTTag=(Motion=#randLaunchMotion(0.6,15)),amount=40;type=entity,ID=item,NBTTag=(Item=(id=#randList(lapis_lazuli,gold_ingot),Count=1),Motion=#randLaunchMotion(0.7,18)),amount=20)@luck=2
type=entity,ID=experience_bottle,NBTTag=(Motion=#randLaunchMotion),amount=#rand(16,32)@luck=2
type=entity,ID=tnt,NBTTag=(Fuse=50b,Motion=#randLaunchMotion),amount=15@luck=-2
group(type=difficulty,ID=hard;type=entity,ID=creeper;type=entity,ID=lightning_bolt)@luck=-2
group(type=difficulty,ID=hard;type=entity,ID=villager;type=entity,ID=lightning_bolt)@luck=-2
group(type=difficulty,ID=hard;type=entity,ID=guardian,NBTTag=(Elder=1))@chance=0.5@luck=-2
group(type=difficulty,ID=hard;type=entity,ID=ghast)@chance=0.2@luck=-2
group(type=difficulty,ID=hard;type=entity,ID=zombie,amount=#rand(1,4),NBTTag=(
    HandItems=[(id=lucky:ukraine_lucky_sword,Count=1,tag=(Enchantments=#luckySwordEnchantments))],
    ArmorItems=[(id=golden_boots,Count=1,tag=(Enchantments=#luckyBootsEnchantments)),(id=golden_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="Ukrainian Bob",color=blue,bold=true),CustomNameVisible=true)
)@luck=-2
group(type=difficulty,ID=hard;type=entity,ID=husk,amount=#rand(2,5),NBTTag=(
    HandItems=[(id=lucky:ukraine_lucky_sword,Count=1,tag=(Enchantments=#luckySwordEnchantments))],
    ArmorItems=[(id=golden_boots,Count=1,tag=(Enchantments=#luckyBootsEnchantments)),(id=golden_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="Ukrainian Husk",color=blue,bold=true),CustomNameVisible=true)
)@luck=-2
group(type=difficulty,ID=hard;type=entity,ID=skeleton,amount=#rand(1,3),NBTTag=(
    HandItems=[(id=lucky:ukraine_lucky_bow,Count=1,tag=(Enchantments=#luckySwordEnchantments))],
    ArmorItems=[(id=golden_boots,Count=1,tag=(Enchantments=#luckyBootsEnchantments)),(id=golden_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="Ukrainian Peter",color=blue,bold=true),CustomNameVisible=true)
)@luck=-2
group(type=difficulty,ID=hard;type=entity,ID=wither_skeleton,amount=#rand(3,8),NBTTag=(
    HandItems=[(id=lucky:ukraine_lucky_sword,Count=1,tag=(Enchantments=#luckySwordEnchantments))],
    ArmorItems=[(id=golden_boots,Count=1,tag=(Enchantments=#luckyBootsEnchantments)),(id=golden_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="Ukrainian Warriors",color=blue,bold=true),CustomNameVisible=true)
)@luck=-2
group(type=difficulty,ID=hard;type=entity,ID=iron_golem,amount=#rand(3,8),NBTTag=(
    HandItems=[(id=lucky:ukraine_lucky_sword,Count=1,tag=(Enchantments=#luckySwordEnchantments))],
    ArmorItems=[(id=golden_boots,Count=1,tag=(Enchantments=#luckyBootsEnchantments)),(id=golden_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.003f,0.003f,0.003f,0.003f],
    CustomName=#jsonStr(text="Ukrainian Defenders",color=blue,bold=true),CustomNameVisible=true)
)@luck=2
group(type=difficulty,ID=hard;type=entity,ID=iron_golem,amount=#rand(1,3),NBTTag=(
    HandItems=[(id=lucky:ukraine_lucky_sword,Count=1,tag=(Enchantments=#luckySwordEnchantments))],
    ArmorItems=[(id=golden_boots,Count=1,tag=(Enchantments=#luckyBootsEnchantments)),(id=golden_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.003f,0.003f,0.003f,0.003f],
    CustomName=#jsonStr(text="Ukrainian Defenders",color=blue,bold=true),CustomNameVisible=true)
)@luck=0
group(type=difficulty,ID=hard;type=entity,ID=snow_golem,amount=#rand(6,15),NBTTag=(
    HandItems=[(id=lucky:ukraine_lucky_sword,Count=1,tag=(Enchantments=#luckySwordEnchantments))],
    ArmorItems=[(id=golden_boots,Count=1,tag=(Enchantments=#luckyBootsEnchantments)),(id=golden_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.003f,0.003f,0.003f,0.003f],
    CustomName=#jsonStr(text="Ukrainian Patrol",color=blue,bold=true),CustomNameVisible=true)
)@luck=1
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=lucky:ukraine_lucky_bow,Count=1,tag=(Enchantments=#luckyBowEnchantments))],
            ArmorItems=[(id=golden_boots,Count=1,tag=(Enchantments=#luckyBootsEnchantments)),(id=golden_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="Ukrainian Ghostly Horseman",color=gray,bold=true),CustomNameVisible=true)
        ])
    ])
)@luck=-2
group(
    ID=wooden_sword;
    type=difficulty,ID=hard;
    type=effect,ID=slowness,duration=30,amplifier=1;
    group:1:(
        type=entity,ID=blaze,amount=#rand(10,30);
        type=entity,ID=guardian,amount=#rand(10,30);
        group(
            type=entity,ID=blaze,amount=#rand(10,30);
            type=entity,ID=guardian,amount=#rand(10,30);
        )
    ),posOffset=#circleOffset(8)
)@luck=-2
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
group(type=entity,ID=wolf,amount=#rand(5,10),posOffset=#circleOffset(3),NBTTag=(CollarColor=#randList(4,11),Owner=#pUUIDArray,Sitting=true);type=particle,ID="heart",size=(2,0,2),particleAmount=20)@luck=1
group(type=entity,ID=cat,amount=#rand(5,10),posOffset=#circleOffset(3),NBTTag=(CatType=#rand(0,10),CollarColor=#randList(4,11),Owner=#pUUIDArray,Sitting=true);type=particle,ID="heart",size=(2,0,2),particleAmount=20)@luck=1
type=entity,ID=villager,NBTTag=(
    VillagerData=(level=3,profession=farmer,type=swamp),
    Offers=(Recipes=[
        (buy=(id=diamond,Count=#rand(20,25)),sell=(id=lucky:ukraine_lucky_sword,Count=1,tag=(Enchantments=#luckySwordEnchantments,display=(Name=#jsonStr(text="Ukrainian Lucky Sword",color=blue,bold=true)))),maxUses=1),
        (buy=(id=diamond,Count=#rand(20,25)),sell=(id=lucky:ukraine_lucky_bow,Count=1,tag=(Enchantments=#luckyBowEnchantments,display=(Name=#jsonStr(text="Ukrainian Lucky Blaster",color=blue,bold=true)))),maxUses=1),
        (buy=(id=gold_ingot,Count=#rand(7,12)),sell=(id=splash_potion,Count=1,tag=(Potion="water_breathing",CustomPotionEffects=#unluckyPotionEffects,display=(Name=#jsonStr(text="Ukrainian Gas",color=yellow,bold=true)))),maxUses=1),
        (buy=(id=gold_ingot,Count=#rand(10,15)),sell=(id=potion,Count=1,tag=(Potion="fire_resistance",CustomPotionEffects=#luckyPotionEffects,display=(Name=#jsonStr(text="Ukrainian Potion",color=yellow,bold=true)))),maxUses=1)
    ]),
    CustomName=#jsonStr(text="Ukrainian Villager",color=blue,bold=true),CustomNameVisible=true
)@luck=1
type=entity,ID=villager,NBTTag=(
    VillagerData=(level=3,profession=farmer,type=swamp),
    Offers=(Recipes=[
        (buy=(id=diamond,Count=#rand(12,17)),sell=(id=diamond_helmet,Count=1,tag=(Enchantments=#luckyHelmetEnchantments,display=(Name=#jsonStr(text="Ukrainian 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="Ukrainian Chestplate",color=blue,bold=true)))),maxUses=1),
        (buy=(id=gold_ingot,Count=#rand(15,20)),sell=(id=golden_leggings,Count=1,tag=(Enchantments=#luckyLeggingsEnchantments,display=(Name=#jsonStr(text="Ukrainian Leggings",color=yellow,bold=true)))),maxUses=1),
        (buy=(id=gold_ingot,Count=#rand(12,17)),sell=(id=golden_boots,Count=1,tag=(Enchantments=#luckyBootsEnchantments,display=(Name=#jsonStr(text="Ukrainian Boots",color=yellow,bold=true)))),maxUses=1)
    ]),
    CustomName=#jsonStr(text="Ukrainian Villager",color=blue,bold=true),CustomNameVisible=true
)@luck=1

type=entity,ID=villager,NBTTag=(
    VillagerData=(level=3,profession=farmer,type=swamp),
    Offers=(Recipes=[
        (buy=(id=diamond,Count=#rand(10,15)),sell=(id=diamond_shovel,Count=1,tag=(Enchantments=#luckyToolEnchantments,display=(Name=#jsonStr(text="Ukrainian 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="Ukrainian Pickaxe",color=blue,bold=true)))),maxUses=1),
        (buy=(id=gold_ingot,Count=#rand(15,20)),sell=(id=golden_axe,Count=1,tag=(Enchantments=#luckyAxeEnchantments,display=(Name=#jsonStr(text="Ukrainian Axe",color=yellow,bold=true)))),maxUses=1),
        (buy=(id=gold_ingot,Count=#rand(10,15)),sell=(id=golden_hoe,Count=1,tag=(Enchantments=#luckyToolEnchantments,display=(Name=#jsonStr(text="Ukrainian Hoe",color=yellow,bold=true)))),maxUses=1)
    ]),
    CustomName=#jsonStr(text="Ukrainian Villager",color=blue,bold=true),CustomNameVisible=true
)@luck=1

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

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=lapis_block));type=particle,ID=splash,size=(1,2,1),particleAmount=1000;type=sound,ID=entity.player.swim)@luck=0
group(
type=command,ID="/fill ~5 ~10 ~ ~-5 ~10 ~ yellow_concrete_powder keep",delay=0;
type=command,ID="/fill ~5 ~20 ~ ~-5 ~20 ~ yellow_concrete_powder keep",delay=0.5;
type=command,ID="/fill ~5 ~30 ~ ~-5 ~30 ~ yellow_concrete_powder keep",delay=1;
type=command,ID="/fill ~5 ~40 ~ ~-5 ~40 ~ blue_concrete_powder keep",delay=1.5;
type=command,ID="/fill ~5 ~50 ~ ~-5 ~50 ~ blue_concrete_powder keep",delay=2;
type=command,ID="/fill ~5 ~60 ~ ~-5 ~60 ~ blue_concrete_powder keep",delay=2.5
)@luck=1
group(type=fill,ID=air,size=(1,51,1);
    group(
        NBTTag=(BlockState=(Name=yellow_terracotta)),posY=#bPosY+5;
        NBTTag=(BlockState=(Name=blue_terracotta)),posY=#bPosY+10;
        NBTTag=(BlockState=(Name=yellow_terracotta)),posY=#bPosY+15;
        NBTTag=(BlockState=(Name=blue_terracotta)),posY=#bPosY+20;
        NBTTag=(BlockState=(Name=yellow_terracotta)),posY=#bPosY+25;
        NBTTag=(BlockState=(Name=blue_terracotta)),posY=#bPosY+30;
        NBTTag=(BlockState=(Name=yellow_terracotta)),posY=#bPosY+35;
        NBTTag=(BlockState=(Name=blue_terracotta)),posY=#bPosY+40;
        NBTTag=(BlockState=(Name=yellow_terracotta)),posY=#bPosY+45
    ),type=entity,ID=falling_block;
    type=entity,ID=falling_block,NBTTag=(BlockState=(Name=lucky:ukraine_lucky_block)),posY=#bPosY+50;
    type=entity,ID=lightning_bolt,posY=#bPosY+10,delay=3
)@luck=0
group(type=fill,ID=air,size=(1,51,1);
    group(
        NBTTag=(BlockState=(Name=yellow_glazed_terracotta)),posY=#bPosY+5;
        NBTTag=(BlockState=(Name=blue_glazed_terracotta)),posY=#bPosY+10;
        NBTTag=(BlockState=(Name=yellow_glazed_terracotta)),posY=#bPosY+15;
        NBTTag=(BlockState=(Name=blue_glazed_terracotta)),posY=#bPosY+20;
        NBTTag=(BlockState=(Name=yellow_glazed_terracotta)),posY=#bPosY+25;
        NBTTag=(BlockState=(Name=blue_glazed_terracotta)),posY=#bPosY+30;
        NBTTag=(BlockState=(Name=yellow_glazed_terracotta)),posY=#bPosY+35;
        NBTTag=(BlockState=(Name=blue_glazed_terracotta)),posY=#bPosY+40;
        NBTTag=(BlockState=(Name=yellow_glazed_terracotta)),posY=#bPosY+45
    ),type=entity,ID=falling_block;
    type=entity,ID=falling_block,NBTTag=(BlockState=(Name=lapis_block)),posY=#bPosY+50;
    type=entity,ID=lightning_bolt,posY=#bPosY+10,delay=3
)@luck=1
group(type=fill,ID=air,size=(1,51,1);
    group(
        NBTTag=(BlockState=(Name=yellow_stained_glass)),posY=#bPosY+5;
        NBTTag=(BlockState=(Name=blue_stained_glass)),posY=#bPosY+10;
        NBTTag=(BlockState=(Name=yellow_stained_glass)),posY=#bPosY+15;
        NBTTag=(BlockState=(Name=blue_stained_glass)),posY=#bPosY+20;
        NBTTag=(BlockState=(Name=yellow_stained_glass)),posY=#bPosY+25;
        NBTTag=(BlockState=(Name=blue_stained_glass)),posY=#bPosY+30;
        NBTTag=(BlockState=(Name=yellow_stained_glass)),posY=#bPosY+35;
        NBTTag=(BlockState=(Name=blue_stained_glass)),posY=#bPosY+40;
        NBTTag=(BlockState=(Name=yellow_stained_glass)),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=3
)@luck=2
group(type=fill,ID=air,size=(1,51,1);
    group(
        NBTTag=(BlockState=(Name=gold_block)),posY=#bPosY+5;
        NBTTag=(BlockState=(Name=lapis_block)),posY=#bPosY+10;
        NBTTag=(BlockState=(Name=gold_block)),posY=#bPosY+15;
        NBTTag=(BlockState=(Name=lapis_block)),posY=#bPosY+20;
        NBTTag=(BlockState=(Name=gold_block)),posY=#bPosY+25;
        NBTTag=(BlockState=(Name=lapis_block)),posY=#bPosY+30;
        NBTTag=(BlockState=(Name=gold_block)),posY=#bPosY+35;
        NBTTag=(BlockState=(Name=lapis_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:ukraine_lucky_block)),posY=#bPosY+50;
    type=entity,ID=lightning_bolt,posY=#bPosY+10,delay=3
)@luck=2@chance=0.5
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=13878577))),(id=leather_leggings,Count=1,tag=(display=(color=13878577))),(id=leather_chestplate,Count=1,tag=(display=(color=3231699))),(id=player_head,Count=1,tag=(SkullOwner=#pName))],Rotation=[#pYaw+180f,0f],CustomName=#jsonStr(text="Ukrainian #pName"),CustomNameVisible=true)@luck=0
type=structure,ID=chernobyl1@luck=1@chance=0.5
type=structure,ID=chernobyl2@luck=1@chance=0.5
group(type=entity,ID=skeleton,amount=#rand(4,8),posOffset=#circleOffset(2);type=entity,ID=zombie,amount=#rand(4,8),posOffset=#circleOffset(2);type=structure,ID=chernobyltrap)@luck=-1
type=structure,ID=kiev1@luck=2
type=structure,ID=kyivtvtower@luck=0
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
group(
    type=structure,ID=cage,pos=#pPos,rotation=#pDirect;
    type=block,ID=lava,pos=(#pPosX,#pPosY+3,#pPosZ)
)@luck=-2
type=structure,ID=water_cage,pos=#pPos@luck=-2
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
type=structure,ID=ukraine_lucky_fort,pos=#pPos@luck=2
type=structure,ID=ukraine_lucky_temple,pos=#pPos@chance=0.4@luck=2
type=structure,ID=bedrock_problem,rotation=#pDirect@luck=-1
group(type=difficulty,ID=hard;type=explosion,radius=2)@luck=-2
group(type=difficulty,ID=hard;type=explosion,radius=4)@luck=-2
group(type=difficulty,ID=hard;type=explosion,radius=5)@luck=-2
group(type=difficulty,ID=hard;type=explosion,radius=6)@luck=-2
group(type=difficulty,ID=hard;type=explosion,radius=8)@luck=-2@chance=0.8
group(type=difficulty,ID=hard;type=explosion,radius=9)@luck=-2@chance=0.5
group(
    type=structure,ID=ukraine_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 ukrainian 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(40,60),posY='#'bPosY+10,posOffset='#'circleOffset(2);
        ID=diamond,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=ukraine_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 wish came true! (If you like soups)\";
        type=block,ID=air,posY='#'bPosY+3;
        type=block,ID=beacon,posY='#'bPosY+2;
        ID=mushroom_stew,amount=32,posY='#'bPosY+10,posOffset='#'circleOffset(2);
        ID=beetroot_soup,amount=16,posY='#'bPosY+10,posOffset='#'circleOffset(2);
        ID=rabbit_stew,amount=8,posY='#'bPosY+10,posOffset='#'circleOffset(2)
    )"])
)@luck=0
group(
    type=structure,ID=ukraine_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 wish came true! (If you like eggs)\";
        type=block,ID=air,posY='#'bPosY+3;
        type=block,ID=beacon,posY='#'bPosY+2;
        ID=egg,amount=64,posY='#'bPosY+10,posOffset='#'circleOffset(2);
        ID=lucky:ukraine_lucky_potion,amount=10,posY='#'bPosY+10,posOffset='#'circleOffset(2)
    )"])
)@luck=1
group(
    type=structure,ID=ukraine_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 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

/ ========== ENCHANTED + LUCKY ITEMS ==========

ID=lucky:ukraine_lucky_sword,NBTTag=(Enchantments=#luckySwordEnchantments,display=(Name=#jsonStr(text="Ukraine Lucky Sword",color=blue,bold=true)))@luck=2
ID=lucky:ukraine_lucky_bow,NBTTag=(Enchantments=#luckyBowEnchantments,display=(Name=#jsonStr(text="Ukraine Lucky Blaster",color=blue,bold=true)))@luck=2
group:#rand(1,2):(
    ID=diamond_shovel,NBTTag=(Enchantments=#luckyToolEnchantments,display=(Name=#jsonStr(text="Ukrainian Shovel",color=blue,bold=true)));
    ID=diamond_pickaxe,NBTTag=(Enchantments=#luckyToolEnchantments,display=(Name=#jsonStr(text="Ukrainian Pickaxe",color=blue,bold=true)));
    ID=golden_axe,NBTTag=(Enchantments=#luckyAxeEnchantments,display=(Name=#jsonStr(text="Ukrainian Axe",color=yellow,bold=true)));
    ID=golden_hoe,NBTTag=(Enchantments=#luckyToolEnchantments,display=(Name=#jsonStr(text="Ukrainian Hoe",color=yellow,bold=true)))
)@luck=2
group:#rand(1,2):(
    ID=diamond_helmet,NBTTag=(Enchantments=#luckyHelmetEnchantments,display=(Name=#jsonStr(text="Ukrainian Helmet",color=blue,bold=true)));
    ID=diamond_chestplate,NBTTag=(Enchantments=#luckyChestplateEnchantments,display=(Name=#jsonStr(text="Ukrainian Chestplate",color=blue,bold=true)));
    ID=golden_leggings,NBTTag=(Enchantments=#luckyLeggingsEnchantments,display=(Name=#jsonStr(text="Ukrainian Leggings",color=yellow,bold=true)));
    ID=golden_boots,NBTTag=(Enchantments=#luckyBootsEnchantments,display=(Name=#jsonStr(text="Ukrainian Boots",color=yellow,bold=true)))
)@luck=2
ID=potion,NBTTag=(
    Potion="fire_resistance",
    CustomPotionEffects=#luckyPotionEffects,
    display=(Name=#jsonStr(text="Ukrainian Potion",color=yellow,bold=true))
)@luck=2
ID=splash_potion,NBTTag=(
    Potion="water_breathing",
    CustomPotionEffects=#unluckyPotionEffects,
    display=(Name=#jsonStr(text="Ukrainian Gas",color=blue,bold=true))
)@luck=1
type=item,ID=lucky:ukraine_lucky_sword@chance=1.5@luck=2
type=item,ID=lucky:ukraine_lucky_bow@chance=1.5@luck=2
type=item,ID=lucky:ukraine_lucky_potion,NBTTag=(Luck=#randList(100,-100)),amount=#rand(10,15)@chance=1.5@luck=2
group(
    type=item,ID=lucky:ukraine_lucky_sword;
    type=item,ID=lucky:ukraine_lucky_bow;
    type=item,ID=lucky:ukraine_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
ID=potion,NBTTag=(Potion="minecraft:slowness",display=(Name=#jsonStr(text="$6Horilka")),CustomPotionEffects=[(Id=5,Amplifier=2,Duration=#rand(420,1337)),(Id=9,Amplifier=2,Duration=1200)])@luck=2