/ Elemental Lucky Blocks \
/     by Fortchain100    \
/        and ViuJ        \

/ ========== NEW ELEMENTAL ITEMS ==========

/elemental loot bags
type=item,ID=lucky:elemental_lucky_potion,NBTTag=(CustomModelData=1002016,Drops=["type=item,ID=#randList(grass_block,podzol,mycelium,moss_block,stone,deepslate,sponge,oak_sapling,spruce_sapling,birch_sapling,jungle_sapling,acacia_sapling,dark_oak_sapling,mangrove_propagule,cherry_sapling,azalea,flowering_azalea,brown_mushroom,red_mushroom,dandelion,poppy,blue_orchid,allium,azure_bluet,red_tulip,orange_tulip,white_tulip,pink_tulip,oxeye_daisy,cornflower,lily_of_the_valley,torchflower,bamboo,sugar_cane,cactus,sunflower,lilac,rose_bush,peony,big_dripleaf,small_dripleaf,vine,glow_lichen,wheat_seeds,cocoa_beans,pumpkin_seeds,melon_seeds,beetroot_seeds,torchflower_seeds,lily_pad,kelp,tube_coral,brain_coral,bubble_coral,fire_coral,horn_coral,redstone_dust,string,snowball,egg,apple,carrot,potato,coal,clay_ball,raw_iron,raw_copper,raw_gold,emerald,lapis_lazuli,diamond,amethyst_shard,flint,leather,rabbit_hide,honeycomb,ink_sac,scute,slimeball,clayball,prismarine_shard,prismarine_crystals,rabbit_foot),amount=#rand(1,3)"],display=(Name=#jsonStr(text="$fEarth Lootbag"))),amount=#rand(3,7)@luck=1
type=item,ID=lucky:elemental_lucky_potion,NBTTag=(CustomModelData=1002026,Drops=["type=item,ID=#randList(netherrack,crimson_nylium,warped_nylium,soul_sand,soul_soil,magma_block,basalt,brown_mushroom,red_mushroom,crimson_fungus,warped_fungus,wither_rose,weeping_vines,twisting_vines,crimson_roots,warped_roots,nether_wart,rotten_flesh,raw_gold,gold_nugget,netherite_scrap,blaze_rod,glowstone_dust,magma_cream,ghast_tear),amount=#rand(1,3)"],display=(Name=#jsonStr(text="$fFire Lootbag"))),amount=#rand(3,7)@luck=1
type=item,ID=lucky:elemental_lucky_potion,NBTTag=(CustomModelData=1002036,Drops=["type=item,ID=#randList(blue_ice,ice,kelp,sea_pickle,sponge,water_bucket,axolotl_bucket,cod_bucket,pufferfish_bucket,salmon_bucket,tadpole_bucket,tropical_fish_bucket,water_bucket,glow_ink_sac,ink_sac,heart_of_the_sea,nautilus_shell,scute,prismarine_shard,prismarine_crystals,seagrass,turtle_egg,conduit,cod,salmon,pufferfish,tropical_fish,tube_coral,tube_coral_fan,brain_coral,brain_coral_fan,bubble_coral,bubble_coral_fan,fire_coral,fire_coral_fan,horn_coral,horn_coral_fan),amount=#rand(1,3)"],display=(Name=#jsonStr(text="$fWater Lootbag"))),amount=#rand(3,7)@luck=1
type=item,ID=lucky:elemental_lucky_potion,NBTTag=(CustomModelData=1002046,Drops=["type=item,ID=air,amount=#rand(1,3)"],display=(Name=#jsonStr(text="$fWind Lootbag"))),amount=#rand(3,7)@luck=-1

/elemental music discs
group(type=command,ID="/loot spawn ~ ~ ~ loot lucky:chests/lbele_disc_earth")@luck=0
group(type=command,ID="/loot spawn ~ ~ ~ loot lucky:chests/lbele_disc_fire")@luck=0
group(type=command,ID="/loot spawn ~ ~ ~ loot lucky:chests/lbele_disc_water")@luck=0
group(type=command,ID="/loot spawn ~ ~ ~ loot lucky:chests/lbele_disc_wind")@luck=0
group(type=command,ID="/loot spawn ~ ~ ~ loot lucky:chests/lbele_disc_elemental")@luck=0@chance=0.9

/elemental suite
type=item,ID=lucky:elemental_lucky_sword,NBTTag=(Enchantments=#luckySwordEnchantments)@luck=2@chance=0.96
group(ID=arrow,amount=#rand(7,16);type=item,ID=lucky:elemental_lucky_bow,NBTTag=(Enchantments=#luckyBowEnchantments))@luck=2@chance=0.96
type=item,ID=lucky:elemental_lucky_potion,amount=#rand(2,5)@luck=2@chance=0.96

/elemental recipe mix
group(ID=wheat_seeds,amount=#rand(8,16);ID=flint,amount=#rand(6,12);ID=clay_ball,amount=#rand(12,24);ID=feather,amount=#rand(4,7))@luck=0


/ ========== EARTH 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

/ 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

/ all horse armor
group(ID=iron_horse_armor;ID=golden_horse_armor;ID=diamond_horse_armor)@luck=2

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

type=block,ID=magma_block,amount=#rand(10,100),posOffset=#circleOffset(#rand(1,15))@luck=-1
type=entity,ID=falling_block,amount=#rand(6,13),posOffset=#circleOffset(#rand(1,5)),NBTTag=(BlockState=(Name=magma_block),Fuse=50b,Motion=#randLaunchMotion)@luck=-1
ID=end_portal_frame,amount=#rand(6,12)@luck=2
ID=tnt,amount=16@luck=1
ID=dragon_egg@luck=1
ID=ender_chest,amount=2@luck=0
ID=beacon@luck=2
ID=dropper,amount=8@luck=0
ID=magma_block,amount=8@luck=0
type=block,ID=chest,tileEntity=(Items=#chestLootTable("entities/witch"))@luck=-1
type=block,ID=chest,tileEntity=(Items=#chestLootTable("chests/abandoned_mineshaft"))@luck=0
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/underwater_ruin_big"))@luck=1
type=block,ID=chest,tileEntity=(Items=#chestLootTable("chests/shipwreck_treasure"))@luck=2
type=block,ID=chest,tileEntity=(Items=#chestLootTable("chests/end_city_treasure"))@luck=2

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

/nuggets
ID=iron_nugget,amount=#rand(20,64)@luck=-1
ID=gold_nugget,amount=#rand(40,128)@luck=0
ID=gold_nugget,amount=#rand(64,420)@luck=1

/ingots
ID=iron_ingot,amount=#rand(8,18)@luck=1
ID=gold_ingot,amount=#rand(8,18)@luck=1
ID=gold_ingot,amount=#rand(16,56)@luck=2
ID=copper_ingot,amount=#rand(2,6)@luck=-1
ID=copper_ingot,amount=#rand(6,13)@luck=0
ID=copper_ingot,amount=#rand(14,32)@luck=1
ID=copper_ingot,amount=#rand(28,96)@luck=2

/apples
ID=golden_apple,amount=#rand(2,3)@luck=2
ID=enchanted_golden_apple@luck=2@chance=0.5


/ experience bottle
ID=experience_bottle,amount=#rand(16,32)@luck=0
ID=experience_bottle,amount=#rand(32,64)@luck=1
ID=experience_bottle,amount=#rand(200,400)@luck=2@chance=0.2

/ effect remover
ID=milk_bucket,amount=#rand(1,2),NBTTag=(display=(Name=#jsonStr(text="Effect Remover")))@luck=1

/ normal arrows
ID=arrow,amount=#rand(16,32)@luck=0

/ spectral arrows
ID=spectral_arrow,amount=#rand(3,9)@luck=1
ID=spectral_arrow,amount=#rand(6,18)@luck=2

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

/ random tipped arrows
ID=tipped_arrow,amount=#rand(4,10),NBTTag=(Potion="#randPotion")@luck=1

/ random energy potion
ID=splash_potion,NBTTag=(Potion="minecraft:water",display=(Name=#jsonStr(text="$6Random Energy Potion")),custom_potion_effects=[(id=#randList("speed","slowness","haste","mining_fatigue","strength","instant_health","instant_damage","jump_boost","nausea","regeneration","resistance","fire_resistance","water_breathing","invisibility","blindness","night_vision","hunger","weakness","poison","wither","health_boost","absorption","saturation","glowing","levitation","luck","unluck","slow_falling","conduit_power","dolphins_grace","bad_omen","hero_of_the_village","darkness"),amplifier=#rand(0,1),duration=#rand(200,1000)),(id=#randList("speed","slowness","haste","mining_fatigue","strength","instant_health","instant_damage","jump_boost","nausea","regeneration","resistance","fire_resistance","water_breathing","invisibility","blindness","night_vision","hunger","weakness","poison","wither","health_boost","absorption","saturation","glowing","levitation","luck","unluck","slow_falling","conduit_power","dolphins_grace","bad_omen","hero_of_the_village","darkness"),amplifier=#rand(0,1),duration=#rand(200,1000)),(id=#randList("speed","slowness","haste","mining_fatigue","strength","instant_health","instant_damage","jump_boost","nausea","regeneration","resistance","fire_resistance","water_breathing","invisibility","blindness","night_vision","hunger","weakness","poison","wither","health_boost","absorption","saturation","glowing","levitation","luck","unluck","slow_falling","conduit_power","dolphins_grace","bad_omen","hero_of_the_village","darkness"),amplifier=#rand(0,1),duration=#rand(200,1000)),(id=#randList("speed","slowness","haste","mining_fatigue","strength","instant_health","instant_damage","jump_boost","nausea","regeneration","resistance","fire_resistance","water_breathing","invisibility","blindness","night_vision","hunger","weakness","poison","wither","health_boost","absorption","saturation","glowing","levitation","luck","unluck","slow_falling","conduit_power","dolphins_grace","bad_omen","hero_of_the_village","darkness"),amplifier=#rand(0,1),duration=#rand(200,1000))])@luck=0

/ enchantment books lucky
group:#rand(1,2):(
ID=enchanted_book,NBTTag=(StoredEnchantments=#luckySwordEnchantments);
ID=enchanted_book,NBTTag=(StoredEnchantments=#luckyBowEnchantments);
ID=enchanted_book,NBTTag=(StoredEnchantments=#luckyFishingRodEnchantments);
ID=enchanted_book,NBTTag=(StoredEnchantments=#luckyToolEnchantments);
ID=enchanted_book,NBTTag=(StoredEnchantments=#luckyToolEnchantments);
ID=enchanted_book,NBTTag=(StoredEnchantments=#luckySwordEnchantments);
ID=enchanted_book,NBTTag=(StoredEnchantments=#luckyCrossbowEnchantments);
ID=enchanted_book,NBTTag=(StoredEnchantments=#luckyTridentEnchantments);
ID=enchanted_book,NBTTag=(StoredEnchantments=#luckyAxeEnchantments);
ID=enchanted_book,NBTTag=(StoredEnchantments=#luckyHelmetEnchantments);
ID=enchanted_book,NBTTag=(StoredEnchantments=#luckyChestplateEnchantments);
ID=enchanted_book,NBTTag=(StoredEnchantments=#luckyLeggingsEnchantments);
ID=enchanted_book,NBTTag=(StoredEnchantments=#luckyBootsEnchantments)
)@luck=2

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


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

/ deepslate
group(ID=deepslate,amount=#rand(32,64);ID=cobbled_deepslate,amount=#rand(16,32);ID=polished_deepslate,amount=#rand(12,24))@luck=0

/ deep bricks
group(ID=deepslate_bricks,amount=#rand(20,32);ID=cracked_deepslate_bricks,amount=#rand(16,24);ID=deepslate_tiles,amount=#rand(12,20);ID=cracked_deepslate_tiles,amount=#rand(6,15);ID=chiseled_deepslate,amount=#rand(3,8))@luck=0

/ bows and spectral arrows
group(ID=bow;ID=spectral_arrow,amount=#rand(8,24))@luck=2

/ enchanting kit
group(type=block,ID=enchanting_table;ID=lapis_lazuli,amount=#rand(8,16);ID=book,amount=#rand(2,6))@luck=1

/ glowing blocks
group(ID=glowstone,amount=#rand(16,32);ID=shroomlight,amount=#rand(3,7))@luck=0

/ torches
group(ID=torch,amount=#rand(32,64);ID=redstone_torch,amount=#rand(12,25);ID=soul_torch,amount=#rand(5,13))@luck=0

/ 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

/ droppers etc.
group(ID=dispenser,amount=#rand(12,24);ID=dropper,amount=#rand(8,16);ID=dropper,amount=#rand(6,12))@luck=0

/ minecraft resources
group(ID=crafting_table;ID=furnace)@luck=-1

/ villager job tables
group(ID=blast_furnace;ID=smoker;ID=cartography_table;ID=brewing_stand;ID=composter;ID=barrel;ID=fletching_table;ID=cauldron;ID=lectern;ID=stonecutter;ID=loom;ID=smithing_table;ID=grindstone)@luck=1

/ trapdoors
group(ID=iron_trapdoor,amount=#rand(1,5);ID=oak_trapdoor,amount=#rand(1,5);ID=spruce_trapdoor,amount=#rand(1,5);ID=birch_trapdoor,amount=#rand(1,5);ID=jungle_trapdoor,amount=#rand(1,5);ID=acacia_trapdoor,amount=#rand(1,5);ID=dark_oak_trapdoor,amount=#rand(1,5);ID=crimson_trapdoor,amount=#rand(1,5);ID=warped_trapdoor,amount=#rand(1,5))@luck=0

/ doors
group(ID=iron_door,amount=#rand(1,4);ID=oak_door,amount=#rand(1,4);ID=spruce_door,amount=#rand(1,4);ID=birch_door,amount=#rand(1,4);ID=jungle_door,amount=#rand(1,4);ID=acacia_door,amount=#rand(1,4);ID=dark_oak_door,amount=#rand(1,4);ID=crimson_door,amount=#rand(1,4);ID=warped_door,amount=#rand(1,4))@luck=0

/ pressure plates 
group(ID=polished_blackstone_pressure_plate,amount=#rand(1,4);ID=stone_pressure_plate,amount=#rand(1,4);ID=light_weighted_pressure_plate,amount=#rand(1,4);ID=heavy_weighted_pressure_plate,amount=#rand(1,4);ID=oak_pressure_plate,amount=#rand(1,4);ID=spruce_pressure_plate,amount=#rand(1,4);ID=birch_pressure_plate,amount=#rand(1,4);ID=jungle_pressure_plate,amount=#rand(1,4);ID=acacia_pressure_plate,amount=#rand(1,4);ID=dark_oak_pressure_plate,amount=#rand(1,4);ID=crimson_pressure_plate,amount=#rand(1,4);ID=warped_pressure_plate,amount=#rand(1,4))@luck=0

/ buttons
group(ID=polished_blackstone_button,amount=#rand(1,4);ID=stone_button,amount=#rand(1,4);ID=oak_button,amount=#rand(1,4);ID=spruce_button,amount=#rand(1,4);ID=birch_button,amount=#rand(1,4);ID=jungle_button,amount=#rand(1,4);ID=acacia_button,amount=#rand(1,4);ID=dark_oak_button,amount=#rand(1,4);ID=crimson_button,amount=#rand(1,4);ID=warped_button,amount=#rand(1,4))@luck=0

/ glass
group(ID=glass,amount=#rand(24,48);ID=tinted_glass,amount=#rand(12,25))@luck=0

/ colorful
ID=#randColor_concrete_powder,amount=#rand(40,80)@luck=1

/ glass bottles
group(ID=glass,amount=#rand(6,15);ID=glass_bottle,amount=#rand(5,12))@luck=0

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

/ lightning pigman
group(type=entity,ID=pig,amount=#rand(4,7);type=entity,ID=lightning_bolt)@luck=-1

/ lightning witches
group(type=entity,ID=villager,amount=#rand(4,7);type=entity,ID=lightning_bolt)@luck=-1

/ lightning creeper
group(type=entity,ID=creeper,amount=#rand(4,7);type=entity,ID=lightning_bolt)@luck=-1



/ thrown exp bottles
type=entity,ID=experience_bottle,NBTTag=(Motion=#randLaunchMotion),amount=#rand(16,32)@luck=1
type=entity,ID=experience_bottle,NBTTag=(Motion=#randLaunchMotion),amount=#rand(32,64)@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

/ glowsquid
group(type=command,ID="/fill ~3 ~-1 ~3 ~-3 ~-2 ~-3 water";type=entity,ID=glow_squid,amount=10,posOffset=#circleOffset(3))@luck=1

/ energy liger
type=entity,ID=wither,NBTTag=(CustomName=#jsonStr(text="Energy Liger",color=gold,bold=true),CustomNameVisible=true)@luck=-2@chance=0.1

/ energy ray liger 
type=entity,ID=wither,amount=#rand(2,3),NBTTag=(CustomName=#jsonStr(text="Energy Liger",color=gold,bold=true),CustomNameVisible=true)@luck=-2@chance=0.0015

/ misawa skeletons
group(type=difficulty,ID=hard;type=entity,ID=skeleton,amount=#rand(1,4),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="Misawa",color=yellow,bold=true),CustomNameVisible=true)
)@luck=-2
group(type=difficulty,ID=hard;type=entity,ID=skeleton,amount=#rand(3,9),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="Misawa",color=yellow,bold=true),CustomNameVisible=true)
)@luck=-2@chance=0.5

/ chazz skeletons
group(type=difficulty,ID=hard;type=entity,ID=wither_skeleton,amount=#rand(1,4),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="Chazz",color=yellow,bold=true),CustomNameVisible=true)
)@luck=-2
group(type=difficulty,ID=hard;type=entity,ID=skeleton,amount=#rand(3,9),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="Chazz",color=yellow,bold=true),CustomNameVisible=true)
)@luck=-2@chance=0.5

/ lightning strike
type=entity,ID=lightning_bolt,amount=#rand(3,10),posOffset=#circleOffset(#rand(1,8))@luck=-1
type=entity,ID=lightning_bolt,amount=#rand(12,28),posOffset=#circleOffset(#rand(1,16))@luck=-2
group(type=message,ID="The Lightning Wall appears!";type=entity,ID=lightning_bolt,amount=30,posOffset=#circleOffset(12))@luck=-2


/ energy villagers

type=entity,ID=villager,NBTTag=(
    VillagerData=(level=3,profession=cartographer,type=desert),
    Offers=(Recipes=[
        (buy=(id=diamond,Count=#rand(15,25)),sell=(id=lucky:elemental_lucky_sword,Count=1,tag=(CustomModelData=1002011,Enchantments=#luckySwordEnchantments,Drops=["type=entity,ID=falling_block,amount=#rand(1,7),posOffset='#'circleOffset(#rand(1,3)),NBTTag=(BlockState=(Name=#randList(short_grass,dead_bush,fern)),Fuse=50b,Motion='#'randLaunchMotion"],display=(Name=#jsonStr(text="$fEarth Lucky Sword")))),maxUses=36),
        (buy=(id=diamond,Count=#rand(10,20)),sell=(id=lucky:elemental_lucky_bow,Count=1,tag=(CustomModelData=1002012,Enchantments=#luckyBowEnchantments,Drops=["type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=arrow),trail=(frequency=0.5,drops=[\"type=particle,ID=block.dirt\"]),impact=[\"group(type=command,ID=/fill ~ ~ ~ ~ ~-1 ~ air destroy;type=particle,ID=block.dirt,posY=#bExactPosY-7,size=(2.0,3.0,2.0),particleAmount=2000;type=sound,ID=block.gravel.break,volume=2.0)\"])"],display=(Name=#jsonStr(text="$fEarth Lucky Bow")))),maxUses=36),
        (buy=(id=diamond,Count=#rand(20,30)),sell=(id=lucky:elemental_lucky_bow,Count=1,tag=(CustomModelData=1002013,Enchantments=#luckyBowEnchantments,Drops=["type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=stone_pickaxe),trail=(frequency=0.5,drops=[\"type=particle,ID=block.dirt\"]),impact=[\"group(type=command,ID=\"/fill ~ ~1 ~ ~ ~-1 ~ air destroy\";type=command,ID=\"/setblock ~1 ~ ~ air destroy\";type=command,ID=\"/setblock ~-1 ~ ~ air destroy\";type=command,ID=\"/setblock ~ ~ ~1 air destroy\";type=command,ID=\"/setblock ~ ~ ~-1 air destroy\";type=particle,ID=block.dirt,posY=#bExactPosY-7,size=(2.0,3.0,2.0),particleAmount=2000;type=sound,ID=block.gravel.break,volume=2.0;type=entity,ID=falling_block,amount=#rand(1,3),posOffset='#'circleOffset(#rand(1,3)),NBTTag=(BlockState=(Name=dirt),Fuse=50b,Motion='#'randLaunchMotion))\"])"],Enchantments=[(id=feather_falling,lvl=1)],display=(Name=#jsonStr(text="$fEarth Lucky Staff")))),maxUses=36),
        (buy=(id=diamond,Count=#rand(5,10)),sell=(id=lucky:elemental_lucky_potion,Count=3,tag=(CustomModelData=1002014,Drops=["group(type=effect,ID=#randList("minecraft:poison","minecraft:weakness","minecraft:slowness","minecraft:instant_damage","minecraft:mining_fatigue","minecraft:nausea","minecraft:hunger","minecraft:bad_luck"),range=4,amplifier=#rand(0,2),duration=30;type=particle,ID=splashpotion,potion=#randList(poison,weakness,slowness,harming))"],display=(Name=#jsonStr(text="$fLucky Splash Potion")))),maxUses=36),
        (buy=(id=diamond,Count=#rand(10,15)),sell=(id=lucky:elemental_lucky_potion,Count=3,tag=(CustomModelData=1002015,Drops=["group(type=entity,ID=falling_block,amount=#rand(1,7),posOffset='#'circleOffset(#rand(1,3)),NBTTag=(BlockState=(Name=dirt),Fuse=50b,Motion='#'randLaunchMotion);type=explosion,radius=#randList(1,1,2,2,2,2,3,3,3,4,4),fire=false)"],display=(Name=#jsonStr(text="$fEarth Lucky Bomb")))),maxUses=36)
    ]),
    CustomName=#jsonStr(text="Energy",color=gold,bold=true),CustomNameVisible=true
)@luck=1


type=entity,ID=villager,NBTTag=(
    VillagerData=(level=3,profession=cartographer,type=desert),
    Offers=(Recipes=[
        (buy=(id=diamond,Count=#rand(12,17)),sell=(id=golden_helmet,Count=1,tag=(Enchantments=#luckyHelmetEnchantments,display=(Name=#jsonStr(text="Energy Helmet",color=gold,bold=true)))),maxUses=36),
        (buy=(id=diamond,Count=#rand(20,25)),sell=(id=golden_chestplate,Count=1,tag=(Enchantments=#luckyChestplateEnchantments,display=(Name=#jsonStr(text="Energy Chestplate",color=gold,bold=true)))),maxUses=36),
        (buy=(id=diamond,Count=#rand(15,20)),sell=(id=golden_leggings,Count=1,tag=(Enchantments=#luckyLeggingsEnchantments,display=(Name=#jsonStr(text="Energy Leggings",color=gold,bold=true)))),maxUses=36),
        (buy=(id=diamond,Count=#rand(12,17)),sell=(id=golden_boots,Count=1,tag=(Enchantments=#luckyBootsEnchantments,display=(Name=#jsonStr(text="Energy Boots",color=gold,bold=true)))),maxUses=36)
    ]),
    CustomName=#jsonStr(text="Energy",color=gold,bold=true),CustomNameVisible=true
)@luck=1

type=entity,ID=villager,NBTTag=(
    VillagerData=(level=3,profession=cartographer,type=desert),
    Offers=(Recipes=[
        (buy=(id=diamond,Count=#rand(10,15)),sell=(id=golden_shovel,Count=1,tag=(Enchantments=#luckyToolEnchantments,display=(Name=#jsonStr(text="Energy Shovel",color=gold,bold=true)))),maxUses=36),
        (buy=(id=diamond,Count=#rand(15,20)),sell=(id=golden_pickaxe,Count=1,tag=(Enchantments=#luckyToolEnchantments,display=(Name=#jsonStr(text="Energy Pickaxe",color=gold,bold=true)))),maxUses=36),
        (buy=(id=diamond,Count=#rand(15,20)),sell=(id=golden_axe,Count=1,tag=(Enchantments=#luckyAxeEnchantments,display=(Name=#jsonStr(text="Energy Axe",color=gold,bold=true)))),maxUses=36),
        (buy=(id=diamond,Count=#rand(10,15)),sell=(id=golden_hoe,Count=1,tag=(Enchantments=#luckyToolEnchantments,display=(Name=#jsonStr(text="Energy Hoe",color=gold,bold=true)))),maxUses=36)
    ]),
    CustomName=#jsonStr(text="Energy",color=gold,bold=true),CustomNameVisible=true
)@luck=1

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

/ jail trap
group(type=structure,ID=elergy_jailtrap,pos=#pPos;type=entity,ID=wither_skeleton,pos=#pPos,amount=#rand(2,5))@luck=-2
group(type=structure,ID=elergy_jailtrap,pos=#pPos;type=entity,ID=tnt,amount=5,pos=#pPos,NBTTag=(Fuse=50b,Motion=#randLaunchMotion);type=block,ID=water,pos=#pPos)@luck=-2
group(type=structure,ID=elergy_jailtrap,pos=#pPos;type=command,pos=#pPos,ID="/fill ~1 ~3 ~1 ~-1 ~0 ~-1 water keep")@luck=-2


/ end crystal tower
type=structure,ID=elergy_endcrystower@luck=0

group(type=structure,ID=elergy_energycore;
type=command,ID="/fill ~2 ~ ~ ~2 ~ ~ lucky:elemental_lucky_block replace yellow_stained_glass";
type=command,ID="/fill ~ ~ ~2 ~ ~ ~2 lucky:elemental_lucky_block replace yellow_stained_glass";
type=command,ID="/fill ~-2 ~ ~ ~-2 ~ ~ lucky:elemental_lucky_block replace yellow_stained_glass";
type=command,ID="/fill ~ ~ ~-2 ~ ~ ~-2 lucky:elemental_lucky_block replace yellow_stained_glass";
type=command,ID="/fill ~2 ~ ~2 ~2 ~ ~2 lucky:elemental_lucky_block replace yellow_stained_glass";
type=command,ID="/fill ~-2 ~ ~-2 ~-2 ~ ~-2 lucky:elemental_lucky_block replace yellow_stained_glass";
type=command,ID="/fill ~-2 ~ ~2 ~-2 ~ ~2 lucky:elemental_lucky_block replace yellow_stained_glass";
type=command,ID="/fill ~2 ~ ~-2 ~2 ~ ~-2 lucky:elemental_lucky_block replace yellow_stained_glass"
)@luck=2

group(type=structure,ID=elergy_energygenerator;
type=command,ID="/fill ~1 ~ ~1 ~1 ~ ~1 lucky:elemental_lucky_block replace yellow_stained_glass";
type=command,ID="/fill ~1 ~ ~-1 ~1 ~ ~-1 lucky:elemental_lucky_block replace yellow_stained_glass";
type=command,ID="/fill ~-1 ~ ~-1 ~-1 ~ ~-1 lucky:elemental_lucky_block replace yellow_stained_glass";
type=command,ID="/fill ~-1 ~ ~1 ~-1 ~ ~1 lucky:elemental_lucky_block replace yellow_stained_glass";
type=command,ID="/fill ~5 ~ ~5 ~5 ~ ~5 lucky:elemental_lucky_block replace yellow_stained_glass";
type=command,ID="/fill ~5 ~ ~-5 ~5 ~ ~-5 lucky:elemental_lucky_block replace yellow_stained_glass";
type=command,ID="/fill ~-5 ~ ~-5 ~-5 ~ ~-5 lucky:elemental_lucky_block replace yellow_stained_glass";
type=command,ID="/fill ~-5 ~ ~5 ~-5 ~ ~5 lucky:elemental_lucky_block replace yellow_stained_glass"
)@luck=2


/ beacon
group(type=fill,ID=air,size=(1,51,1);
    group(
        NBTTag=(BlockState=(Name=gold_block)),posY=#bPosY+8;
		NBTTag=(BlockState=(Name=gold_block)),posY=#bPosY+16,posZ=#bPosZ-1;
        NBTTag=(BlockState=(Name=gold_block)),posY=#bPosY+24,posZ=#bPosZ-1,posX=#bPosX+1;
        NBTTag=(BlockState=(Name=gold_block)),posY=#bPosY+32,posX=#bPosX+1;
        NBTTag=(BlockState=(Name=gold_block)),posY=#bPosY+40,posZ=#bPosZ+1,posX=#bPosX+1;
        NBTTag=(BlockState=(Name=gold_block)),posY=#bPosY+48,posZ=#bPosZ+1;
        NBTTag=(BlockState=(Name=gold_block)),posY=#bPosY+56,posZ=#bPosZ+1,posX=#bPosX-1;
        NBTTag=(BlockState=(Name=gold_block)),posY=#bPosY+64,posX=#bPosX-1;
        NBTTag=(BlockState=(Name=gold_block)),posY=#bPosY+72,posZ=#bPosZ-1,posX=#bPosX-1
    ),type=entity,ID=falling_block;
    type=entity,ID=falling_block,NBTTag=(BlockState=(Name=beacon)),posY=#bPosY+80
)@luck=2@chance=0.4

/ copper lightning + rod
group(type=fill,ID=air,size=(1,51,1);
    group(
        NBTTag=(BlockState=(Name=lightning_rod)),posY=#bPosY+5;
        NBTTag=(BlockState=(Name=lightning_rod)),posY=#bPosY+10;
        NBTTag=(BlockState=(Name=lightning_rod)),posY=#bPosY+15;
        NBTTag=(BlockState=(Name=lightning_rod)),posY=#bPosY+20;
        NBTTag=(BlockState=(Name=lightning_rod)),posY=#bPosY+25;
        NBTTag=(BlockState=(Name=lightning_rod)),posY=#bPosY+30;
        NBTTag=(BlockState=(Name=lightning_rod)),posY=#bPosY+35;
        NBTTag=(BlockState=(Name=lightning_rod)),posY=#bPosY+40;
        NBTTag=(BlockState=(Name=lightning_rod)),posY=#bPosY+45
    ),type=entity,ID=falling_block;
    type=entity,ID=falling_block,NBTTag=(BlockState=(Name=lucky:elemental_lucky_block)),posY=#bPosY+50;
	type=entity,ID=lightning_bolt,delay=0.20;
	type=entity,ID=lightning_bolt,delay=0.40;
	type=entity,ID=lightning_bolt,delay=0.60;
	type=entity,ID=lightning_bolt,delay=0.80;
	type=entity,ID=lightning_bolt,delay=1.00;
	type=entity,ID=lightning_bolt,delay=1.20;
	type=entity,ID=lightning_bolt,delay=1.40;
	type=entity,ID=lightning_bolt,delay=1.60;
	type=entity,ID=lightning_bolt,delay=1.80;
	type=entity,ID=lightning_bolt,delay=2.00
)@luck=0

/ lucky block chain reaction
group(type=fill,ID=air,size=(1,51,1);
    group(
        NBTTag=(BlockState=(Name=redstone_block)),posY=#bPosY+5;
        NBTTag=(BlockState=(Name=lucky:elemental_lucky_block)),posY=#bPosY+10;
        NBTTag=(BlockState=(Name=redstone_block)),posY=#bPosY+15;
        NBTTag=(BlockState=(Name=lucky:elemental_lucky_block)),posY=#bPosY+20;
        NBTTag=(BlockState=(Name=redstone_block)),posY=#bPosY+25;
        NBTTag=(BlockState=(Name=lucky:elemental_lucky_block)),posY=#bPosY+30;
        NBTTag=(BlockState=(Name=redstone_block)),posY=#bPosY+35;
        NBTTag=(BlockState=(Name=lucky:elemental_lucky_block)),posY=#bPosY+40;
        NBTTag=(BlockState=(Name=redstone_block)),posY=#bPosY+45
    ),type=entity,ID=falling_block;
    type=entity,ID=falling_block,NBTTag=(BlockState=(Name=lucky:elemental_lucky_block)),posY=#bPosY+50
)@luck=1

/ gold ore shades
group(type=fill,ID=air,size=(1,51,1);
    group(
        NBTTag=(BlockState=(Name=nether_gold_ore)),posY=#bPosY+5;
        NBTTag=(BlockState=(Name=deepslate_gold_ore)),posY=#bPosY+10;
        NBTTag=(BlockState=(Name=gold_ore)),posY=#bPosY+15;
        NBTTag=(BlockState=(Name=deepslate_gold_ore)),posY=#bPosY+20;
        NBTTag=(BlockState=(Name=nether_gold_ore)),posY=#bPosY+25;
        NBTTag=(BlockState=(Name=deepslate_gold_ore)),posY=#bPosY+30;
        NBTTag=(BlockState=(Name=gold_ore)),posY=#bPosY+35;
        NBTTag=(BlockState=(Name=deepslate_gold_ore)),posY=#bPosY+40;
        NBTTag=(BlockState=(Name=nether_gold_ore)),posY=#bPosY+45
    ),type=entity,ID=falling_block;
    type=entity,ID=falling_block,NBTTag=(BlockState=(Name=lucky:lucky_block)),posY=#bPosY+50
)@luck=1

/ 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

type=structure,ID=elergy_beacon2@chance=0.1@luck=2
type=structure,ID=elergy_beacon3@chance=0.012@luck=2
type=structure,ID=elergy_beacon4@chance=0.00124@luck=2


/ falling blocks (copper, redstone, iron, gold, diamond)

group(type=fill,ID=air,size=(1,8,1);type=entity,ID=falling_block,posY=#bPosY+7,NBTTag=(BlockState=(Name=weathered_copper));type=particle,ID=large_smoke,size=(1,2,1),particleAmount=500;type=sound,ID=block.fire.extinguish)@luck=-1
group(type=fill,ID=air,size=(1,8,1);type=entity,ID=falling_block,posY=#bPosY+7,NBTTag=(BlockState=(Name=redstone_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=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

/ wishing wells
group(
    type=structure,ID=elergy_wellrgy;type=message,ID="An energy 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=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@chance=0.9

/ wishing wells
group(
    type=structure,ID=elergy_wellrgy;type=message,ID="An energy 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 materials 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=redstone,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(2);
        ID=copper_ingot,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(2);
        ID=gold_ingot,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(2);
        ID=iron_ingot,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(2)
    )"])
)@luck=2

group(
    type=structure,ID=elergy_wellrgy;type=message,ID="An energy 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=\"$cYour wish came true! (If you like redstone)\";
        type=block,ID=air,posY='#'bPosY+3;
        type=block,ID=beacon,posY='#'bPosY+2;
        ID=redstone,amount=64,posY='#'bPosY+10,posOffset='#'circleOffset(2);
        ID=redstone_torch,amount=32,posY='#'bPosY+10,posOffset='#'circleOffset(2);
        ID=#randList(comparator,repeater),amount=20,posY='#'bPosY+10,posOffset='#'circleOffset(2)
    )"])
)@luck=1

group(
    type=structure,ID=elergy_wellrgy;type=message,ID="An energy 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=\"$7Your wish came true! (If you like interfaces)\";
        type=block,ID=air,posY='#'bPosY+3;
        type=block,ID=beacon,posY='#'bPosY+2;
        ID=dispenser,amount=#rand(18,32),posY='#'bPosY+10,posOffset='#'circleOffset(2);
        ID=dropper,amount=#rand(12,24),posY='#'bPosY+10,posOffset='#'circleOffset(2);
        ID=observer,amount=#rand(8,15),posY='#'bPosY+10,posOffset='#'circleOffset(2)
    )"])
)@luck=1

group(
    type=structure,ID=elergy_wellrgy;
    type=message,ID="An energy 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;
		type=entity,ID=lightning_bolt,amount=#rand(4,8),posOffset='#'circleOffset(#rand(1,4))
    )"])
)@luck=-2

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

/ energy circuit
ID=lightning_rod,NBTTag=(display=(Name=#jsonStr(text="$6$lEnergy Circuit")),Enchantments=[(id=knockback,lvl=#rand(2,4)),(id=fire_aspect,lvl=#rand(0,2)),(id=smite,lvl=#rand(1,4)),(id=bane_of_arthropods,lvl=#rand(1,4))])@luck=1

/ energy man's trident
ID=trident,NBTTag=(Enchantments=#luckyTridentEnchantments,display=(Name=#jsonStr(text="$5Energy Man's Trident")))@luck=2

/ energy man's armor
group:#rand(2,4):(ID=leather_helmet,NBTTag=(display=(color=9508309,Name=#jsonStr(text="$5Energized Cap")),Enchantments=[(id=thorns,lvl=#randList(5,5,6,6,6,7,5,5,6,6,6,7,8))]);ID=leather_chestplate,NBTTag=(display=(color=9508309,Name=#jsonStr(text="$5Energized Jacket")),Enchantments=[(id=thorns,lvl=#randList(5,5,6,6,6,7,5,5,6,6,6,7,8))]);ID=leather_leggings,NBTTag=(display=(color=9508309,Name=#jsonStr(text="$5Energized Pants")),Enchantments=[(id=thorns,lvl=#randList(5,5,6,6,6,7,5,5,6,6,6,7,8))]);ID=leather_boots,NBTTag=(display=(color=9508309,Name=#jsonStr(text="$5Energized Shoes")),Enchantments=[(id=thorns,lvl=#randList(5,5,6,6,6,7,5,5,6,6,6,7,8))]))@luck=1

/ bartz's sword
ID=iron_sword,NBTTag=(Enchantments=#luckySwordEnchantments,display=(Name=#jsonStr(text="Bartz's Sword",color=yellow,bold=true)))@luck=2

/ full heal energy potion
ID=potion,amount=#randList(1,1,1,2),NBTTag=(Potion="minecraft:water",display=(Name=#jsonStr(text="$d$lFull Heal Energy Potion")),custom_potion_effects=[(id="minecraft:instant_health",amplifier=4,duration=6)])@luck=2

/ double energy potion
ID=potion,amount=#randList(1,1,1,2),NBTTag=(Potion="minecraft:water",display=(Name=#jsonStr(text="$e$lDouble Energy Potion")),custom_potion_effects=[(id="minecraft:absorption",amplifier=4,duration=#rand(500,1000))])@luck=2

/ energy plus potion
ID=potion,amount=#randList(1,1,1,2),NBTTag=(Potion="minecraft:water",display=(Name=#jsonStr(text="$c$lFighting Energy Potion")),custom_potion_effects=[(id="minecraft:strength",amplifier=2,duration=#rand(200,500))])@luck=2

/ rainbow energy potion
ID=potion,NBTTag=(Potion="minecraft:water",display=(Name=#jsonStr(text="$4R$6a$ei$an$2b$bo$3w $9E$1n$5e$dr$cg$4y $6P$eo$at$2i$bo$3n")),custom_potion_effects=[(id=#randList("minecraft:speed","minecraft:haste","minecraft:strength","minecraft:jump_boost","minecraft:regeneration","minecraft:resistance","minecraft:fire_resistance","minecraft:water_breathing","minecraft:invisibility","minecraft:night_vision","minecraft:health_boost","minecraft:absorption","minecraft:saturation","minecraft:luck","minecraft:slow_falling","minecraft:conduit_power","minecraft:dolphins_grace","minecraft:hero_of_the_village"),amplifier=#rand(0,3),duration=#rand(300,3000)),(id=#randList("minecraft:speed","minecraft:haste","minecraft:strength","minecraft:jump_boost","minecraft:regeneration","minecraft:resistance","minecraft:fire_resistance","minecraft:water_breathing","minecraft:invisibility","minecraft:night_vision","minecraft:health_boost","minecraft:absorption","minecraft:saturation","minecraft:luck","minecraft:slow_falling","minecraft:conduit_power","minecraft:dolphins_grace","minecraft:hero_of_the_village"),amplifier=#rand(0,3),duration=#rand(300,3000)),(id=#randList("minecraft:speed","minecraft:haste","minecraft:strength","minecraft:jump_boost","minecraft:regeneration","minecraft:resistance","minecraft:fire_resistance","minecraft:water_breathing","minecraft:invisibility","minecraft:night_vision","minecraft:health_boost","minecraft:absorption","minecraft:saturation","minecraft:luck","minecraft:slow_falling","minecraft:conduit_power","minecraft:dolphins_grace","minecraft:hero_of_the_village"),amplifier=#rand(0,3),duration=#rand(300,3000)),(id=#randList("minecraft:speed","minecraft:haste","minecraft:strength","minecraft:jump_boost","minecraft:regeneration","minecraft:resistance","minecraft:fire_resistance","minecraft:water_breathing","minecraft:invisibility","minecraft:night_vision","minecraft:health_boost","minecraft:absorption","minecraft:saturation","minecraft:luck","minecraft:slow_falling","minecraft:conduit_power","minecraft:dolphins_grace","minecraft:hero_of_the_village"),amplifier=#rand(0,3),duration=#rand(300,3000))])@luck=2@chance=0.5

/ fire energy potion
ID=potion,amount=#randList(1,1,1,2),NBTTag=(Potion="minecraft:water",display=(Name=#jsonStr(text="$6$lFire Energy Potion")),custom_potion_effects=[(id="minecraft:fire_resistance",amplifier=2,duration=#rand(500,1200))])@luck=2

/ grass energy potion
ID=potion,amount=#randList(1,1,1,2,2),NBTTag=(Potion="minecraft:water",display=(Name=#jsonStr(text="$a$lGrass Energy Potion")),custom_potion_effects=[(id="minecraft:speed",amplifier=2,duration=#rand(600,1200)),(id="minecraft:jump_boost",amplifier=2,duration=#rand(600,1200))])@luck=2

/ psychic energy potion
ID=potion,NBTTag=(Potion="minecraft:water",display=(Name=#jsonStr(text="$5$lPsychic Energy Potion")),custom_potion_effects=[(id="minecraft:absorption",amplifier=#rand(1,2),duration=#rand(200,1000)),(id="minecraft:slow_falling",amplifier=#rand(1,2),duration=#rand(200,1000)),(id="minecraft:hero_of_the_village",amplifier=#rand(1,2),duration=#rand(200,1000)),(id="minecraft:invisibility",amplifier=#rand(1,2),duration=#rand(200,1000)),(id="minecraft:luck",amplifier=#rand(1,2),duration=#rand(200,1000))])@luck=2@chance=0.75

/ water energy potion
ID=potion,amount=#randList(1,1,1,2,2),NBTTag=(Potion="minecraft:water",display=(Name=#jsonStr(text="$9$lWater Energy Potion")),custom_potion_effects=[(id="minecraft:water_breathing",amplifier=2,duration=#rand(800,1600)),(id="minecraft:conduit_power",amplifier=2,duration=#rand(400,1600)),(id="minecraft:dolphins_grace",amplifier=1,duration=#rand(200,1200)),(id="minecraft:night_vision",amplifier=2,duration=#rand(300,900))])@luck=2

/ sickening potion
ID=splash_potion,amount=#randList(1,1,1,2,2),NBTTag=(Potion="minecraft:water",display=(Name=#jsonStr(text="$2$lSickening Potion")),custom_potion_effects=[(id="minecraft:nausea",amplifier=2,duration=#rand(600,1200)),(id="minecraft:blindness",amplifier=2,duration=#rand(100,500))])@luck=1

/ lucky potion
ID=potion,amount=#randList(1,1,1,2),NBTTag=(Potion="minecraft:water",display=(Name=#jsonStr(text="$2$l$oLucky Potion")),custom_potion_effects=[(id="minecraft:luck",amplifier=#rand(1,4),duration=#rand(1000,2000))])@luck=2

/ unlucky potion
ID=splash_potion,amount=#randList(1,1,1,2),NBTTag=(Potion="minecraft:water",display=(Name=#jsonStr(text="$4$l$oUnlucky Potion")),custom_potion_effects=[(id="minecraft:unluck",amplifier=2,duration=#rand(1000,2000)),(id="minecraft:bad_omen",amplifier=2,duration=#rand(400,1200))])@luck=1


/ metallic armor (knock resistance and slower)

group(type=command,ID="/summon item ~ ~ ~ {CustomNameVisible:1b,CustomName:'{\"text\":\"Metallic Helmet\",\"color\":\"silver\",\"bold\":true,\"italic\":false}',Item:{id:\"minecraft:iron_helmet\",Count:1b,tag:{display:{Name:'{\"text\":\"Metallic Helmet\",\"color\":\"silver\",\"bold\":true,\"italic\":false}'},Enchantments:[{id:\"minecraft:#randList(blast_protection,fire_protection,projectile_protection)\",lvl:#rand(0,5)},{id:\"minecraft:protection\",lvl:#rand(0,4)},{id:\"minecraft:unbreaking\",lvl:#rand(0,5)},{id:\"minecraft:#randList(thorns,mending)\",lvl:#rand(0,3)},{id:\"minecraft:#randList(respiration,aqua_affinity)\",lvl:#rand(0,3)}],
AttributeModifiers:[
{AttributeName:\"generic.knockback_resistance\",Name:\"generic.knockback_resistance\",Amount:0.40,Operation:1,UUID:[I;#rand(20,9999999),#rand(20,9999999),#rand(20,9999999),#rand(20,9999999)],Slot:\"head\"},
{AttributeName:\"generic.armor\",Name:\"generic.armor\",Amount:2.25,Operation:0,UUID:[I;#rand(20,9999999),#rand(20,9999999),#rand(20,9999999),#rand(20,9999999)],Slot:\"head\"},
{AttributeName:\"generic.movement_speed\",Name:\"generic.movement_speed\",Amount:-0.15,Operation:1,UUID:[I;#rand(20,9999999),#rand(20,9999999),#rand(20,9999999),#rand(20,9999999)],Slot:\"head\"}]}}}",commandSender="VIU")@luck=2@chance=0.92

group(type=command,ID="/summon item ~ ~ ~ {CustomNameVisible:1b,CustomName:'{\"text\":\"Metallic Chestplate\",\"color\":\"silver\",\"bold\":true,\"italic\":false}',Item:{id:\"minecraft:iron_chestplate\",Count:1b,tag:{display:{Name:'{\"text\":\"Metallic Chestplate\",\"color\":\"silver\",\"bold\":true,\"italic\":false}'},Enchantments:[{id:\"minecraft:#randList(blast_protection,fire_protection,projectile_protection)\",lvl:#rand(0,5)},{id:\"minecraft:protection\",lvl:#rand(0,4)},{id:\"minecraft:unbreaking\",lvl:#rand(0,5)},{id:\"minecraft:#randList(thorns,mending)\",lvl:#rand(0,3)}],
AttributeModifiers:
[{AttributeName:\"generic.knockback_resistance\",Name:\"generic.knockback_resistance\",Amount:0.40,Operation:1,UUID:[I;#rand(20,9999999),#rand(20,9999999),#rand(20,9999999),#rand(20,9999999)],Slot:\"chest\"},
{AttributeName:\"generic.armor\",Name:\"generic.armor\",Amount:6.25,Operation:0,UUID:[I;#rand(20,9999999),#rand(20,9999999),#rand(20,9999999),#rand(20,9999999)],Slot:\"chest\"},
{AttributeName:\"generic.movement_speed\",Name:\"generic.movement_speed\",Amount:-0.15,Operation:1,UUID:[I;#rand(20,9999999),#rand(20,9999999),#rand(20,9999999),#rand(20,9999999)],Slot:\"chest\"}]}}}",commandSender="VIU")@luck=2@chance=0.92

group(type=command,ID="/summon item ~ ~ ~ {CustomNameVisible:1b,CustomName:'{\"text\":\"Metallic Leggings\",\"color\":\"silver\",\"bold\":true,\"italic\":false}',Item:{id:\"minecraft:iron_leggings\",Count:1b,tag:{display:{Name:'{\"text\":\"Metallic Leggings\",\"color\":\"silver\",\"bold\":true,\"italic\":false}'},Enchantments:[{id:\"minecraft:#randList(blast_protection,fire_protection,projectile_protection)\",lvl:#rand(0,5)},{id:\"minecraft:protection\",lvl:#rand(0,4)},{id:\"minecraft:unbreaking\",lvl:#rand(0,5)},{id:\"minecraft:#randList(thorns,mending)\",lvl:#rand(0,3)}],
AttributeModifiers:[{AttributeName:\"generic.knockback_resistance\",Name:\"generic.knockback_resistance\",Amount:0.40,Operation:1,UUID:[I;#rand(20,9999999),#rand(20,9999999),#rand(20,9999999),#rand(20,9999999)],Slot:\"legs\"},
{AttributeName:\"generic.armor\",Name:\"generic.armor\",Amount:5.25,Operation:0,UUID:[I;#rand(20,9999999),#rand(20,9999999),#rand(20,9999999),#rand(20,9999999)],Slot:\"legs\"},
{AttributeName:\"generic.movement_speed\",Name:\"generic.movement_speed\",Amount:-0.15,Operation:1,UUID:[I;#rand(20,9999999),#rand(20,9999999),#rand(20,9999999),#rand(20,9999999)],Slot:\"legs\"}]}}}",commandSender="VIU")@luck=2@chance=0.92

group(type=command,ID="/summon item ~ ~ ~ {CustomNameVisible:1b,CustomName:'{\"text\":\"Metallic Boots\",\"color\":\"silver\",\"bold\":true,\"italic\":false}',Item:{id:\"minecraft:iron_boots\",Count:1b,tag:{display:{Name:'{\"text\":\"Metallic Boots\",\"color\":\"silver\",\"bold\":true,\"italic\":false}'},Enchantments:[{id:\"minecraft:#randList(blast_protection,fire_protection,projectile_protection)\",lvl:#rand(0,5)},{id:\"minecraft:protection\",lvl:#rand(0,4)},{id:\"minecraft:unbreaking\",lvl:#rand(0,5)},{id:\"minecraft:#randList(thorns,mending)\",lvl:#rand(0,3)},{id:\"minecraft:#randList(depth_strider,feather_falling,soul_speed)\",lvl:#rand(0,3)}],
AttributeModifiers:[{AttributeName:\"generic.knockback_resistance\",Name:\"generic.knockback_resistance\",Amount:0.40,Operation:1,UUID:[I;#rand(20,9999999),#rand(20,9999999),#rand(20,9999999),#rand(20,9999999)],Slot:\"feet\"},
{AttributeName:\"generic.armor\",Name:\"generic.armor\",Amount:2.25,Operation:0,UUID:[I;#rand(20,9999999),#rand(20,9999999),#rand(20,9999999),#rand(20,9999999)],Slot:\"feet\"},
{AttributeName:\"generic.movement_speed\",Name:\"generic.movement_speed\",Amount:-0.15,Operation:1,UUID:[I;#rand(20,9999999),#rand(20,9999999),#rand(20,9999999),#rand(20,9999999)],Slot:\"feet\"}]}}}",commandSender="VIU")@luck=2@chance=0.92

group(type=command,ID="/summon item ~ ~ ~ {CustomNameVisible:1b,CustomName:'{\"text\":\"Metallic Sword\",\"color\":\"silver\",\"bold\":true,\"italic\":false}',Item:{id:\"minecraft:iron_sword\",Count:1b,tag:{display:{Name:'{\"text\":\"Metallic Sword\",\"color\":\"silver\",\"bold\":true,\"italic\":false}'},Enchantments:[{id:\"minecraft:#randList(smite,bane_of_arthropods)\",lvl:#rand(0,5)},{id:\"minecraft:#randList(sweeping_edge,looting)\",lvl:#rand(0,4)},{id:\"minecraft:sharpness\",lvl:#rand(2,7)},{id:\"minecraft:#randList(mending,knockback,fire_aspect)\",lvl:#rand(0,3)},{id:\"minecraft:unbreaking\",lvl:#rand(0,3)}]}}}",commandSender="VIU")@luck=2@chance=0.92
group(type=command,ID="/summon item ~ ~ ~ {CustomNameVisible:1b,CustomName:'{\"text\":\"Metallic Pickaxe\",\"color\":\"silver\",\"bold\":true,\"italic\":false}',Item:{id:\"minecraft:iron_pickaxe\",Count:1b,tag:{display:{Name:'{\"text\":\"Metallic Pickaxe\",\"color\":\"silver\",\"bold\":true,\"italic\":false}'},Enchantments:[{id:\"minecraft:#randList(fortune,silk_touch)\",lvl:#rand(0,5)},{id:\"minecraft:efficiency\",lvl:#rand(1,6)},{id:\"minecraft:unbreaking\",lvl:#rand(1,5)}]}}}",commandSender="VIU")@luck=2@chance=0.92
group(type=command,ID="/summon item ~ ~ ~ {CustomNameVisible:1b,CustomName:'{\"text\":\"Metallic Axe\",\"color\":\"silver\",\"bold\":true,\"italic\":false}',Item:{id:\"minecraft:iron_axe\",Count:1b,tag:{display:{Name:'{\"text\":\"Metallic Axe\",\"color\":\"silver\",\"bold\":true,\"italic\":false}'},Enchantments:[{id:\"minecraft:#randList(fortune,silk_touch)\",lvl:#rand(0,5)},{id:\"minecraft:efficiency\",lvl:#rand(1,6)},{id:\"minecraft:unbreaking\",lvl:#rand(1,5)}]}}}",commandSender="VIU")@luck=2@chance=0.92
group(type=command,ID="/summon item ~ ~ ~ {CustomNameVisible:1b,CustomName:'{\"text\":\"Metallic Shovel\",\"color\":\"silver\",\"bold\":true,\"italic\":false}',Item:{id:\"minecraft:iron_shovel\",Count:1b,tag:{display:{Name:'{\"text\":\"Metallic Shovel\",\"color\":\"silver\",\"bold\":true,\"italic\":false}'},Enchantments:[{id:\"minecraft:#randList(fortune,silk_touch)\",lvl:#rand(0,5)},{id:\"minecraft:efficiency\",lvl:#rand(1,6)},{id:\"minecraft:unbreaking\",lvl:#rand(1,5)}]}}}",commandSender="VIU")@luck=2@chance=0.92
group(type=command,ID="/summon item ~ ~ ~ {CustomNameVisible:1b,CustomName:'{\"text\":\"Metallic Hoe\",\"color\":\"silver\",\"bold\":true,\"italic\":false}',Item:{id:\"minecraft:iron_hoe\",Count:1b,tag:{display:{Name:'{\"text\":\"Metallic Hoe\",\"color\":\"silver\",\"bold\":true,\"italic\":false}'},Enchantments:[{id:\"minecraft:#randList(fortune,silk_touch)\",lvl:#rand(0,5)},{id:\"minecraft:efficiency\",lvl:#rand(1,6)},{id:\"minecraft:unbreaking\",lvl:#rand(1,5)}]}}}",commandSender="VIU")@luck=2@chance=0.92

/ energy armor
group(type=command,ID="/summon item ~ ~ ~ {CustomNameVisible:1b,CustomName:'{\"text\":\"Energy Helmet\",\"color\":\"yellow\",\"bold\":true,\"italic\":false}',Item:{id:\"minecraft:golden_helmet\",Count:1b,tag:{display:{Name:'{\"text\":\"Energy Helmet\",\"color\":\"yellow\",\"bold\":true,\"italic\":false}'},Enchantments:[{id:\"minecraft:#randList(blast_protection,fire_protection,projectile_protection)\",lvl:#rand(0,10)},{id:\"minecraft:protection\",lvl:#rand(0,8)},{id:\"minecraft:unbreaking\",lvl:#rand(0,10)},{id:\"minecraft:#randList(thorns,mending)\",lvl:#rand(0,6)},{id:\"minecraft:#randList(respiration,aqua_affinity)\",lvl:#rand(0,6)}]}}}",commandSender="VIU")@luck=1 
group(type=command,ID="/summon item ~ ~ ~ {CustomNameVisible:1b,CustomName:'{\"text\":\"Energy Chestplate\",\"color\":\"yellow\",\"bold\":true,\"italic\":false}',Item:{id:\"minecraft:golden_chestplate\",Count:1b,tag:{display:{Name:'{\"text\":\"Energy Chestplate\",\"color\":\"yellow\",\"bold\":true,\"italic\":false}'},Enchantments:[{id:\"minecraft:#randList(blast_protection,fire_protection,projectile_protection)\",lvl:#rand(0,10)},{id:\"minecraft:protection\",lvl:#rand(0,8)},{id:\"minecraft:unbreaking\",lvl:#rand(0,10)},{id:\"minecraft:#randList(thorns,mending)\",lvl:#rand(0,6)}]}}}",commandSender="VIU")@luck=1 
group(type=command,ID="/summon item ~ ~ ~ {CustomNameVisible:1b,CustomName:'{\"text\":\"Energy Leggings\",\"color\":\"yellow\",\"bold\":true,\"italic\":false}',Item:{id:\"minecraft:golden_leggings\",Count:1b,tag:{display:{Name:'{\"text\":\"Energy Leggings\",\"color\":\"yellow\",\"bold\":true,\"italic\":false}'},Enchantments:[{id:\"minecraft:#randList(blast_protection,fire_protection,projectile_protection)\",lvl:#rand(0,10)},{id:\"minecraft:protection\",lvl:#rand(0,8)},{id:\"minecraft:unbreaking\",lvl:#rand(0,10)},{id:\"minecraft:#randList(thorns,mending)\",lvl:#rand(0,6)}]}}}",commandSender="VIU")@luck=1
group(type=command,ID="/summon item ~ ~ ~ {CustomNameVisible:1b,CustomName:'{\"text\":\"Energy Boots\",\"color\":\"yellow\",\"bold\":true,\"italic\":false}',Item:{id:\"minecraft:golden_boots\",Count:1b,tag:{display:{Name:'{\"text\":\"Energy Boots\",\"color\":\"yellow\",\"bold\":true,\"italic\":false}'},Enchantments:[{id:\"minecraft:#randList(blast_protection,fire_protection,projectile_protection)\",lvl:#rand(0,10)},{id:\"minecraft:protection\",lvl:#rand(0,8)},{id:\"minecraft:unbreaking\",lvl:#rand(0,10)},{id:\"minecraft:#randList(thorns,mending)\",lvl:#rand(0,6)},{id:\"minecraft:#randList(depth_strider,feather_falling,soul_speed)\",lvl:#rand(0,6)}]}}}",commandSender="VIU")@luck=1 
group(type=command,ID="/summon item ~ ~ ~ {CustomNameVisible:1b,CustomName:'{\"text\":\"Energy Sword\",\"color\":\"yellow\",\"bold\":true,\"italic\":false}',Item:{id:\"minecraft:golden_sword\",Count:1b,tag:{display:{Name:'{\"text\":\"Energy Sword\",\"color\":\"yellow\",\"bold\":true,\"italic\":false}'},Enchantments:[{id:\"minecraft:#randList(smite,bane_of_arthropods)\",lvl:#rand(0,10)},{id:\"minecraft:#randList(sweeping_edge,looting)\",lvl:#rand(0,8)},{id:\"minecraft:sharpness\",lvl:#rand(3,14)},{id:\"minecraft:#randList(mending,knockback,fire_aspect)\",lvl:#rand(0,6)},{id:\"minecraft:unbreaking\",lvl:#rand(0,6)}]}}}",commandSender="VIU")@luck=1
group(type=command,ID="/summon item ~ ~ ~ {CustomNameVisible:1b,CustomName:'{\"text\":\"Energy Pickaxe\",\"color\":\"yellow\",\"bold\":true,\"italic\":false}',Item:{id:\"minecraft:golden_pickaxe\",Count:1b,tag:{display:{Name:'{\"text\":\"Energy Pickaxe\",\"color\":\"yellow\",\"bold\":true,\"italic\":false}'},Enchantments:[{id:\"minecraft:#randList(fortune,silk_touch)\",lvl:#rand(0,10)},{id:\"minecraft:efficiency\",lvl:#rand(1,6)},{id:\"minecraft:unbreaking\",lvl:#rand(1,5)}]}}}",commandSender="VIU")@luck=1
group(type=command,ID="/summon item ~ ~ ~ {CustomNameVisible:1b,CustomName:'{\"text\":\"Energy Axe\",\"color\":\"yellow\",\"bold\":true,\"italic\":false}',Item:{id:\"minecraft:golden_axe\",Count:1b,tag:{display:{Name:'{\"text\":\"Energy Axe\",\"color\":\"yellow\",\"bold\":true,\"italic\":false}'},Enchantments:[{id:\"minecraft:#randList(fortune,silk_touch)\",lvl:#rand(0,10)},{id:\"minecraft:efficiency\",lvl:#rand(1,6)},{id:\"minecraft:unbreaking\",lvl:#rand(1,5)}]}}}",commandSender="VIU")@luck=1
group(type=command,ID="/summon item ~ ~ ~ {CustomNameVisible:1b,CustomName:'{\"text\":\"Energy Shovel\",\"color\":\"yellow\",\"bold\":true,\"italic\":false}',Item:{id:\"minecraft:golden_shovel\",Count:1b,tag:{display:{Name:'{\"text\":\"Energy Shovel\",\"color\":\"yellow\",\"bold\":true,\"italic\":false}'},Enchantments:[{id:\"minecraft:#randList(fortune,silk_touch)\",lvl:#rand(0,10)},{id:\"minecraft:efficiency\",lvl:#rand(1,6)},{id:\"minecraft:unbreaking\",lvl:#rand(1,5)}]}}}",commandSender="VIU")@luck=1
group(type=command,ID="/summon item ~ ~ ~ {CustomNameVisible:1b,CustomName:'{\"text\":\"Energy Hoe\",\"color\":\"yellow\",\"bold\":true,\"italic\":false}',Item:{id:\"minecraft:golden_hoe\",Count:1b,tag:{display:{Name:'{\"text\":\"Energy Hoe\",\"color\":\"yellow\",\"bold\":true,\"italic\":false}'},Enchantments:[{id:\"minecraft:#randList(fortune,silk_touch)\",lvl:#rand(0,10)},{id:\"minecraft:efficiency\",lvl:#rand(1,6)},{id:\"minecraft:unbreaking\",lvl:#rand(1,5)}]}}}",commandSender="VIU")@luck=1


/lucky items
type=item,ID=lucky:elemental_lucky_sword,NBTTag=(CustomModelData=1002011,Enchantments=#luckySwordEnchantments,Drops=["type=entity,ID=falling_block,amount=#rand(1,7),posOffset='#'circleOffset(#rand(1,3)),NBTTag=(BlockState=(Name=#randList(short_grass,dead_bush,fern)),Fuse=50b,Motion='#'randLaunchMotion"],display=(Name=#jsonStr(text="$fEarth Lucky Sword")))@luck=2
group(ID=arrow,amount=#rand(7,16);type=item,ID=lucky:elemental_lucky_bow,NBTTag=(CustomModelData=1002012,Enchantments=#luckyBowEnchantments,Drops=["type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=arrow),trail=(frequency=0.5,drops=[\"type=particle,ID=block.dirt\"]),impact=[\"group(type=command,ID=/fill ~ ~ ~ ~ ~-1 ~ air destroy;type=particle,ID=block.dirt,posY=#bExactPosY-7,size=(2.0,3.0,2.0),particleAmount=2000;type=sound,ID=block.gravel.break,volume=2.0)\"])"],display=(Name=#jsonStr(text="$fEarth Lucky Bow"))))@luck=2
group(ID=arrow,amount=#rand(7,16);type=item,ID=lucky:elemental_lucky_bow,NBTTag=(CustomModelData=1002013,Enchantments=#luckyBowEnchantments,Drops=["type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=stone_pickaxe),trail=(frequency=0.5,drops=[\"type=particle,ID=block.dirt\"]),impact=[\"group(type=command,ID=\"/fill ~ ~1 ~ ~ ~-1 ~ air destroy\";type=command,ID=\"/setblock ~1 ~ ~ air destroy\";type=command,ID=\"/setblock ~-1 ~ ~ air destroy\";type=command,ID=\"/setblock ~ ~ ~1 air destroy\";type=command,ID=\"/setblock ~ ~ ~-1 air destroy\";type=particle,ID=block.dirt,posY=#bExactPosY-7,size=(2.0,3.0,2.0),particleAmount=2000;type=sound,ID=block.gravel.break,volume=2.0;type=entity,ID=falling_block,amount=#rand(1,3),posOffset='#'circleOffset(#rand(1,3)),NBTTag=(BlockState=(Name=dirt),Fuse=50b,Motion='#'randLaunchMotion))\"])"],display=(Name=#jsonStr(text="$fEarth Lucky Staff"))))@luck=2
type=item,ID=lucky:elemental_lucky_potion,NBTTag=(CustomModelData=1002014,Drops=["group(type=effect,ID=#randList("minecraft:poison","minecraft:weakness","minecraft:slowness","minecraft:instant_damage","minecraft:mining_fatigue","minecraft:nausea","minecraft:hunger","minecraft:bad_luck"),range=4,amplifier=#rand(0,2),duration=30;type=particle,ID=splashpotion,potion=#randList(poison,weakness,slowness,harming))"],display=(Name=#jsonStr(text="$fLucky Splash Potion"))),amount=#rand(10,15)@luck=2
type=item,ID=lucky:elemental_lucky_potion,NBTTag=(CustomModelData=1002015,Drops=["group(type=entity,ID=falling_block,amount=#rand(1,7),posOffset='#'circleOffset(#rand(1,3)),NBTTag=(BlockState=(Name=dirt),Fuse=50b,Motion='#'randLaunchMotion);type=explosion,radius=#randList(1,1,2,2,2,2,3,3,3,4,4),fire=false)"],display=(Name=#jsonStr(text="$fEarth Lucky Bomb"))),amount=#rand(2,5)@luck=2




/ ========== FIRE 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@chance=0.92

/ 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

/ all horse armor
group(ID=iron_horse_armor;ID=golden_horse_armor;ID=diamond_horse_armor)@luck=2

/ all gold armor
group(ID=golden_helmet;ID=golden_chestplate;ID=golden_leggings;ID=golden_boots;ID=golden_horse_armor)@luck=1

/hammers
group:#rand(1,2):(ID=golden_axe;ID=iron_axe;ID=netherite_axe)@luck=0

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

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

/fire
type=block,ID=fire@luck=-1
type=entity,ID=falling_block,amount=#rand(5,10),posOffset=#circleOffset(#rand(1,5)),NBTTag=(BlockState=(Name=fire),Fuse=50b,Motion=#randLaunchMotion)@luck=-1
type=entity,ID=falling_block,amount=#rand(5,10),posOffset=#circleOffset(#rand(10,25)),NBTTag=(BlockState=(Name=fire),Fuse=50b,Motion=#randLaunchMotion)@luck=-2
type=entity,ID=falling_block,amount=#rand(5,12),posOffset=#circleOffset(#rand(1,5)),NBTTag=(BlockState=(Name=lava),Fuse=50b,Motion=#randLaunchMotion)@luck=-2
type=fill,ID=fire,size=(2,2,2)@luck=-1
type=fill,ID=fire,size=(3,3,3)@luck=-1
type=fill,ID=fire,size=(4,4,4)@luck=-2
type=fill,ID=fire,size=(7,7,7)@luck=-2@chance=0.5
type=fill,ID=fire,size=(9,9,9)@luck=-2@chance=0.25
type=block,ID=fire,amount=#rand(8,16),posOffset=#circleOffset(#randList(1,2,4,6,8))@luck=-1
type=block,ID=fire,amount=#rand(16,40),posOffset=#circleOffset(#randList(1,2,4,6,8))@luck=-2
type=block,ID=fire,amount=#rand(36,128),posOffset=#circleOffset(#rand(1,15))@luck=-2
type=entity,ID=falling_block,amount=#rand(6,13),posOffset=#circleOffset(#rand(1,5)),NBTTag=(BlockState=(Name=fire),Fuse=50b,Motion=#randLaunchMotion)@luck=-1
type=entity,ID=falling_block,amount=#rand(12,25),posOffset=#circleOffset(#rand(1,5)),NBTTag=(BlockState=(Name=fire),Fuse=50b,Motion=#randLaunchMotion)@luck=-2
type=entity,ID=falling_block,amount=#rand(20,60),posOffset=#circleOffset(#rand(1,5)),NBTTag=(BlockState=(Name=fire),Fuse=50b,Motion=#randLaunchMotion)@luck=-2


/campfire
ID=campfire@luck=0

/nether
ID=netherrack,amount=32@luck=0

/jack on fire
group(type=block,ID=fire,amount=#rand(10,40),posOffset=#circleOffset(#rand(1,10));type=block,ID=jack_o_lantern,amount=#rand(4,9),posOffset=#circleOffset(#rand(0,6)))@luck=-1

/crying obsidian
ID=crying_obsidian,amount=#rand(6,16)@luck=1

/string trap
type=fill,ID=string,size=(7,7,7)@luck=-1

/ chests
type=block,ID=chest,tileEntity=(Items=#chestLootTable("chests/bastion_bridge"))@luck=0
type=block,ID=chest,tileEntity=(Items=#chestLootTable("chests/bastion_hoglin_stable"))@luck=1
type=block,ID=chest,tileEntity=(Items=#chestLootTable("chests/bastion_other"))@luck=1
type=block,ID=chest,tileEntity=(Items=#chestLootTable("chests/bastion_treasure"))@luck=1


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

/nuggets
ID=iron_nugget,amount=#rand(20,64)@luck=-1
ID=gold_nugget,amount=#rand(40,128)@luck=0
ID=gold_nugget,amount=#rand(64,420)@luck=1

/ingots
ID=iron_ingot,amount=#rand(8,18)@luck=1
ID=gold_ingot,amount=#rand(8,18)@luck=1
ID=gold_ingot,amount=#rand(16,56)@luck=2
ID=netherite_ingot@luck=2@chance=0.8

/diamonds
ID=diamond,amount=#rand(2,6)@luck=2
ID=diamond,amount=#rand(6,13)@luck=2@chance=0.7

/scraps
ID=netherite_scrap,amount=#rand(1,5)@luck=2

/quartz
ID=quartz,amount=#rand(16,44)@luck=0

/golden carrot
ID=golden_carrot,amount=10@luck=1

/golden apple
ID=golden_apple,amount=2@luck=2

/enchanted golden apple
ID=enchanted_golden_apple@luck=2@chance=0.5

/blaze rod
ID=blaze_rod@luck=-1

/nether star
ID=nether_star@luck=2@chance=0.8

/fire charge
ID=fire_charge,amount=#rand(8,16)@luck=0

/firework rocket
ID=firework_rocket,amount=#rand(8,16)@luck=0

/fire resistance potions
ID=potion,amount=#rand(1,2),NBTTag=(Potion="fire_resistance")@luck=1
ID=potion,amount=#rand(1,2),NBTTag=(Potion="long_fire_resistance")@luck=2

/fire resistance arrows
ID=tipped_arrow,amount=#rand(8,16),NBTTag=(Potion="fire_resistance")@luck=0
ID=tipped_arrow,amount=#rand(8,16),NBTTag=(Potion="long_fire_resistance")@luck=1

/spectral arrows
ID=spectral_arrow,amount=#rand(5,10)@luck=1


/rose
ID=wither_rose,NBTTag=(display=(Name=#jsonStr(text="Romantic Rose",color=dark_red)))@luck=-1

/torch
ID=torch,amount=128@luck=1

/fire wheel
ID=redstone_block,NBTTag=(display=(Name=#jsonStr(text="Fire Wheel",color=dark_red)))@luck=0

/cooked foods
group:#rand(1,3):(ID=cooked_cod,amount=#rand(8,20);ID=cooked_salmon,amount=#rand(8,20);ID=cooked_rabbit,amount=#rand(8,20);ID=cooked_mutton,amount=#rand(8,20);ID=cooked_chicken,amount=#rand(8,20);ID=cooked_beef,amount=#rand(8,20))@luck=0


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

/ netherrack combo
group(ID=soul_sand,amount=#rand(20,48);ID=netherrack,amount=#rand(16,32);ID=nether_gold_ore,amount=#rand(8,20);ID=nether_gold_ore,amount=#rand(12,24))@luck=0

/nether brick set
group(ID=nether_bricks,amount=#rand(8,24);ID=nether_brick,amount=#rand(16,64))@luck=0

/quartz block set
group(ID=quartz_block,amount=#rand(8,24);ID=quartz,amount=#rand(16,64))@luck=1

/nether wart growing set
group(type=block;ID=soul_sand,ID=nether_wart,amount=#rand(5,10))@luck=1

/dark stones set
group(ID=blackstone,amount=#rand(12,32);ID=deepslate,amount=#rand(24,56);ID=tuff,amount=#rand(8,20))@luck=0

/fire corals set
group(ID=fire_coral_block,amount=#rand(8,16);ID=fire_coral,amount=#rand(16,64))@luck=0

/bows and fire resistance arrows
group(ID=bow;ID=tipped_arrow,amount=#rand(8,24),NBTTag=(Potion="fire_resistance"))@luck=1

/torches
group(ID=torch,amount=#rand(32,64);ID=redstone_torch,amount=#rand(8,24);ID=fire_charge,amount=#rand(4,12))@luck=0

/brewing combo
group(ID=magma_cream,amount=#rand(3,7);ID=blaze_powder,amount=#rand(4,9);ID=blaze_rod,amount=#rand(2,4))@luck=1

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



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

/magma cubes
type=entity,ID=magma_cube,amount=#rand(1,4)@luck=-1
type=entity,ID=magma_cube,amount=#rand(3,9)@luck=-2

/ghasts
type=entity,ID=ghast,amount=#rand(1,3)@luck=-1
type=entity,ID=ghast,amount=#rand(2,5)@luck=-2

/blazes
type=entity,ID=blaze,amount=#rand(1,4)@luck=-1
type=entity,ID=blaze,amount=#rand(3,9)@luck=-2

/fire stalfos
group(type=difficulty,ID=hard;type=entity,ID=skeleton,amount=#rand(4,9),NBTTag=(
    HandItems=[(id=lucky:elemental_lucky_sword,Count=1,tag=(CustomModelData=1002021,Enchantments=#luckySwordEnchantments))],
    ArmorItems=[(id=golden_boots,Count=1,tag=(Enchantments=#luckyBootsEnchantments)),(id=golden_leggings,Count=1,tag=(Enchantments=#luckyLeggingsEnchantments)),(id=golden_chestplate,Count=1,tag=(Enchantments=#luckyChestplateEnchantments)),(id=golden_helmet,Count=1,tag=(Enchantments=#luckyHelmetEnchantments))],
    HandDropChances=[0.05f,0f],ArmorDropChances=[0.03f,0.03f,0.03f,0.03f],
    CustomName=#jsonStr(text="Fire Stalfo",color=orange,bold=true),CustomNameVisible=true)
)@luck=-1

/fire bros
group(type=difficulty,ID=hard;type=entity,ID=blaze,amount=#rand(2,8),NBTTag=(
    HandItems=[(id=golden_sword,Count=1,tag=(Enchantments=#luckySwordEnchantments))],
    ArmorItems=[(id=golden_boots,Count=1,tag=(Enchantments=#luckyBootsEnchantments)),(id=golden_leggings,Count=1,tag=(Enchantments=#luckyLeggingsEnchantments)),(id=golden_chestplate,Count=1,tag=(Enchantments=#luckyChestplateEnchantments)),(id=golden_helmet,Count=1,tag=(Enchantments=#luckyHelmetEnchantments))],
    HandDropChances=[0.05f,0f],ArmorDropChances=[0.03f,0.03f,0.03f,0.03f],
    CustomName=#jsonStr(text="Fire Bro",color=orange,bold=true),CustomNameVisible=true)
)@luck=-2

/fire bob
group(type=difficulty,ID=hard;type=entity,ID=zombie,NBTTag=(
    HandItems=[(id=lucky:elemental_lucky_sword,Count=1,tag=(CustomModelData=1002021,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=netherite_helmet,Count=1,tag=(Enchantments=#luckyHelmetEnchantments))],
    HandDropChances=[0.1f,0f],ArmorDropChances=[0.1f,0.1f,0.1f,0.1f],
    CustomName=#jsonStr(text="Fire Bob",color=blue,bold=true),CustomNameVisible=true)
)@luck=-2

/ black horse
type=entity,ID=horse,amount=#rand(1,4),posOffset=#circleOffset(4),NBTTag=(Variant=1029,Tame=true,Owner=#pUUIDArray)@luck=1

/ blaze fire ball
type=entity,ID=small_fireball,amount=#rand(2,7)@luck=-1

/ ghast fire ball
type=entity,ID=fireball,amount=#rand(2,7)@luck=-2

/ fiery villagers
type=entity,ID=villager,NBTTag=(
    VillagerData=(level=3,profession=toolsmith,type=savanna),
    Offers=(Recipes=[
        (buy=(id=diamond,Count=#rand(15,25)),sell=(id=lucky:elemental_lucky_sword,Count=1,tag=(CustomModelData=1002021,Enchantments=#luckySwordEnchantments,Drops=["type=entity,ID=lucky:lucky_projectile,pos=#pExactPos,posOffsetY=1.5,NBTTag=(Motion=#motionFromDirection(#pYaw+#rand(-10,10),#pPitch+#rand(-10,10),1.0),item=(id=blaze_powder,Count=1),impact=[\"group(type=block,ID=fire;type=effect,ID=special_fire,target=hitEntity,duration=5)\"],damage=0.0),amount=#rand(1,6),delay=#rand(0.0,2.0)"],Enchantments=[(id=fire_aspect,lvl=1)],display=(Name=#jsonStr(text="$fFire Lucky Sword")))),maxUses=36),
        (buy=(id=diamond,Count=#rand(10,20)),sell=(id=lucky:elemental_lucky_bow,Count=1,tag=(CustomModelData=1002022,Enchantments=#luckyBowEnchantments,Drops=["group(type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=minecraft:blaze_powder),trail=(frequency=0.5,drops=[\"type=particle,ID=smoke,posY=#bExactPosY+0.4\"]),impact=[\"type=block,ID=fire\"]))"],Enchantments=[(id=flame,lvl=1)],display=(Name=#jsonStr(text="$fFire Lucky Bow")))),maxUses=36),
        (buy=(id=diamond,Count=#rand(20,30)),sell=(id=lucky:elemental_lucky_bow,Count=1,tag=(CustomModelData=1002023,Enchantments=#luckyBowEnchantments,Drops=["group(type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=minecraft:blaze_powder),trail=(frequency=0.5,drops=[\"type=particle,ID=smoke,posY=#bExactPosY+0.4\"]),impact=[\"group(type=block,ID=fire;type=particle,ID=enchanted_hit,posY=#bExactPosY+0.4;type=explosion,radius=0,fire=true;type=entity,ID=falling_block,amount=#randList(0,0,0,0,1,1,1,2,2,2,3),posOffset='#'circleOffset(#rand(1,3)),NBTTag=(BlockState=(Name=fire),Fuse=50b,Motion='#'randLaunchMotion))\"]))"],Enchantments=[(id=flame,lvl=1)],display=(Name=#jsonStr(text="$fFire Lucky Staff")))),maxUses=36),
        (buy=(id=diamond,Count=#rand(5,10)),sell=(id=lucky:elemental_lucky_potion,Count=3,tag=(CustomModelData=1002024,Drops=["group(type=block,ID=fire)"],display=(Name=#jsonStr(text="$fHot Pocket")))),maxUses=36),
        (buy=(id=diamond,Count=#rand(10,15)),sell=(id=lucky:elemental_lucky_potion,Count=3,tag=(CustomModelData=1002025,Drops=["group(type=explosion,radius=#randList(2,2,2,2,3,3,3,4),fire=true)"],display=(Name=#jsonStr(text="$fFire Lucky Bomb")))),maxUses=36)
    ]),
    CustomName=#jsonStr(text="Fiery",color=red,bold=true),CustomNameVisible=true
)@luck=1


type=entity,ID=villager,NBTTag=(
    VillagerData=(level=3,profession=toolsmith,type=savanna),
    Offers=(Recipes=[
        (buy=(id=diamond,Count=#rand(12,17)),sell=(id=netherite_helmet,Count=1,tag=(Enchantments=#luckyHelmetEnchantments,display=(Name=#jsonStr(text="Fiery Helmet",color=red,bold=true)))),maxUses=36),
        (buy=(id=diamond,Count=#rand(20,25)),sell=(id=netherite_chestplate,Count=1,tag=(Enchantments=#luckyChestplateEnchantments,display=(Name=#jsonStr(text="Fiery Chestplate",color=red,bold=true)))),maxUses=36),
        (buy=(id=diamond,Count=#rand(15,20)),sell=(id=netherite_leggings,Count=1,tag=(Enchantments=#luckyLeggingsEnchantments,display=(Name=#jsonStr(text="Fiery Leggings",color=red,bold=true)))),maxUses=36),
        (buy=(id=diamond,Count=#rand(12,17)),sell=(id=netherite_boots,Count=1,tag=(Enchantments=#luckyBootsEnchantments,display=(Name=#jsonStr(text="Fiery Boots",color=red,bold=true)))),maxUses=36)
    ]),
    CustomName=#jsonStr(text="Fiery",color=red,bold=true),CustomNameVisible=true
)@luck=1

type=entity,ID=villager,NBTTag=(
    VillagerData=(level=3,profession=toolsmith,type=savanna),
    Offers=(Recipes=[
        (buy=(id=diamond,Count=#rand(10,15)),sell=(id=golden_shovel,Count=1,tag=(Enchantments=#luckyToolEnchantments,display=(Name=#jsonStr(text="Fiery Shovel",color=red,bold=true)))),maxUses=36),
        (buy=(id=diamond,Count=#rand(15,20)),sell=(id=golden_pickaxe,Count=1,tag=(Enchantments=#luckyToolEnchantments,display=(Name=#jsonStr(text="Fiery Pickaxe",color=red,bold=true)))),maxUses=36),
        (buy=(id=diamond,Count=#rand(15,20)),sell=(id=golden_axe,Count=1,tag=(Enchantments=#luckyAxeEnchantments,display=(Name=#jsonStr(text="Fiery Axe",color=red,bold=true)))),maxUses=36),
        (buy=(id=diamond,Count=#rand(10,15)),sell=(id=golden_hoe,Count=1,tag=(Enchantments=#luckyToolEnchantments,display=(Name=#jsonStr(text="Fiery Hoe",color=red,bold=true)))),maxUses=36)
    ]),
    CustomName=#jsonStr(text="Fiery",color=red,bold=true),CustomNameVisible=true
)@luck=1

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

/fire overlay
group(type=command,ID="/fill ~10 ~10 ~10 ~-10 ~-10 ~-10 fire replace air";type=message,ID="$4$lReady to burn!")@luck=-2


/fire explosions
type=explosion,radius=3,fire=true@luck=-1
type=explosion,radius=4,fire=true@luck=-1
type=explosion,radius=6,fire=true@luck=-2
type=explosion,radius=8,fire=true@luck=-2@chance=0.5

/falling iron
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

/falling gold
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

/falling lodestone
group(type=fill,ID=air,size=(1,8,1);type=entity,ID=falling_block,posY=#bPosY+7,NBTTag=(BlockState=(Name=lodestone));type=particle,ID=happy_villager,size=(1,2,1),particleAmount=500;type=sound,ID=block.grass.break)@luck=1

/falling respawn anchor
group(type=fill,ID=air,size=(1,8,1);type=entity,ID=falling_block,posY=#bPosY+7,NBTTag=(BlockState=(Name=respawn_anchor));type=particle,ID=splash,size=(1,2,1),particleAmount=1000;type=sound,ID=entity.player.swim)@luck=0

/falling debris
group(type=fill,ID=air,size=(1,8,1);type=entity,ID=falling_block,posY=#bPosY+7,NBTTag=(BlockState=(Name=ancient_debris));type=entity,ID=lightning_bolt)@luck=2


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

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

/obsidian with end crystal
group(type=fill,ID=air,size=(1,51,1);
    group(
        NBTTag=(BlockState=(Name=obsidian)),posY=#bPosY+5;
        NBTTag=(BlockState=(Name=obsidian)),posY=#bPosY+10;
        NBTTag=(BlockState=(Name=obsidian)),posY=#bPosY+15;
        NBTTag=(BlockState=(Name=obsidian)),posY=#bPosY+20;
        NBTTag=(BlockState=(Name=obsidian)),posY=#bPosY+25;
        NBTTag=(BlockState=(Name=obsidian)),posY=#bPosY+30;
        NBTTag=(BlockState=(Name=obsidian)),posY=#bPosY+35;
        NBTTag=(BlockState=(Name=obsidian)),posY=#bPosY+40;
        NBTTag=(BlockState=(Name=obsidian)),posY=#bPosY+45
    ),type=entity,ID=falling_block;
    type=entity,ID=falling_block,NBTTag=(BlockState=(Name=end_crystal)),posY=#bPosY+50
)@luck=0

/ lava cage
group(
    type=structure,ID=cage,pos=#pPos,rotation=#pDirect;
    type=block,ID=lava,pos=(#pPosX,#pPosY+3,#pPosZ)
)@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

/pmd fire hut
type=structure,ID=elefire_firehut@luck=0

/fire ring
group(type=entity,ID=wither_skeleton,amount=#rand(1,3);type=structure,ID=elefire_firering)@luck=-2

/mlss fire temple (lucky)
type=structure,ID=elefire_firetemple#rand(1,20)@luck=2

/sims bbq
type=structure,ID=elefire_bbq@luck=0

/ wishing wells
group(
    type=structure,ID=elefire_wellfire;type=message,ID="A fire 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=5,posY='#'bPosY+3,posOffset='#'circleOffset(2);
        ID=iron_ingot,amount=#rand(24,36),posY='#'bPosY+10,posOffset='#'circleOffset(2);
        ID=gold_ingot,amount=#rand(20,28),posY='#'bPosY+10,posOffset='#'circleOffset(2);
        ID=diamond,amount=#rand(12,20),posY='#'bPosY+10,posOffset='#'circleOffset(2);
        ID=netherite_scrap,amount=#rand(0,8),posY='#'bPosY+10,posOffset='#'circleOffset(2)
    )"])
)@luck=2

group(
    type=structure,ID=elefire_wellfire;type=message,ID="A fire 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 hot wish came true!)\";
        type=block,ID=air,posY='#'bPosY+3;
        type=block,ID=beacon,posY='#'bPosY+2;
        ID=blaze_powder,amount=#rand(12,24),posY='#'bPosY+10,posOffset='#'circleOffset(2);
        ID=fire_charge,amount=#rand(10,20),posY='#'bPosY+10,posOffset='#'circleOffset(2);
        ID=lucky:element_lucky_potion,amount=#rand(6,12),NBTTag=(CustomModelData=1002024,Drops=["group(type=block,ID=fire)"],display=(Name=#jsonStr(text="$fHot Pocket"))),posY='#'bPosY+10,posOffset='#'circleOffset(2)
    )"])
)@luck=1

/ wishing wells
group(
    type=structure,ID=elefire_wellfire;type=message,ID="A fire 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 materials 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=blaze_powder,amount=#rand(6,16),posY='#'bPosY+10,posOffset='#'circleOffset(2);
        ID=magma_cream,amount=#rand(3,12),posY='#'bPosY+10,posOffset='#'circleOffset(2);
        ID=blaze_rod,amount=#rand(2,8),posY='#'bPosY+10,posOffset='#'circleOffset(2);
        ID=ghast_tear,amount=#rand(1,5),posY='#'bPosY+10,posOffset='#'circleOffset(2)
    )"])
)@luck=1



group(
    type=structure,ID=elefire_wellfire;
    type=message,ID="A fire 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 burning wish came true!\";
        type=block,ID=air,posY='#'bPosY+3;
        type=block,ID=beacon,posY='#'bPosY+2;
        type=entity,ID=blaze,posOffset=#circleOffset(#rand(1,5)),amount=#rand(4,9);
		type=entity,ID=falling_block,amount=#rand(8,20),posOffset=#circleOffset(#rand(1,5)),NBTTag=(BlockState=(Name=fire),Fuse=50b,Motion=#randLaunchMotion);
	    type=entity,ID=ghast,posY='#'bPosY+#rand(6,12),posOffset='#'circleOffset(#rand(4,15)),amount=#rand(1,4)
    )"])
)@luck=-1

group(
    type=structure,ID=elefire_wellfire;
    type=message,ID="A fire 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 ==========

/fire warlock armor
group(ID=leather_helmet,NBTTag=(display=(color=13710131,Name=#jsonStr(text="$4Fire Warlock Cap")),Enchantments=[(id=fire_protection,lvl=#randList(5,5,6,6,6,7,5,5,6,6,6,7,8))]);ID=leather_chestplate,NBTTag=(display=(color=13710131,Name=#jsonStr(text="$4Fire Warlock Jacket")),Enchantments=[(id=fire_protection,lvl=#randList(5,5,6,6,6,7,5,5,6,6,6,7,8))]);ID=leather_leggings,NBTTag=(display=(color=13710131,Name=#jsonStr(text="$4Fire Warlock Pants")),Enchantments=[(id=fire_protection,lvl=#randList(5,5,6,6,6,7,5,5,6,6,6,7,8))]);ID=leather_boots,NBTTag=(display=(color=13710131,Name=#jsonStr(text="$4Fire Warlock Shoes")),Enchantments=[(id=fire_protection,lvl=#randList(5,5,6,6,6,7,5,5,6,6,6,7,8))]))@luck=1

/ fire skull
ID=wither_skeleton_skull,NBTTag=(Enchantments=#luckyHelmetEnchantments,display=(Name=#jsonStr(text="Fire Skull",color=orange,bold=true)))@luck=0

/ daira axe
ID=stone_axe,NBTTag=(Enchantments=#luckySwordEnchantments,display=(Name=#jsonStr(text="Fire Daira's Axe",color=orange,bold=true)))@luck=1

/ firebringers axe
ID=iron_axe,NBTTag=(Enchantments=#luckySwordEnchantments,display=(Name=#jsonStr(text="Fire Bringer's Axe",color=orange,bold=true)))@luck=2

/ bon fire
ID=blaze_rod,NBTTag=(display=(Name=#jsonStr(text="$4Bonfire")),Enchantments=[(id=fire_aspect,lvl=#rand(2,6))])@luck=2

/ minecrafter pickaxe
ID=diamond_pickaxe,NBTTag=(Enchantments=#luckyToolEnchantments,display=(Name=#jsonStr(text="Minecrafter's Pickaxe",color=blue,bold=true)))@luck=2

/ minecrafter shovel
ID=diamond_shovel,NBTTag=(Enchantments=#luckyToolEnchantments,display=(Name=#jsonStr(text="Minecrafter's Shovel",color=blue,bold=true)))@luck=2

/ enchanted golden's tools
group:#rand(1,2):(
    ID=golden_shovel,NBTTag=(Enchantments=#luckyToolEnchantments,display=(Name=#jsonStr(text="Enchanted Golden's Shovel",color=gold,bold=true)));
    ID=golden_pickaxe,NBTTag=(Enchantments=#luckyToolEnchantments,display=(Name=#jsonStr(text="Enchanted Golden's Pickaxe",color=gold,bold=true)));
    ID=golden_axe,NBTTag=(Enchantments=#luckyAxeEnchantments,display=(Name=#jsonStr(text="Enchanted Golden's Axe",color=gold,bold=true)));
    ID=golden_hoe,NBTTag=(Enchantments=#luckyToolEnchantments,display=(Name=#jsonStr(text="Enchanted Golden's Hoe",color=gold,bold=true)));
    ID=warped_fungus_on_a_stick,NBTTag=(Enchantments=#luckyFishingRodEnchantments,display=(Name=#jsonStr(text="Enchanted Golden's Fishing Rod",color=gold,bold=true)))
)@luck=2

/ enchanted golden's armor
group:#rand(1,2):(
    ID=golden_helmet,NBTTag=(Enchantments=#luckyHelmetEnchantments,display=(Name=#jsonStr(text="Enchanted Golden's Helmet",color=gold,bold=true)));
    ID=golden_chestplate,NBTTag=(Enchantments=#luckyChestplateEnchantments,display=(Name=#jsonStr(text="Enchanted Golden's Chestplate",color=gold,bold=true)));
    ID=golden_leggings,NBTTag=(Enchantments=#luckyLeggingsEnchantments,display=(Name=#jsonStr(text="Enchanted Golden's Leggings",color=gold,bold=true)));
    ID=golden_boots,NBTTag=(Enchantments=#luckyBootsEnchantments,display=(Name=#jsonStr(text="Enchanted Golden's Boots",color=gold,bold=true)))
)@luck=1


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

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

/ lucky items
type=item,ID=lucky:elemental_lucky_sword,NBTTag=(CustomModelData=1002021,Enchantments=#luckySwordEnchantments,Drops=["type=entity,ID=lucky:lucky_projectile,pos=#pExactPos,posOffsetY=1.5,NBTTag=(Motion=#motionFromDirection(#pYaw+#rand(-10,10),#pPitch+#rand(-10,10),1.0),item=(id=blaze_powder,Count=1),impact=[\"group(type=block,ID=fire;type=effect,ID=special_fire,target=hitEntity,duration=5)\"],damage=0.0),amount=#rand(1,6),delay=#rand(0.0,2.0)"],Enchantments=[(id=fire_aspect,lvl=1)],display=(Name=#jsonStr(text="$fFire Lucky Sword")))@luck=2
group(ID=arrow,amount=#rand(7,16);type=item,ID=lucky:elemental_lucky_bow,NBTTag=(CustomModelData=1002022,Enchantments=#luckyBowEnchantments,Drops=["group(type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=minecraft:blaze_powder),trail=(frequency=0.5,drops=[\"type=particle,ID=smoke,posY=#bExactPosY+0.4\"]),impact=[\"type=block,ID=fire\"]))"],Enchantments=[(id=flame,lvl=1)],display=(Name=#jsonStr(text="$fFire Lucky Bow"))))@luck=2
group(ID=arrow,amount=#rand(7,16);type=item,ID=lucky:elemental_lucky_bow,NBTTag=(CustomModelData=1002023,Enchantments=#luckyBowEnchantments,Drops=["group(type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=minecraft:blaze_powder),trail=(frequency=0.5,drops=[\"type=particle,ID=smoke,posY=#bExactPosY+0.4\"]),impact=[\"group(type=block,ID=fire;type=particle,ID=enchanted_hit,posY=#bExactPosY+0.4;type=explosion,radius=0,fire=true;type=entity,ID=falling_block,amount=#randList(0,0,0,0,1,1,1,2,2,2,3),posOffset='#'circleOffset(#rand(1,3)),NBTTag=(BlockState=(Name=fire),Fuse=50b,Motion='#'randLaunchMotion))\"]))"],Enchantments=[(id=flame,lvl=1)],display=(Name=#jsonStr(text="$fFire Lucky Staff"))))@luck=2
type=item,ID=lucky:elemental_lucky_potion,NBTTag=(CustomModelData=1002024,Drops=["group(type=block,ID=fire)"],display=(Name=#jsonStr(text="$fHot Pocket"))),amount=#rand(10,15)@luck=2
type=item,ID=lucky:elemental_lucky_potion,NBTTag=(CustomModelData=1002025,Drops=["group(type=explosion,radius=#randList(2,2,2,2,3,3,3,4),fire=true)"],display=(Name=#jsonStr(text="$fFire Lucky Bomb"))),amount=#rand(2,5)@luck=2





/ ========== WATER 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@chance=0.92

/ 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

/ all horse armor
group(ID=iron_horse_armor;ID=golden_horse_armor;ID=diamond_horse_armor)@luck=2

/ all gold armor
group(ID=golden_helmet;ID=golden_chestplate;ID=golden_leggings;ID=golden_boots;ID=golden_horse_armor)@luck=1

/hammers
group:#rand(1,2):(ID=golden_axe;ID=iron_axe;ID=netherite_axe)@luck=0

/ice spirit armor
group(ID=leather_helmet,NBTTag=(display=(color=5165823,Name=#jsonStr(text="$bIce Spirit Cap")),Enchantments=[(id=aqua_affinity,lvl=#randList(5,5,6,6,6,7,5,5,6,6,6,7,8))]);ID=leather_chestplate,NBTTag=(display=(color=5165823,Name=#jsonStr(text="$bIce Spirit Jacket")),Enchantments=[(id=projectile_protection,lvl=#randList(5,5,6,6,6,7,5,5,6,6,6,7,8))]);ID=leather_leggings,NBTTag=(display=(color=5165823,Name=#jsonStr(text="$bIce Spirit Pants")),Enchantments=[(id=projectile_protection,lvl=#randList(5,5,6,6,6,7,5,5,6,6,6,7,8))]);ID=leather_boots,NBTTag=(display=(color=5165823,Name=#jsonStr(text="$bIce Spirit Shoes")),Enchantments=[(id=frost_walker,lvl=#randList(5,5,6,6,6,7,5,5,6,6,6,7,8))]))@luck=1

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


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

/ice clusters
type=block,ID=ice,amount=#rand(10,100),posOffset=#circleOffset(#rand(1,15))@luck=-1
type=block,ID=packed_ice,amount=#rand(8,56),posOffset=#circleOffset(#rand(1,15))@luck=-2
type=block,ID=blue_ice,amount=#rand(4,24),posOffset=#circleOffset(#rand(1,15))@luck=-2
type=block,ID=blue_ice,amount=#rand(4,24),posOffset=#circleOffset(3)@luck=-2
type=entity,ID=falling_block,amount=#rand(6,13),posOffset=#circleOffset(#rand(1,5)),NBTTag=(BlockState=(Name=blue_ice),Fuse=50b,Motion=#randLaunchMotion)@luck=-1
type=entity,ID=falling_block,amount=#rand(12,25),posOffset=#circleOffset(#rand(1,5)),NBTTag=(BlockState=(Name=packed_ice),Fuse=50b,Motion=#randLaunchMotion)@luck=-2
type=entity,ID=falling_block,amount=#rand(20,60),posOffset=#circleOffset(#rand(1,5)),NBTTag=(BlockState=(Name=ice),Fuse=50b,Motion=#randLaunchMotion)@luck=-2

/ chests
type=block,ID=chest,tileEntity=(Items=#chestLootTable("chests/igloo_chest"))@luck=0
type=block,ID=chest,tileEntity=(Items=#chestLootTable("chests/village/village_snowy_house"))@luck=1
type=block,ID=chest,tileEntity=(Items=#chestLootTable("chests/simple_dungeon"))@luck=1


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

/nuggets
ID=iron_nugget,amount=#rand(20,64)@luck=-1

/ingots
ID=iron_ingot,amount=#rand(8,18)@luck=1
ID=copper_ingot,amount=#rand(16,48)@luck=1

/diamonds
ID=amethyst_shard,amount=#rand(12,28)@luck=1
ID=amethyst_shard,amount=#rand(32,96)@luck=2
ID=diamond,amount=#rand(2,6)@luck=2
ID=diamond,amount=#rand(6,13)@luck=2@chance=0.7
ID=emerald,amount=#rand(3,10)@luck=1
ID=emerald,amount=#rand(7,20)@luck=2
ID=emerald,amount=#rand(12,50)@luck=2@chance=0.7

/snowballs
ID=snowball,amount=16@luck=-1
ID=snowball,amount=64@luck=0
ID=snowball,amount=#rand(56,140)

/turtle master arrows
ID=tipped_arrow,amount=#rand(3,10),NBTTag=(Potion="turtle_master")@luck=1@chance=0.9
ID=tipped_arrow,amount=#rand(1,5),NBTTag=(Potion="strong_turtle_master")@luck=2@chance=0.8


/slowness arrows
ID=tipped_arrow,amount=#rand(6,18),NBTTag=(Potion="slowness")@luck=0

/slowness potions
ID=splash_potion,amount=#rand(1,2),NBTTag=(Potion="slowness")@luck=1
ID=splash_potion,amount=#rand(1,2),NBTTag=(Potion="strong_slowness")@luck=2

/slowfalling potions
ID=potion,amount=#rand(1,2),NBTTag=(Potion="slow_falling")@luck=2

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

/all candle variants
ID=#randColor_candle,amount=#rand(32,64)@luck=1

/fossils
group(ID=bone,amount=#rand(6,15);ID=bone_meal,amount=#rand(15,40);ID=bone_block,amount=#rand(1,2);ID=skeleton_skull,amount=#rand(0,1))@luck=0

/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

/ices
group(ID=ice,amount=#rand(32,64);ID=packed_ice,amount=#rand(16,32);ID=blue_ice,amount=#rand(8,16))@luck=0

/bright stones
group(ID=diorite,amount=#rand(32,64);ID=calcite,amount=#rand(16,45);ID=tuff,amount=#rand(8,20))@luck=0

/amethysts
group(ID=amethyst,amount=#rand(4,8);ID=budding_amethyst,amount=#rand(1,4);ID=amethyst_shard,amount=#rand(8,24);ID=amethyst_cluster,amount=#rand(3,9))@luck=1

/lrg
group(ID=lapis_block;ID=redstone_block;ID=gold_block)@luck=1

/bows and slowness arrows
group(ID=bow;ID=tipped_arrow,amount=#rand(8,24),NBTTag=(Potion="slowness"))@luck=1


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

/polar bears
type=entity,ID=polar_bear,amount=8,posOffset=#circleOffset(4)@luck=0
type=entity,ID=polar_bear,amount=25,posOffset=#circleOffset(4)@luck=2@chance=0.5

/llamas
type=entity,ID=llama,amount=8,posOffset=#circleOffset(4)@luck=0
type=entity,ID=llama,amount=25,posOffset=#circleOffset(4)@luck=2@chance=0.5

/snow golems
type=entity,ID=snow_golem,amount=8,posOffset=#circleOffset(4)@luck=0
type=entity,ID=snow_golem,amount=25,posOffset=#circleOffset(4)@luck=2@chance=0.5

/ravager
group(type=difficulty,ID=hard;type=entity,ID=ravager,amount=#rand(1,4),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.05f,0f],ArmorDropChances=[0.03f,0.03f,0.03f,0.03f],
    CustomName=#jsonStr(text="Revengers",color=aqua,bold=true),CustomNameVisible=true)
)@luck=-1

/ice atronach
group(type=difficulty,ID=hard;type=entity,ID=skeleton,amount=#rand(2,5),NBTTag=(
    HandItems=[(id=lucky:elemental_lucky_sword,Count=1,tag=(CustomModelData=1002031,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.05f,0f],ArmorDropChances=[0.03f,0.03f,0.03f,0.03f],
    CustomName=#jsonStr(text="Ice Atronach",color=aqua,bold=true),CustomNameVisible=true)
)@luck=-1

/ice warriors
group(type=difficulty,ID=hard;type=entity,ID=wither_skeleton,amount=#rand(1,4),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=diamond_helmet,Count=1,tag=(Enchantments=#luckyHelmetEnchantments))],
    HandDropChances=[0.05f,0f],ArmorDropChances=[0.03f,0.03f,0.03f,0.03f],
    CustomName=#jsonStr(text="Ice Warrior",color=aqua,bold=true),CustomNameVisible=true)
)@luck=-2
group(type=difficulty,ID=hard;type=entity,ID=wither_skeleton,amount=#rand(3,10),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=diamond_helmet,Count=1,tag=(Enchantments=#luckyHelmetEnchantments))],
    HandDropChances=[0.05f,0f],ArmorDropChances=[0.03f,0.03f,0.03f,0.03f],
    CustomName=#jsonStr(text="Ice Warrior",color=aqua,bold=true),CustomNameVisible=true)
)@luck=-2@chance=0.8

/ice commanders
group(type=difficulty,ID=hard;type=entity,ID=skeleton,amount=#rand(1,6),NBTTag=(
    HandItems=[(id=shield,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.05f,0f],ArmorDropChances=[0.03f,0.03f,0.03f,0.03f],
    CustomName=#jsonStr(text="Ice Commander",color=aqua,bold=true),CustomNameVisible=true)
)@luck=-2

/ice soldier
group(type=difficulty,ID=hard;type=entity,ID=skeleton,amount=#rand(1,4),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.05f,0f],ArmorDropChances=[0.03f,0.03f,0.03f,0.03f],
    CustomName=#jsonStr(text="Ice Soldier",color=aqua,bold=true),CustomNameVisible=true)
)@luck=-2

/stray skeletons
type=entity,ID=stray,amount=8,posOffset=#circleOffset(4)@luck=-1
type=entity,ID=stray,amount=16,posOffset=#circleOffset(4)@luck=-2


/ rayzer the stray
group(type=difficulty,ID=hard;type=entity,ID=stray,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="Rayzer",color=blue,bold=true),CustomNameVisible=true)
)@luck=-1
group(type=difficulty,ID=hard;type=entity,ID=stray,amount=#rand(1,8),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="Rayzer",color=blue,bold=true),CustomNameVisible=true)
)@luck=-2

/ ghostly horseman stray
group(type=difficulty,ID=hard;type=entity,ID=bat,NBTTag=(
    Silent=true,
    ActiveEffects=[(id="minecraft:invisibility",duration=100000,amplifier=1,ShowParticles=false)],
    Passengers=[(id=skeleton_horse,Tame=true,Type=4,
        Passengers=[(id=stray,
            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

/ frosty villagers

type=entity,ID=villager,NBTTag=(
    VillagerData=(level=3,profession=weaponsmith,type=snow),
    Offers=(Recipes=[
        (buy=(id=diamond,Count=#rand(15,25)),sell=(id=lucky:elemental_lucky_sword,Count=1,tag=(CustomModelData=1002031,Enchantments=#luckySwordEnchantments,Drops=["type=entity,ID=lucky:lucky_projectile,pos=#pExactPos,posOffsetY=1.5,NBTTag=(Motion=#motionFromDirection(#pYaw+#rand(-10,10),#pPitch+#rand(-10,10),1.0),item=(id=water_bucket,Count=1),impact=[\"group(type=block,ID=water;type=effect,ID="slowness",target=hitEntity,duration=5,amplifier=1)\"],damage=0.0),amount=#rand(1,6),delay=#rand(0.0,2.0)"],Enchantments=[(id=aqua_affinity,lvl=1)],display=(Name=#jsonStr(text="$fWater Lucky Sword")))),maxUses=36),
        (buy=(id=diamond,Count=#rand(10,20)),sell=(id=lucky:elemental_lucky_bow,Count=1,tag=(CustomModelData=1002032,Enchantments=#luckyBowEnchantments,Drops=["group(type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=minecraft:water_bucket),trail=(frequency=0.5,drops=[\"type=particle,ID=water,posY=#bExactPosY+0.4\"]),impact=[\"type=block,ID=water\"]))"],Enchantments=[(id=aqua_affinity,lvl=1)],display=(Name=#jsonStr(text="$fWater Lucky Gun")))),maxUses=36),
        (buy=(id=diamond,Count=#rand(20,30)),sell=(id=lucky:elemental_lucky_bow,Count=1,tag=(CustomModelData=1002033,Enchantments=#luckyBowEnchantments,Drops=["group(type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=minecraft:packed_ice),trail=(frequency=0.5,drops=[\"type=particle,ID=water,posY=#bExactPosY+0.4\"]),impact=[\"group(type=command,ID=/fill ~1 ~ ~1 ~-1 ~ ~-1 snow replace air;type=particle,ID=enchanted_hit,posY=#bExactPosY+0.4;type=entity,ID=falling_block,amount=#randList(1,1,1,2,2,3),posOffset='#'circleOffset(#rand(1,3)),NBTTag=(BlockState=(Name=#randList(ice,ice,ice,packed_ice)),Fuse=50b,Motion='#'randLaunchMotion))\"]))"],Enchantments=[(id=aqua_affinity,lvl=1)],display=(Name=#jsonStr(text="$fIce Lucky Staff")))),maxUses=36),
        (buy=(id=diamond,Count=#rand(5,10)),sell=(id=lucky:elemental_lucky_potion,Count=3,tag=(CustomModelData=1002034,Drops=["group(type=block,ID=water)"],display=(Name=#jsonStr(text="$fWater Pocket")))),maxUses=36),
        (buy=(id=diamond,Count=#rand(10,15)),sell=(id=lucky:elemental_lucky_potion,Count=3,tag=(CustomModelData=1002035,Drops=["group(type=block,ID=water,delay=0.1;type=explosion,radius=#randList(2,2,2,2,3,3,3,4),fire=false)"],display=(Name=#jsonStr(text="$fWater Lucky Bomb")))),maxUses=36)
    ]),
    CustomName=#jsonStr(text="Frosty",color=cyan,bold=true),CustomNameVisible=true
)@luck=1

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

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


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

/snow overlay
group(type=command,ID="/fill ~15 ~15 ~15 ~-15 ~-15 ~-15 snow replace air";type=message,ID="$f$lReady to snow!")@luck=0

/amethyst geode
type=structure,ID=eleice_amethystgeode@luck=0

/ice box trap
type=structure,ID=eleice_icebox@luck=-2

/ice spikes
type=structure,ID=eleice_icespikecone@luck=0
type=structure,ID=eleice_icespiketower@luck=0

/powdered snow trap
type=structure,ID=eleice_powdersnowtrap@luck=-1

/frost glasspane
type=structure,ID=eleice_frostpane@luck=0

/iceloger rain
type=entity,ID=falling_block,amount=#rand(15,80),posOffset=#circleOffset(#rand(1,16)),posY=#bPosY+#rand(20,40),NBTTag=(BlockState=(Name=packed_ice),Fuse=50b,Motion=#randLaunchMotion)@luck=-2

/igloo
type=structure,ID=eleice_igloo@luck=0

/double igloo
type=structure,ID=eleice_igloohome@luck=1

/ice station
type=structure,ID=eleice_icestation#rand(1,20)@luck=2

/ice dungeon
group(type=structure,ID=eleice_icedungeon#rand(1,16),pos=#pPos;type=entity,ID=stray,amount=#rand(3,8),posOffset=#circleOffset(#rand(2,6)))@luck=-1

/freeze
type=command,ID="/fill ~3 ~3 ~3 ~-3 ~-3 ~-3 ice keep"@luck=-1@chance=0.9


/aurora borealis
group(type=fill,ID=air,size=(1,51,1);
    group(
        NBTTag=(BlockState=(Name=dark_prismarine)),posY=#bPosY+5;
        NBTTag=(BlockState=(Name=oxidized_copper)),posY=#bPosY+10;
        NBTTag=(BlockState=(Name=raw_gold_block)),posY=#bPosY+15;
        NBTTag=(BlockState=(Name=redstone_block)),posY=#bPosY+20;
        NBTTag=(BlockState=(Name=stripped_crimson_hyphae)),posY=#bPosY+25;
        NBTTag=(BlockState=(Name=purpur_block)),posY=#bPosY+30;
        NBTTag=(BlockState=(Name=amethyst_block)),posY=#bPosY+35;
        NBTTag=(BlockState=(Name=lapis_block)),posY=#bPosY+40;
        NBTTag=(BlockState=(Name=crying_obsidian)),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


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

/falling blocks 
group(type=fill,ID=air,size=(1,8,1);type=entity,ID=falling_block,posY=#bPosY+7,NBTTag=(BlockState=(Name=redstone_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=lapis_block));type=particle,ID=splash,size=(1,2,1),particleAmount=1000;type=sound,ID=entity.player.swim)@luck=0


/ wishing wells
group(
    type=structure,ID=eleice_wellice;type=message,ID="A water 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 ice 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@chance=0.8

/ wishing wells
group(
    type=structure,ID=eleice_wellice;type=message,ID="A water 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 materials 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=diamond,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(2);
        ID=prismarine_crystals,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(2);
        ID=emerald,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(2);
        ID=amethyst_shard,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(2)
    )"])
)@luck=2

group(
    type=structure,ID=eleice_wellice;type=message,ID="A water 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! (If you like ice)\";
        type=block,ID=air,posY='#'bPosY+3;
        type=block,ID=beacon,posY='#'bPosY+2;
        ID=ice,amount=#rand(48,64),posY='#'bPosY+10,posOffset='#'circleOffset(2);
        ID=packed_ice,amount=#rand(24,40),posY='#'bPosY+10,posOffset='#'circleOffset(2);
        ID=blue_ice,amount=#rand(15,25),posY='#'bPosY+10,posOffset='#'circleOffset(2)
    )"])
)@luck=1

group(
    type=structure,ID=eleice_wellice;type=message,ID="A water 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=\"$fYour wish came true! (If you like snow)\";
        type=block,ID=air,posY='#'bPosY+3;
        type=block,ID=beacon,posY='#'bPosY+2;
        ID=snow,amount=#rand(18,32),posY='#'bPosY+10,posOffset='#'circleOffset(2);
        ID=lucky:elemental_lucky_potion,amount=#rand(12,24),NBTTag=(CustomModelData=1002034,Drops=["group(type=block,ID=water)"],display=(Name=#jsonStr(text="$fWater Pocket"))),posY='#'bPosY+10,posOffset='#'circleOffset(2);
        ID=snow_block,amount=#rand(8,15),posY='#'bPosY+10,posOffset='#'circleOffset(2)
    )"])
)@luck=1

group(
    type=structure,ID=eleice_wellice;
    type=message,ID="A water 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=\"$fYour polar wish came true!\";
        type=block,ID=air,posY='#'bPosY+3;
        type=block,ID=beacon,posY='#'bPosY+2;
        type=entity,ID=polar_bear,posY='#'bPosY+4,posOffset=#circleOffset(#rand(1,5)),amount=#rand(4,8);
	    type=entity,ID=snow_golem,posY='#'bPosY+4,posOffset=#circleOffset(#rand(1,5)),amount=#rand(6,14)
    )"])
)@luck=0

group(
    type=structure,ID=eleice_wellice;
    type=message,ID="A water 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 ==========


/ ice atronach's armor
group:#rand(1,3):(
    ID=chainmail_helmet,NBTTag=(Enchantments=#luckyHelmetEnchantments,display=(Name=#jsonStr(text="Ice Atronach's Helmet",color=cyan,bold=true)));
    ID=chainmail_chestplate,NBTTag=(Enchantments=#luckyChestplateEnchantments,display=(Name=#jsonStr(text="Ice Atronach's Chestplate",color=cyan,bold=true)));
    ID=chainmail_leggings,NBTTag=(Enchantments=#luckyLeggingsEnchantments,display=(Name=#jsonStr(text="Ice Atronach's Leggings",color=cyan,bold=true)));
    ID=chainmail_boots,NBTTag=(Enchantments=#luckyBootsEnchantments,display=(Name=#jsonStr(text="Ice Atronach's Boots",color=cyan,bold=true)))
)@luck=0

/ ice armor's armor
group:#rand(1,2):(
    ID=diamond_helmet,NBTTag=(Enchantments=#luckyHelmetEnchantments,display=(Name=#jsonStr(text="Ice Armor's Helmet",color=cyan,bold=true)));
    ID=diamond_chestplate,NBTTag=(Enchantments=#luckyChestplateEnchantments,display=(Name=#jsonStr(text="Ice Armor's Chestplate",color=cyan,bold=true)));
    ID=diamond_leggings,NBTTag=(Enchantments=#luckyLeggingsEnchantments,display=(Name=#jsonStr(text="Ice Armor's Leggings",color=cyan,bold=true)));
    ID=diamond_boots,NBTTag=(Enchantments=#luckyBootsEnchantments,display=(Name=#jsonStr(text="Ice Armor's Boots",color=cyan,bold=true)))
)@luck=2

/ ice warrior's axe
ID=diamond_axe,NBTTag=(Enchantments=#luckySwordEnchantments,display=(Name=#jsonStr(text="Ice Warrior's Axe",color=cyan,bold=true)))@luck=2

/ ice saber's sword
ID=diamond_sword,NBTTag=(Enchantments=#luckySwordEnchantments,display=(Name=#jsonStr(text="Ice Saber",color=cyan,bold=true)))@luck=2

/ ice commander's shield
ID=shield,NBTTag=(Enchantments=#luckyChestplateEnchantments,display=(Name=#jsonStr(text="Ice Commander's Shield",color=cyan,bold=true)))@luck=2

/ ice soldier's armor
group:#rand(1,2):(
    ID=iron_helmet,NBTTag=(Enchantments=#luckyHelmetEnchantments,display=(Name=#jsonStr(text="Ice Soldier's Helmet",color=cyan,bold=true)));
    ID=iron_chestplate,NBTTag=(Enchantments=#luckyChestplateEnchantments,display=(Name=#jsonStr(text="Ice Soldier's Chestplate",color=cyan,bold=true)));
    ID=iron_leggings,NBTTag=(Enchantments=#luckyLeggingsEnchantments,display=(Name=#jsonStr(text="Ice Soldier's Leggings",color=cyan,bold=true)));
    ID=iron_boots,NBTTag=(Enchantments=#luckyBootsEnchantments,display=(Name=#jsonStr(text="Ice Soldier's Boots",color=cyan,bold=true)))
)@luck=1

/ fridge
ID=light_blue_shulker_box,NBTTag=(Enchantments=#luckyToolEnchantments,display=(Name=#jsonStr(text="#pName's Portable Freezer",color=cyan,bold=true)))@luck=2

/ leather boots
ID=leather_boots,NBTTag=(Enchantments=#luckyBootsEnchantments,display=(Name=#jsonStr(text="Leather Boots",color=cyan,bold=true),Lore=[#jsonStr(text="Perfect for snow biomes")] ))@luck=2

/ frosted tools
group:#rand(1,2):(
    ID=diamond_shovel,NBTTag=(Enchantments=#luckyToolEnchantments,display=(Name=#jsonStr(text="Frosted Shovel",color=cyan,bold=true)));
    ID=diamond_pickaxe,NBTTag=(Enchantments=#luckyToolEnchantments,display=(Name=#jsonStr(text="Frosted Pickaxe",color=cyan,bold=true)));
    ID=diamond_axe,NBTTag=(Enchantments=#luckyAxeEnchantments,display=(Name=#jsonStr(text="Frosted Axe",color=cyan,bold=true)));
    ID=diamond_hoe,NBTTag=(Enchantments=#luckyToolEnchantments,display=(Name=#jsonStr(text="Frosted Hoe",color=cyan,bold=true)));
    ID=spyglass,NBTTag=(Enchantments=#luckyToolEnchantments,display=(Name=#jsonStr(text="New View",color=cyan,bold=true)))
)@luck=2


/ lucky items
type=item,ID=lucky:elemental_lucky_sword,NBTTag=(CustomModelData=1002031,Enchantments=#luckySwordEnchantments,Drops=["type=entity,ID=lucky:lucky_projectile,pos=#pExactPos,posOffsetY=1.5,NBTTag=(Motion=#motionFromDirection(#pYaw+#rand(-10,10),#pPitch+#rand(-10,10),1.0),item=(id=water_bucket,Count=1),impact=[\"group(type=block,ID=water;type=effect,ID="slowness",target=hitEntity,duration=5,amplifier=1)\"],damage=0.0),amount=#rand(1,6),delay=#rand(0.0,2.0)"],Enchantments=[(id=aqua_affinity,lvl=1)],display=(Name=#jsonStr(text="$fWater Lucky Sword")))@luck=2
group(ID=arrow,amount=#rand(7,16);type=item,ID=lucky:elemental_lucky_bow,NBTTag=(CustomModelData=1002032,Enchantments=#luckyBowEnchantments,Drops=["group(type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=minecraft:water_bucket),trail=(frequency=0.5,drops=[\"type=particle,ID=water,posY=#bExactPosY+0.4\"]),impact=[\"type=block,ID=water\"]))"],Enchantments=[(id=aqua_affinity,lvl=1)],display=(Name=#jsonStr(text="$fWater Lucky Gun"))))@luck=2
group(ID=arrow,amount=#rand(7,16);type=item,ID=lucky:elemental_lucky_bow,NBTTag=(CustomModelData=1002033,Enchantments=#luckyBowEnchantments,Drops=["group(type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=minecraft:packed_ice),trail=(frequency=0.5,drops=[\"type=particle,ID=water,posY=#bExactPosY+0.4\"]),impact=[\"group(type=command,ID=/fill ~1 ~ ~1 ~-1 ~ ~-1 snow replace air;type=particle,ID=enchanted_hit,posY=#bExactPosY+0.4;type=entity,ID=falling_block,amount=#randList(1,1,1,2,2,3),posOffset='#'circleOffset(#rand(1,3)),NBTTag=(BlockState=(Name=#randList(ice,ice,ice,packed_ice)),Fuse=50b,Motion='#'randLaunchMotion))\"]))"],Enchantments=[(id=aqua_affinity,lvl=1)],display=(Name=#jsonStr(text="$fIce Lucky Staff"))))@luck=2
type=item,ID=lucky:elemental_lucky_potion,NBTTag=(CustomModelData=1002034,Drops=["group(type=block,ID=water)"],display=(Name=#jsonStr(text="$fWater Pocket"))),amount=#rand(10,15)@luck=2
type=item,ID=lucky:elemental_lucky_potion,NBTTag=(CustomModelData=1002035,Drops=["group(type=block,ID=water,delay=0.1;type=explosion,radius=#randList(2,2,2,2,3,3,3,4),fire=false)"],display=(Name=#jsonStr(text="$fWater Lucky Bomb"))),amount=#rand(2,5)@luck=2





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

/ golden tools
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


/ 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

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

/ chests
type=block,ID=chest,tileEntity=(Items=#chestLootTable("chests/spawn_bonus_chest"))@luck=0
type=block,ID=chest,tileEntity=(Items=#chestLootTable("chests/jungle_temple"))@luck=1
type=block,ID=chest,tileEntity=(Items=#chestLootTable("chests/jungle_temple_dispenser"))@luck=-1
type=block,ID=chest,tileEntity=(Items=#chestLootTable("chests/woodland_mansion"))@luck=2
ID=scaffolding,amount=64@luck=0

/ ores
type=entity,ID=falling_block,amount=#rand(12,30),posY=#bPosY+#rand(5,20),posOffset=#circleOffset(#rand(1,9)),NBTTag=(BlockState=(Name=#randList(coal,iron,emerald,redstone,gold,lapis,diamond)_ore),Fuse=50b,Motion=#randLaunchMotion)@luck=1

/ stones
type=entity,ID=falling_block,amount=#rand(24,56),posY=#bPosY+#rand(5,20),posOffset=#circleOffset(#rand(1,9)),NBTTag=(BlockState=(Name=#randList(gravel,cobblestone,cobblestone,cobblestone,stone,granite,diorite,andesite,tuff)),Fuse=50b,Motion=#randLaunchMotion)@luck=0

/ glass colorful
type=entity,ID=falling_block,amount=#rand(24,56),posY=#bPosY+#rand(5,20),posOffset=#circleOffset(#rand(1,9)),NBTTag=(BlockState=(Name=#randColor_stained_glass),Fuse=50b,Motion=#randLaunchMotion)@luck=0

/ dirts
type=entity,ID=falling_block,amount=#rand(24,56),posY=#bPosY+#rand(5,20),posOffset=#circleOffset(#rand(1,9)),NBTTag=(BlockState=(Name=#randList(grass_block,dirt,coarse_dirt,podzol,rooted_dirt)),Fuse=50b,Motion=#randLaunchMotion)@luck=0

/ trash
type=entity,ID=falling_block,amount=#rand(24,80),posY=#bPosY+#rand(5,20),posOffset=#circleOffset(#rand(1,9)),NBTTag=(BlockState=(Name=dead_#randList(tube,brain,bubble,fire,horn)_coral_block),Fuse=50b,Motion=#randLaunchMotion)@luck=-1

/ explosive
type=entity,ID=falling_block,amount=#rand(30,80),posY=#bPosY+#rand(5,20),posOffset=#circleOffset(#rand(1,9)),NBTTag=(BlockState=(Name=#randList(tnt,fire,tnt,fire,redstone,redstone_torch,tnt)),Fuse=50b,Motion=#randLaunchMotion)@luck=-1

/ plants
type=entity,ID=falling_block,amount=#rand(36,80),posY=#bPosY+#rand(5,20),posOffset=#circleOffset(#rand(1,9)),NBTTag=(BlockState=(Name=#randList(grass,fern,dead_bush,dandelion,poppy,blue_orchid,allium,azure_bluet,oxeye_daisy,cornflower,lily_of_the_valley,red_mushroom,brown_mushroom)),Fuse=50b,Motion=#randLaunchMotion)@luck=0

/ tulips
type=entity,ID=falling_block,amount=#rand(16,50),posY=#bPosY+#rand(5,20),posOffset=#circleOffset(#rand(1,9)),NBTTag=(BlockState=(Name=#randList(red,pink,orange,white)_tulip),Fuse=50b,Motion=#randLaunchMotion)@luck=0



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


/nuggets
ID=iron_nugget,amount=#rand(20,64)@luck=-1

/ingots
ID=iron_ingot,amount=#rand(8,18)@luck=1

/diamonds
ID=diamond,amount=#rand(2,6)@luck=2
ID=diamond,amount=#rand(6,12)@luck=2@chance=0.7
ID=emerald,amount=#rand(7,14)@luck=2
ID=emerald,amount=#rand(12,28)@luck=2@chance=0.7




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

/ dripleafs
group(ID=small_dripleaf,amount=#rand(12,24);ID=big_dripleaf,amount=#rand(6,12))@luck=0

/ portables
group(ID=ender_pearl,amount=#rand(4,9);ID=ender_eye,amount=#rand(2,4);ID=blaze_powder,amount=#rand(1,3))@luck=1

/ flowers
group(ID=cornflower,amount=#rand(3,6);ID=poppy,amount=#rand(5,15);ID=allium,amount=#rand(6,10);ID=dandelion,amount=#rand(8,24))@luck=0

/ grass plants
group(ID=dead_bush,amount=#rand(20,32);ID=grass,amount=#rand(16,28);ID=fern,amount=#rand(12,24);ID=seagrass,amount=#rand(8,16);ID=sea_pickle,amount=#rand(3,8))@luck=-1

/ colorful glass
ID=#randColor_stained_glass,amount=#rand(60,120)@luck=1

/ saplings
group(ID=oak_sapling,amount=#rand(8,12);ID=spruce_sapling,amount=#rand(6,12);ID=birch_sapling,amount=#rand(5,10);ID=jungle_sapling,amount=#rand(4,9);ID=dark_oak_sapling,amount=#rand(4,8);ID=acacia_sapling,amount=#rand(3,6))@luck=0

/ vines op
group(type=message,ID="$2VINES OP!";ID=vine,amount=#rand(32,64);ID=glow_lichen,amount=#rand(4,12))@luck=0

/ unlucky 
group(ID=string,amount=#rand(8,24);ID=feather,amount=#rand(4,12);ID=gunpowder,amount=#rand(3,8);ID=flint,amount=#rand(2,4);ID=arrow,amount=#rand(1,6))@luck=-1

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

/ 'birds'
group(type=difficulty,ID=hard;type=entity,ID=bat,posY=#bPosY+8,amount=#rand(8,16),NBTTag=(
    Silent=true,
    ActiveEffects=[(id="minecraft:invisibility",duration=100000,amplifier=1,ShowParticles=false)],
    Passengers=[(id=chicken,NBTTag=(CustomName=#jsonStr(text="Bird",color=green,bold=true),CustomNameVisible=true))
    ])
)@luck=0

/ bats
group(type=message,ID="$fLet's fly!";type=entity,ID=bat,posY=#bPosY+#rand(0,2),posOffset=#circleOffset(0,1),amount=64;type=effect,ID=levitation,duration=15,amplifier=0)@luck=-1

/ parrots with music
group(type=entity,ID=parrot,amount=#rand(5,10),posOffset=#circleOffset(3);type=block,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=0

/ evoker and vex
group(type=entity,ID=evoker,amount=#rand(1,2);type=entity,ID=vex,posY=#bPosY+#rand(0,2),posOffset=#circleOffset(0,1),amount=#rand(4,10))@luck=-1

/ phantom nightmare
group(type=entity,ID=phantom,posY=#bPosY+#rand(2,10),posOffset=#circleOffset(0,4),amount=10;type=effect,ID=nausea,duration=15)@luck=-2

/ ender dragon
type=entity,ID=enderdragon@luck=-2@chance=0.05

/ shulker
group(type=entity,ID=shulker,amount=#rand(3,8),posOffset=#circleOffset(#rand(3,6)))@luck=-1

/ ghasts
group(type=entity,ID=ghast,amount=#rand(3,7),posOffset=#circleOffset(#rand(8,24)),posY=#bPosY+#rand(35,70))@luck=-1

/ flying witch
group(type=difficulty,ID=hard;type=entity,ID=bat,posY=#bPosY+8,amount=#rand(3,8),NBTTag=(
    Silent=true,
    ActiveEffects=[(id="minecraft:invisibility",duration=100000,amplifier=1,ShowParticles=false)],
    Passengers=[(id=witch)
    ])
)@luck=-2

/ flying boats
group(type=difficulty,ID=hard;type=entity,ID=bat,posY=#bPosY+8,amount=#rand(2,10),posOffset=#circleOffset(#rand(2,6)),NBTTag=(
    Silent=true,
    ActiveEffects=[(id="minecraft:invisibility",duration=100000,amplifier=1,ShowParticles=false)],
    Passengers=[(id=boat)
    ])
)@luck=0

/ flying minecarts
group(type=difficulty,ID=hard;type=entity,ID=phantom,posY=#bPosY+8,amount=#rand(2,6),posOffset=#circleOffset(#rand(4,9)),NBTTag=(
    Silent=true,
    ActiveEffects=[(id="minecraft:invisibility",duration=100000,amplifier=1,ShowParticles=false),(id="minecraft:fire_resistance",duration=100000,amplifier=1,ShowParticles=false),(id="minecraft:weakness",duration=100000,amplifier=1,ShowParticles=false)],
    Passengers=[(id=minecart)
    ])
)@luck=0

/ launch to the sky (slowfall)
group(type=message,ID="$fLet's glide!";
type=command,ID="/tp #pName ~0 ~#rand(30,69) ~0";
type=entity,ID=chicken,amount=#rand(6,14),posY=#bPosY+#rand(35,70),posOffset=#circleOffset(#rand(2,6));
type=effect,ID=slow_falling,duration=30,amplifier=0
)@luck=0@chance=0.6

/ bounce to the slime
group(type=message,ID="$fLet's bounce!";
type=command,ID="/tp #pName ~0 ~#rand(50,100) ~0";
type=structure,ID=bouncing_castle;
type=structure,ID=bouncing_castle,posX=#bPosX+4;
type=structure,ID=bouncing_castle,posZ=#bPosZ+4;
type=structure,ID=bouncing_castle,posX=#bPosX-4;
type=structure,ID=bouncing_castle,posZ=#bPosZ-4;
type=structure,ID=bouncing_castle,posX=#bPosX+4,posZ=#bPosZ+4;
type=structure,ID=bouncing_castle,posX=#bPosX-4,posZ=#bPosZ+4;
type=structure,ID=bouncing_castle,posX=#bPosX+4,posZ=#bPosZ-4;
type=structure,ID=bouncing_castle,posX=#bPosX-4,posZ=#bPosZ-4
)@luck=0@chance=0.5

/ wind defenders
group(type=difficulty,ID=hard;type=entity,ID=skeleton,amount=#rand(4,8),posOffset=#circleOffset(#rand(1,5)),NBTTag=(
    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],
	ActiveEffects=[(id="minecraft:slow_falling",duration=100000,amplifier=1,ShowParticles=false)],
    CustomName=#jsonStr(text="Wind Defenders",color=blue,bold=true),CustomNameVisible=true)
)@luck=-1

/ air defenders
group(type=difficulty,ID=hard;type=entity,ID=stray,amount=#rand(3,7),posOffset=#circleOffset(#rand(1,5)),posY=#bPosY+#rand(20,60),NBTTag=(
    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],
	ActiveEffects=[(id="minecraft:slow_falling",duration=100000,amplifier=1,ShowParticles=false)],
    CustomName=#jsonStr(text="Air Defenders",color=blue,bold=true),CustomNameVisible=true)
)@luck=-2

/ windy villagers

type=entity,ID=villager,NBTTag=(
    VillagerData=(level=3,profession=nitwit,type=snow),
    Offers=(Recipes=[
        (buy=(id=diamond,Count=#rand(15,25)),sell=(id=lucky:elemental_lucky_sword,Count=1,tag=(CustomModelData=1002041,Drops=["group(type=effect,ID=special_knockback,range=6,excludePlayer=true,power=1.8,pos=#pPos,delay=0.1;type=particle,ID=poof,size=(1.0,0.3,1.0),particleAmount=500,pos=#pExactPos)"],Enchantments=[(id=feather_falling,lvl=1)],display=(Name=#jsonStr(text="$fWind Lucky Sword")))),maxUses=36),
        (buy=(id=diamond,Count=#rand(10,20)),sell=(id=lucky:elemental_lucky_bow,Count=1,tag=(CustomModelData=1002042,Drops=["group(type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=minecraft:feather),trail=(frequency=0.5,drops=[\"type=particle,ID=water,posY=#bExactPosY+0.4\"]),impact=[\"group(type=effect,ID=special_knockback,power=#rand(1,2),range=2,delay=0.1;type=particle,ID=poof,size=(1.5,1.0,1.5),particleAmount=180)\"]))"],Enchantments=[(id=feather_falling,lvl=1)],display=(Name=#jsonStr(text="$fWind Lucky Bow")))),maxUses=36),
        (buy=(id=diamond,Count=#rand(20,30)),sell=(id=lucky:elemental_lucky_bow,Count=1,tag=(CustomModelData=1002043,Drops=["group(type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=minecraft:feather),trail=(frequency=0.5,drops=[\"type=particle,ID=water,posY=#bExactPosY+0.4\"]),impact=[\"group(type=effect,ID=special_knockback,power=#rand(2,4),range=4,delay=0.1;type=particle,ID=poof,size=(1.5,1.0,1.5),particleAmount=360)\"]))"],Enchantments=[(id=feather_falling,lvl=1)],display=(Name=#jsonStr(text="$fWind Lucky Staff")))),maxUses=36),
        (buy=(id=diamond,Count=#rand(5,10)),sell=(id=lucky:elemental_lucky_potion,Count=3,tag=(CustomModelData=1002044,Drops=["group(type=block,ID=air;type=command,ID=/teleport @e[distance=..5] ~ ~8 ~)"],display=(Name=#jsonStr(text="$fWind Charge")))),maxUses=36),
        (buy=(id=diamond,Count=#rand(10,15)),sell=(id=lucky:elemental_lucky_potion,Count=3,tag=(CustomModelData=1002045,Drops=["group(type=command,ID=/teleport @e[distance=..3] ~ ~6 ~;type=explosion,radius=#randList(1,1,1,1,2,2,2,3),fire=false)"],display=(Name=#jsonStr(text="$fWind Lucky Bomb")))),maxUses=36)
    ]),
    CustomName=#jsonStr(text="Windy",color=green,bold=true),CustomNameVisible=true
)@luck=1


type=entity,ID=villager,NBTTag=(
    VillagerData=(level=3,profession=nitwit,type=snow),
    Offers=(Recipes=[
        (buy=(id=diamond,Count=#rand(12,17)),sell=(id=chainmail_helmet,Count=1,tag=(Enchantments=#luckyHelmetEnchantments,display=(Name=#jsonStr(text="Air Helmet",color=green,bold=true)))),maxUses=36),
        (buy=(id=diamond,Count=#rand(20,25)),sell=(id=chainmail_chestplate,Count=1,tag=(Enchantments=#luckyChestplateEnchantments,display=(Name=#jsonStr(text="Air Chestplate",color=green,bold=true)))),maxUses=36),
        (buy=(id=diamond,Count=#rand(15,20)),sell=(id=chainmail_leggings,Count=1,tag=(Enchantments=#luckyLeggingsEnchantments,display=(Name=#jsonStr(text="Air Leggings",color=green,bold=true)))),maxUses=36),
        (buy=(id=diamond,Count=#rand(12,17)),sell=(id=chainmail_boots,Count=1,tag=(Enchantments=#luckyBootsEnchantments,display=(Name=#jsonStr(text="Air Boots",color=green,bold=true)))),maxUses=36)
    ]),
    CustomName=#jsonStr(text="Windy",color=green,bold=true),CustomNameVisible=true
)@luck=1

type=entity,ID=villager,NBTTag=(
    VillagerData=(level=3,profession=nitwit,type=snow),
    Offers=(Recipes=[
        (buy=(id=diamond,Count=#rand(10,15)),sell=(id=iron_shovel,Count=1,tag=(Enchantments=#luckyToolEnchantments,display=(Name=#jsonStr(text="Air Shovel",color=green,bold=true)))),maxUses=36),
        (buy=(id=diamond,Count=#rand(15,20)),sell=(id=iron_pickaxe,Count=1,tag=(Enchantments=#luckyToolEnchantments,display=(Name=#jsonStr(text="Air Pickaxe",color=green,bold=true)))),maxUses=36),
        (buy=(id=diamond,Count=#rand(15,20)),sell=(id=iron_axe,Count=1,tag=(Enchantments=#luckyAxeEnchantments,display=(Name=#jsonStr(text="Air Axe",color=green,bold=true)))),maxUses=36),
        (buy=(id=diamond,Count=#rand(10,15)),sell=(id=iron_hoe,Count=1,tag=(Enchantments=#luckyToolEnchantments,display=(Name=#jsonStr(text="Air Hoe",color=green,bold=true)))),maxUses=36)
    ]),
    CustomName=#jsonStr(text="Windy",color=green,bold=true),CustomNameVisible=true
)@luck=1

/ 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

/ 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=#rand(0,5))@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

/ gravel cage
group(
    type=structure,ID=cage,pos=#pPos,rotation=#pDirect;
    type=fill,ID=air,size=(1,70,1),pos=#pPos;type=fill,ID=gravel,size=(1,20,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

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

/ gravel from the top
group(type=command,ID="/fill ~7 ~83 ~7 ~-7 ~80 ~-7 gravel keep";type=message,ID="$f$lLook up!")@luck=-1@chance=0.8

/ land removal
group(type=command,ID="/fill ~10 ~8 ~10 ~-10 ~-0 ~-10 air destroy";type=message,ID="$f$lReady to clean!")@luck=-1

/ ground removal
group(type=command,ID="/fill ~10 ~0 ~10 ~-10 ~-5 ~-10 air destroy";type=message,ID="$f$lReady to clean!")@luck=-2

/ chemical explosion
group(type=message,ID="$8Chemical Explosion incoming!";type=block,ID=air,amount=#rand(32,128),posY=#bPosY+#rand(-40,-40),posOffset=#circleOffset(#rand(2,40));
type=block,ID=air,amount=#rand(32,148),posY=#bPosY+#rand(-24,24),posOffset=#circleOffset(#rand(2,40)),delay=2;
type=block,ID=air,amount=#rand(32,148),posY=#bPosY+#rand(-24,24),posOffset=#circleOffset(#rand(2,40)),delay=3;
type=block,ID=air,amount=#rand(32,148),posY=#bPosY+#rand(-24,24),posOffset=#circleOffset(#rand(2,40)),delay=4;
type=block,ID=air,amount=#rand(32,148),posY=#bPosY+#rand(-24,30),posOffset=#circleOffset(#rand(2,40)),delay=5;
type=block,ID=air,amount=#rand(32,148),posY=#bPosY+#rand(-24,30),posOffset=#circleOffset(#rand(2,40)),delay=6;
type=block,ID=air,amount=#rand(32,148),posY=#bPosY+#rand(-24,30),posOffset=#circleOffset(#rand(2,40)),delay=7
)@luck=-2

/ falling leaves
type=entity,ID=falling_block,amount=#rand(160,700),posOffset=#circleOffset(#rand(2,50)),posY=#bPosY+#rand(20,60),NBTTag=(BlockState=(Name=#randList(oak,birch,spruce,jungle,acacia,dark_oak)_leaves),Fuse=50b,Motion=#randLaunchMotion)@luck=0@chance=0.95

/ skyblock
group(type=structure,ID=elewind_skyblock1152,posY=#bPosY+60;type=command,ID="/tp #pName ~ ~62 ~";type=command,ID="/setblock ~ ~60 ~ dirt")@luck=0@chance=0.8

/ lucky wind shrine
type=structure,ID=elewind_windshrine#rand(1,12)@luck=2

/ bouncing castle
type=structure,ID=bouncing_castle@luck=0

/ wind element lucky structures
type=structure,ID=elewind_windstruct_lucky@luck=2
group(type=structure,ID=elewind_windstruct_unlucky;
type=command,ID="/setblock ~1 ~10 ~1 lucky:elemental_lucky_block";
type=command,ID="/setblock ~1 ~10 ~-1 lucky:elemental_lucky_block";
type=command,ID="/setblock ~-1 ~10 ~-1 lucky:elemental_lucky_block";
type=command,ID="/setblock ~-1 ~10 ~1 lucky:elemental_lucky_block"
)@luck=-1

/ wind lucky blocks in the sky
group(type=message,ID="Look up to the sky!";type=block,ID=lucky:elemental_lucky_block,amount=#rand(5,20),posY=#bPosY+#rand(30,150),posOffset=#circleOffset(#rand(2,40)))@luck=1

/ wind solo
type=command,ID="/tp #pName ~#rand(36,-36) ~#rand(-2,12) ~#rand(36,-36) "@luck=0

/ wind all
type=command,ID="/tp @e[r=50] ~#rand(36,-36) ~#rand(-2,12) ~#rand(36,-36) "@luck=-1@chance=0.5

/ wind tribe tower (OG:0.02)
group(type=structure,ID=elewind_windtribetower;
type=command,ID="/fill ~12 ~12 ~12 ~-12 ~-1 ~-12 lucky:elemental_lucky_block replace lime_stained_glass";
type=command,ID="/fill ~12 ~25 ~12 ~-12 ~13 ~-12 lucky:elemental_lucky_block replace lime_stained_glass"
)@luck=2@chance=0.02

/ explosions with falling blocks
group(type=entity,ID=falling_block,amount=#rand(8,16),posOffset=#circleOffset(#rand(1,4)),NBTTag=(BlockState=(Name=gravel),Fuse=50b,Motion=#randLaunchMotion);type=explosion,radius=3,fire=false)@luck=-1
group(type=entity,ID=falling_block,amount=#rand(12,24),posOffset=#circleOffset(#rand(1,6)),NBTTag=(BlockState=(Name=gravel),Fuse=50b,Motion=#randLaunchMotion);type=explosion,radius=4,fire=false)@luck=-1
group(type=entity,ID=falling_block,amount=#rand(18,36),posOffset=#circleOffset(#rand(1,8)),NBTTag=(BlockState=(Name=gravel),Fuse=50b,Motion=#randLaunchMotion);type=explosion,radius=6,fire=false)@luck=-2
group(type=entity,ID=falling_block,amount=#rand(25,56),posOffset=#circleOffset(#rand(1,5)),NBTTag=(BlockState=(Name=gravel),Fuse=50b,Motion=#randLaunchMotion);type=explosion,radius=9,fire=false)@luck=-2@chance=0.5

/ scaffolding
group(type=fill,ID=air,size=(1,51,1);
    group(
        NBTTag=(BlockState=(Name=scaffolding)),posY=#bPosY+5;
        NBTTag=(BlockState=(Name=scaffolding)),posY=#bPosY+10;
        NBTTag=(BlockState=(Name=scaffolding)),posY=#bPosY+15;
        NBTTag=(BlockState=(Name=scaffolding)),posY=#bPosY+20;
        NBTTag=(BlockState=(Name=scaffolding)),posY=#bPosY+25;
        NBTTag=(BlockState=(Name=scaffolding)),posY=#bPosY+30;
        NBTTag=(BlockState=(Name=scaffolding)),posY=#bPosY+35;
        NBTTag=(BlockState=(Name=scaffolding)),posY=#bPosY+40;
        NBTTag=(BlockState=(Name=scaffolding)),posY=#bPosY+45
    ),type=entity,ID=falling_block;
    type=entity,ID=falling_block,NBTTag=(BlockState=(Name=lucky:elemental_lucky_block)),posY=#bPosY+50
)@luck=0


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

/wind warrior armor
group:#rand(2,4):(ID=leather_helmet,NBTTag=(display=(color=10212207,Name=#jsonStr(text="$aWind Warrior Cap")),Enchantments=[(id=blast_protection,lvl=#randList(5,5,6,6,6,7,5,5,6,6,6,7,8))]);ID=leather_chestplate,NBTTag=(display=(color=10212207,Name=#jsonStr(text="$aWind Warrior Jacket")),Enchantments=[(id=blast_protection,lvl=#randList(5,5,6,6,6,7,5,5,6,6,6,7,8))]);ID=leather_leggings,NBTTag=(display=(color=10212207,Name=#jsonStr(text="$aWind Warrior Pants")),Enchantments=[(id=blast_protection,lvl=#randList(5,5,6,6,6,7,5,5,6,6,6,7,8))]);ID=leather_boots,NBTTag=(display=(color=10212207,Name=#jsonStr(text="$aWind Warrior Shoes")),Enchantments=[(id=blast_protection,lvl=#randList(5,5,6,6,6,7,5,5,6,6,6,7,8))]))@luck=1

/ elytra
ID=elytra,NBTTag=(Enchantments=#luckyChestplateEnchantments,display=(Name=#jsonStr(text="Lucky Elytra",color=green,bold=true)))@luck=2

/ hill spear
ID=iron_sword,NBTTag=(display=(Name=#jsonStr(text="$f$lHill Spear")),Enchantments=[(id=knockback,lvl=#rand(0,2)),(id=fire_aspect,lvl=#rand(0,2)),(id=smite,lvl=#rand(3,9)),(id=sharpness,lvl=#rand(0,3))])@luck=1@chance=0.95

/ wind blade
ID=diamond_sword,NBTTag=(display=(Name=#jsonStr(text="$a$lWind Blade")),Enchantments=[(id=knockback,lvl=#rand(2,4)),(id=fire_aspect,lvl=#rand(0,2)),(id=smite,lvl=#rand(3,9)),(id=sharpness,lvl=#rand(0,2))])@luck=2@chance=0.95

/ lucky lingering potion
ID=lingering_potion,NBTTag=(
    Potion="fire_resistance",
    custom_potion_effects=#luckyPotionEffects,
    display=(Name=#jsonStr(text="Lucky Lingering Potion",color=yellow,bold=true))
)@luck=2@chance=0.75

/ evil lingering potion
ID=lingering_potion,NBTTag=(
    Potion="harming",
    custom_potion_effects=#unluckyPotionEffects,
    display=(Name=#jsonStr(text="Evil Lingering Potion",color=dark_red,bold=true))
)@luck=1@chance=0.75

/ hurricane speed potion
ID=lingering_potion,amount=#randList(1,1,1,2,2),NBTTag=(Potion="minecraft:water",display=(Name=#jsonStr(text="$3$lHurricane Speed")),custom_potion_effects=[(id="minecraft:speed",amplifier=#rand(5,9),duration=#rand(300,777)),(id="minecraft:jump_boost",amplifier=#rand(1,3),duration=#rand(200,600))])@luck=1

/ propeller potion
ID=lingering_potion,amount=#randList(1,1,2,2,3),NBTTag=(Potion="minecraft:water",display=(Name=#jsonStr(text="$6$lPropeller Potion")),custom_potion_effects=[(id="minecraft:slow_falling",amplifier=#rand(1,2),duration=#rand(300,800))])@luck=1

/ smoking fog
ID=lingering_potion,amount=#randList(1,1,1,2,2),NBTTag=(Potion="minecraft:water",display=(Name=#jsonStr(text="$8$lSmoking Fog")),custom_potion_effects=[(id="minecraft:night_vision",amplifier=#rand(0,1),duration=#rand(200,600)),(id="minecraft:nausea",amplifier=#rand(0,2),duration=#rand(300,900))])@luck=0

/ tickle feather
ID=feather,NBTTag=(display=(Name=#jsonStr(text="$fTickle Feather")),Enchantments=[(id=knockback,lvl=#rand(1,3))])@luck=1

/ wind rotator
ID=bone,NBTTag=(display=(Name=#jsonStr(text="$f$lWind Rotator")),Enchantments=[(id=knockback,lvl=#rand(3,7))])@luck=2@chance=0.8

/ air armor
group(type=command,ID="/summon item ~ ~ ~ {CustomNameVisible:1b,CustomName:'{\"text\":\"Air Helmet\",\"color\":\"white\",\"bold\":true,\"italic\":false}',Item:{id:\"minecraft:chainmail_helmet\",Count:1b,tag:{display:{Name:'{\"text\":\"Air Helmet\",\"color\":\"white\",\"bold\":true,\"italic\":false}'},Enchantments:[{id:\"minecraft:#randList(blast_protection,fire_protection,projectile_protection)\",lvl:#rand(0,5)},{id:\"minecraft:protection\",lvl:#rand(0,4)},{id:\"minecraft:unbreaking\",lvl:#rand(0,5)},{id:\"minecraft:#randList(thorns,mending)\",lvl:#rand(0,3)},{id:\"minecraft:#randList(respiration,aqua_affinity)\",lvl:#rand(0,3)}],
AttributeModifiers:[
{AttributeName:\"generic.armor_toughness\",Name:\"generic.armor_toughness\",Amount:0.40,Operation:1,UUID:[I;#rand(20,9999999),#rand(20,9999999),#rand(20,9999999),#rand(20,9999999)],Slot:\"head\"},
{AttributeName:\"generic.armor\",Name:\"generic.armor\",Amount:1.75,Operation:0,UUID:[I;#rand(20,9999999),#rand(20,9999999),#rand(20,9999999),#rand(20,9999999)],Slot:\"head\"},
{AttributeName:\"generic.movement_speed\",Name:\"generic.movement_speed\",Amount:0.25,Operation:1,UUID:[I;#rand(20,9999999),#rand(20,9999999),#rand(20,9999999),#rand(20,9999999)],Slot:\"head\"}]}}}",commandSender="VIU")@luck=2@chance=0.92

group(type=command,ID="/summon item ~ ~ ~ {CustomNameVisible:1b,CustomName:'{\"text\":\"Air Chestplate\",\"color\":\"white\",\"bold\":true,\"italic\":false}',Item:{id:\"minecraft:chainmail_chestplate\",Count:1b,tag:{display:{Name:'{\"text\":\"Air Chestplate\",\"color\":\"white\",\"bold\":true,\"italic\":false}'},Enchantments:[{id:\"minecraft:#randList(blast_protection,fire_protection,projectile_protection)\",lvl:#rand(0,5)},{id:\"minecraft:protection\",lvl:#rand(0,4)},{id:\"minecraft:unbreaking\",lvl:#rand(0,5)},{id:\"minecraft:#randList(thorns,mending)\",lvl:#rand(0,3)}],
AttributeModifiers:[
{AttributeName:\"generic.armor_toughness\",Name:\"generic.armor_toughness\",Amount:0.40,Operation:1,UUID:[I;#rand(20,9999999),#rand(20,9999999),#rand(20,9999999),#rand(20,9999999)],Slot:\"chest\"},
{AttributeName:\"generic.armor\",Name:\"generic.armor\",Amount:5.75,Operation:0,UUID:[I;#rand(20,9999999),#rand(20,9999999),#rand(20,9999999),#rand(20,9999999)],Slot:\"chest\"},
{AttributeName:\"generic.movement_speed\",Name:\"generic.movement_speed\",Amount:0.25,Operation:1,UUID:[I;#rand(20,9999999),#rand(20,9999999),#rand(20,9999999),#rand(20,9999999)],Slot:\"chest\"}]}}}",commandSender="VIU")@luck=2@chance=0.92

group(type=command,ID="/summon item ~ ~ ~ {CustomNameVisible:1b,CustomName:'{\"text\":\"Air Leggings\",\"color\":\"white\",\"bold\":true,\"italic\":false}',Item:{id:\"minecraft:chainmail_leggings\",Count:1b,tag:{display:{Name:'{\"text\":\"Air Leggings\",\"color\":\"white\",\"bold\":true,\"italic\":false}'},Enchantments:[{id:\"minecraft:#randList(blast_protection,fire_protection,projectile_protection)\",lvl:#rand(0,5)},{id:\"minecraft:protection\",lvl:#rand(0,4)},{id:\"minecraft:unbreaking\",lvl:#rand(0,5)},{id:\"minecraft:#randList(thorns,mending)\",lvl:#rand(0,3)}],
AttributeModifiers:[
{AttributeName:\"generic.armor_toughness\",Name:\"generic.armor_toughness\",Amount:0.40,Operation:1,UUID:[I;#rand(20,9999999),#rand(20,9999999),#rand(20,9999999),#rand(20,9999999)],Slot:\"legs\"},
{AttributeName:\"generic.armor\",Name:\"generic.armor\",Amount:4.75,Operation:0,UUID:[I;#rand(20,9999999),#rand(20,9999999),#rand(20,9999999),#rand(20,9999999)],Slot:\"legs\"},
{AttributeName:\"generic.movement_speed\",Name:\"generic.movement_speed\",Amount:0.25,Operation:1,UUID:[I;#rand(20,9999999),#rand(20,9999999),#rand(20,9999999),#rand(20,9999999)],Slot:\"legs\"}]}}}",commandSender="VIU")@luck=2@chance=0.92

group(type=command,ID="/summon item ~ ~ ~ {CustomNameVisible:1b,CustomName:'{\"text\":\"Air Boots\",\"color\":\"white\",\"bold\":true,\"italic\":false}',Item:{id:\"minecraft:chainmail_boots\",Count:1b,tag:{display:{Name:'{\"text\":\"Air Boots\",\"color\":\"white\",\"bold\":true,\"italic\":false}'},Enchantments:[{id:\"minecraft:#randList(blast_protection,fire_protection,projectile_protection)\",lvl:#rand(0,5)},{id:\"minecraft:protection\",lvl:#rand(0,4)},{id:\"minecraft:unbreaking\",lvl:#rand(0,5)},{id:\"minecraft:#randList(thorns,mending)\",lvl:#rand(0,3)},{id:\"minecraft:#randList(depth_strider,feather_falling,soul_speed)\",lvl:#rand(0,3)}],
AttributeModifiers:[
{AttributeName:\"generic.armor_toughness\",Name:\"generic.armor_toughness\",Amount:0.40,Operation:1,UUID:[I;#rand(20,9999999),#rand(20,9999999),#rand(20,9999999),#rand(20,9999999)],Slot:\"feet\"},
{AttributeName:\"generic.armor\",Name:\"generic.armor\",Amount:1.75,Operation:0,UUID:[I;#rand(20,9999999),#rand(20,9999999),#rand(20,9999999),#rand(20,9999999)],Slot:\"feet\"},
{AttributeName:\"generic.movement_speed\",Name:\"generic.movement_speed\",Amount:0.25,Operation:1,UUID:[I;#rand(20,9999999),#rand(20,9999999),#rand(20,9999999),#rand(20,9999999)],Slot:\"feet\"}]}}}",commandSender="VIU")@luck=2@chance=0.92

group(type=command,ID="/summon item ~ ~ ~ {CustomNameVisible:1b,CustomName:'{\"text\":\"Air Sword\",\"color\":\"white\",\"bold\":true,\"italic\":false}',Item:{id:\"minecraft:iron_sword\",Count:1b,tag:{display:{Name:'{\"text\":\"Air Sword\",\"color\":\"white\",\"bold\":true,\"italic\":false}'},Enchantments:[{id:\"minecraft:#randList(smite,bane_of_arthropods)\",lvl:#rand(0,5)},{id:\"minecraft:#randList(sweeping_edge,looting)\",lvl:#rand(0,4)},{id:\"minecraft:sharpness\",lvl:#rand(2,7)},{id:\"minecraft:#randList(mending,knockback,fire_aspect)\",lvl:#rand(0,3)},{id:\"minecraft:unbreaking\",lvl:#rand(0,3)}]}}}",commandSender="VIU")@luck=2@chance=0.92
group(type=command,ID="/summon item ~ ~ ~ {CustomNameVisible:1b,CustomName:'{\"text\":\"Air Pickaxe\",\"color\":\"white\",\"bold\":true,\"italic\":false}',Item:{id:\"minecraft:iron_pickaxe\",Count:1b,tag:{display:{Name:'{\"text\":\"Air Pickaxe\",\"color\":\"white\",\"bold\":true,\"italic\":false}'},Enchantments:[{id:\"minecraft:#randList(fortune,silk_touch)\",lvl:#rand(0,5)},{id:\"minecraft:efficiency\",lvl:#rand(1,6)},{id:\"minecraft:unbreaking\",lvl:#rand(1,5)}]}}}",commandSender="VIU")@luck=2@chance=0.92
group(type=command,ID="/summon item ~ ~ ~ {CustomNameVisible:1b,CustomName:'{\"text\":\"Air Axe\",\"color\":\"white\",\"bold\":true,\"italic\":false}',Item:{id:\"minecraft:iron_axe\",Count:1b,tag:{display:{Name:'{\"text\":\"Air Axe\",\"color\":\"white\",\"bold\":true,\"italic\":false}'},Enchantments:[{id:\"minecraft:#randList(fortune,silk_touch)\",lvl:#rand(0,5)},{id:\"minecraft:efficiency\",lvl:#rand(1,6)},{id:\"minecraft:unbreaking\",lvl:#rand(1,5)}]}}}",commandSender="VIU")@luck=2@chance=0.92
group(type=command,ID="/summon item ~ ~ ~ {CustomNameVisible:1b,CustomName:'{\"text\":\"Air Shovel\",\"color\":\"white\",\"bold\":true,\"italic\":false}',Item:{id:\"minecraft:iron_shovel\",Count:1b,tag:{display:{Name:'{\"text\":\"Air Shovel\",\"color\":\"white\",\"bold\":true,\"italic\":false}'},Enchantments:[{id:\"minecraft:#randList(fortune,silk_touch)\",lvl:#rand(0,5)},{id:\"minecraft:efficiency\",lvl:#rand(1,6)},{id:\"minecraft:unbreaking\",lvl:#rand(1,5)}]}}}",commandSender="VIU")@luck=2@chance=0.92
group(type=command,ID="/summon item ~ ~ ~ {CustomNameVisible:1b,CustomName:'{\"text\":\"Air Hoe\",\"color\":\"white\",\"bold\":true,\"italic\":false}',Item:{id:\"minecraft:iron_hoe\",Count:1b,tag:{display:{Name:'{\"text\":\"Air Hoe\",\"color\":\"white\",\"bold\":true,\"italic\":false}'},Enchantments:[{id:\"minecraft:#randList(fortune,silk_touch)\",lvl:#rand(0,5)},{id:\"minecraft:efficiency\",lvl:#rand(1,6)},{id:\"minecraft:unbreaking\",lvl:#rand(1,5)}]}}}",commandSender="VIU")@luck=2@chance=0.92

/ nike air
ID=leather_boots,NBTTag=(display=(color=14732493,Name=#jsonStr(text="$f$lNike Air")),Enchantments=[(id=feather_falling,lvl=#rand(0,10))])@luck=0
ID=leather_boots,NBTTag=(display=(color=14732493,Name=#jsonStr(text="$f$lNike Air")),Enchantments=[(id=feather_falling,lvl=#rand(0,20))])@luck=0@chance=0.75
ID=leather_boots,NBTTag=(display=(color=14732493,Name=#jsonStr(text="$f$lNike Air")),Enchantments=[(id=feather_falling,lvl=#rand(0,30))])@luck=0@chance=0.5

/ lucky items
type=item,ID=lucky:elemental_lucky_sword,NBTTag=(CustomModelData=1002041,Drops=["group(type=effect,ID=special_knockback,range=6,excludePlayer=true,power=1.8,pos=#pPos,delay=0.1;type=particle,ID=poof,size=(1.0,0.3,1.0),particleAmount=500,pos=#pExactPos)"],Enchantments=[(id=feather_falling,lvl=1)],display=(Name=#jsonStr(text="$fWind Lucky Sword")))@luck=2
group(ID=arrow,amount=#rand(7,16);type=item,ID=lucky:elemental_lucky_bow,NBTTag=(CustomModelData=1002042,Drops=["group(type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=minecraft:feather),trail=(frequency=0.5,drops=[\"type=particle,ID=water,posY=#bExactPosY+0.4\"]),impact=[\"group(type=effect,ID=special_knockback,power=#rand(1,2),range=2,delay=0.1;type=particle,ID=poof,size=(1.5,1.0,1.5),particleAmount=180)\"]))"],Enchantments=[(id=feather_falling,lvl=1)],display=(Name=#jsonStr(text="$fWind Lucky Bow"))))@luck=2
group(ID=arrow,amount=#rand(7,16);type=item,ID=lucky:elemental_lucky_bow,NBTTag=(CustomModelData=1002043,Drops=["group(type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=minecraft:feather),trail=(frequency=0.5,drops=[\"type=particle,ID=water,posY=#bExactPosY+0.4\"]),impact=[\"group(type=effect,ID=special_knockback,power=#rand(2,4),range=4,delay=0.1;type=particle,ID=poof,size=(1.5,1.0,1.5),particleAmount=360)\"]))"],Enchantments=[(id=feather_falling,lvl=1)],display=(Name=#jsonStr(text="$fWind Lucky Staff"))))@luck=2
type=item,ID=lucky:elemental_lucky_potion,NBTTag=(CustomModelData=1002044,Drops=["group(type=block,ID=air;type=command,ID=/teleport @e[distance=..5] ~ ~8 ~)"],display=(Name=#jsonStr(text="$fWind Charge"))),amount=#rand(10,15)@luck=2
type=item,ID=lucky:elemental_lucky_potion,NBTTag=(CustomModelData=1002045,Drops=["group(type=command,ID=/teleport @e[distance=..3] ~ ~6 ~;type=explosion,radius=#randList(1,1,1,1,2,2,2,3),fire=false)"],display=(Name=#jsonStr(text="$fWind Lucky Bomb"))),amount=#rand(2,5)@luck=2





