
/Drops

/ hero villagers
type=entity,ID=villager,NBTTag=(
    VillagerData=(level=5,profession=toolsmith),type=#randList(desert,jungle,plains,savanna,snow,swamp,taiga),
    Offers=(Recipes=[
        (buy=(id=diamond,Count=#rand(20,40)),sell=(id=lucky:amongus_lucky_block,Count=1),maxUses=5),
        (buy=(id=diamond,Count=#rand(20,40)),sell=(id=lucky:desert_lucky_block,Count=1),maxUses=5),
        (buy=(id=diamond,Count=#rand(20,40)),sell=(id=lucky:elemental_lucky_block,Count=1),maxUses=5),
        (buy=(id=diamond,Count=#rand(20,40)),sell=(id=lucky:fire_lucky_block,Count=1),maxUses=5),
        (buy=(id=yakurum:crystal_gem,Count=#rand(30,50)),sell=(id=lucky:water_lucky_block,Count=1),maxUses=5),
        (buy=(id=diamond,Count=#rand(20,40)),sell=(id=lucky:pink_lucky_block,Count=1),maxUses=5),
        (buy=(id=diamond,Count=#rand(20,40)),sell=(id=lucky:morbius_lucky_block,Count=1),maxUses=5),
        (buy=(id=diamond,Count=#rand(20,40)),sell=(id=lucky:summer_lucky_block,Count=1),maxUses=5)
    ]),
    CustomName=#jsonStr(text="Lucky Block Master",color=yellow,bold=true),CustomNameVisible=true
)@chance=0.4@luck=2
type=entity,ID=villager,NBTTag=(
    VillagerData=(level=5,profession=toolsmith),type=#randList(desert,jungle,plains,savanna,snow,swamp,taiga),
    Offers=(Recipes=[
        (buy=(id=super_block_world:bronze_block,Count=#rand(3,5)),sell=(id=lucky:lucky_block,Count=1),maxUses=10),
        (buy=(id=super_block_world:purple_star_bit,Count=#rand(20,40)),sell=(id=lucky:elewind_lucky_block,Count=1),maxUses=10),
        (buy=(id=super_block_world:yellow_star_bit,Count=#rand(20,40)),sell=(id=lucky:elergy_lucky_block,Count=1),maxUses=10),
        (buy=(id=super_block_world:blue_star_bit,Count=#rand(20,40)),sell=(id=lucky:eleice_lucky_block,Count=1),maxUses=10),
        (buy=(id=super_block_world:red_star_bit,Count=#rand(20,40)),sell=(id=lucky:elefire_lucky_block,Count=1),maxUses=10)
    ]),
    CustomName=#jsonStr(text="Lucky Block Master",color=blue,bold=true),CustomNameVisible=true
)@luck=1

/ improvedmobs
group(type=message,ID="Difficulty reduce 0.5";
type=command,ID="/improvedmobs difficulty player #pName add -0.5")@luck=0
group(type=message,ID="Difficulty reduce 1";
type=command,ID="/improvedmobs difficulty player #pName add -1")@luck=1
group(type=message,ID="Difficulty add 1";
type=command,ID="/improvedmobs difficulty player #pName add 1")@chance=0.7@luck=-1
group(type=message,ID="Difficulty reduce 2";
type=command,ID="/improvedmobs difficulty player #pName add -2")@chance=0.7@luck=1
group(type=message,ID="Difficulty add 2";
type=command,ID="/improvedmobs difficulty player #pName add 2")@chance=0.3@luck=-2

/ potion
ID=potion,amount=#rand(2,3),NBTTag=(Potion="parcool:#randList(energy_drink,poor_energy_drink)")@luck=0

/ entity
group(type=entity,ID=artifacts:mimic)@chance=0.2@luck=2

/ chest or barrel
group(type=block,ID=chest,tileEntity=(Items=#chestLootTable("chests/end_city_treasure")),posOffset=#circleOffset(1,3),amount=5;type=block,ID=end_stone_bricks,amount=100,posY=#bPosY-1,posOffset=#circleOffset(0,4))@chance=0.05@luck=3
group(type=block,ID=chest,tileEntity=(Items=#chestLootTable("chests/ruined_portal")),posOffset=#circleOffset(1,4),amount=8;type=block,ID=netherrack,amount=100,posY=#bPosY-1,posOffset=#circleOffset(0,4))@chance=0.05@luck=3
group(type=block,ID=chest,tileEntity=(Items=#chestLootTable("chests/bastion_treasure")),posOffset=#circleOffset(1,3),amount=5;type=block,ID=blackstone,amount=100,posY=#bPosY-1,posOffset=#circleOffset(0,4))@chance=0.05@luck=3
group(type=block,ID=barrel,tileEntity=(Items=#chestLootTable("chests/ancient_city")),posOffset=#circleOffset(1,3),amount=5;type=block,ID=sculk,amount=100,posY=#bPosY-1,posOffset=#circleOffset(0,4))@chance=0.05@luck=3

/ lucky block
ID=lucky:#randList(amongus_lucky_block,desert_lucky_block,elemental_lucky_block,fire_lucky_block,pink_lucky_block,morbius_lucky_block,summer_lucky_block,water_lucky_block),amount=#rand(7,8),NBTTag=(Luck=#rand(-50,50))@luck=1
ID=lucky:#randList(elewind_lucky_block,elergy_lucky_block,eleice_lucky_block,elefire_lucky_block),amount=#rand(10,12),NBTTag=(Luck=#rand(0,100))@luck=1
ID=lucky:#randList(amongus_lucky_block,desert_lucky_block,elemental_lucky_block,fire_lucky_block,pink_lucky_block,morbius_lucky_block,summer_lucky_block,water_lucky_block),amount=#rand(7,8),NBTTag=(Luck=#rand(0,100))@luck=2
ID=lucky:lucky_world_invasion_lucky_block,amount=1,NBTTag=(Luck=-50)@chance=0.3@luck=-2

/ block
group(type=fill,ID=air,size=(1,51,1);
    group(
        NBTTag=(BlockState=(Name=quark:bonded_leather)),posY=#bPosY+5;
        NBTTag=(BlockState=(Name=quark:gunpowder_sack)),posY=#bPosY+10;
        NBTTag=(BlockState=(Name=quark:gunpowder_sack)),posY=#bPosY+15;
        NBTTag=(BlockState=(Name=quark:gunpowder_sack)),posY=#bPosY+20;
        NBTTag=(BlockState=(Name=quark:gunpowder_sack)),posY=#bPosY+25;
        NBTTag=(BlockState=(Name=quark:gunpowder_sack)),posY=#bPosY+30;
        NBTTag=(BlockState=(Name=quark:gunpowder_sack)),posY=#bPosY+35;
        NBTTag=(BlockState=(Name=quark:golden_carrot_crate)),posY=#bPosY+40;
        NBTTag=(BlockState=(Name=quark:golden_apple_crate)),posY=#bPosY+45
    ),type=entity,ID=falling_block;
    type=entity,ID=falling_block,NBTTag=(BlockState=(Name=lucky:lucky_world_invasion_lucky_block),Luck=#rand(0,100)),posY=#bPosY+50;
    type=entity,ID=lightning_bolt,posY=#bPosY+10,delay=5.3
)@luck=1
group(type=fill,ID=air,size=(1,51,1);
    group(
        NBTTag=(BlockState=(Name=quark:monster_box)),posY=#bPosY+5;
        NBTTag=(BlockState=(Name=quark:gunpowder_sack)),posY=#bPosY+10;
        NBTTag=(BlockState=(Name=quark:monster_box)),posY=#bPosY+15;
        NBTTag=(BlockState=(Name=quark:gunpowder_sack)),posY=#bPosY+20;
        NBTTag=(BlockState=(Name=quark:monster_box)),posY=#bPosY+25;
        NBTTag=(BlockState=(Name=quark:gunpowder_sack)),posY=#bPosY+30;
        NBTTag=(BlockState=(Name=quark:monster_box)),posY=#bPosY+35;
        NBTTag=(BlockState=(Name=quark:gunpowder_sack)),posY=#bPosY+40;
        NBTTag=(BlockState=(Name=quark:monster_box)),posY=#bPosY+45
    ),type=entity,ID=falling_block;
    type=entity,ID=falling_block,NBTTag=(BlockState=(Name=lucky:lucky_world_invasion_lucky_block),Luck=#rand(-100,0)),posY=#bPosY+50;
    type=entity,ID=lightning_bolt,posY=#bPosY+10,delay=5.3
)@chance=0.7@luck=-2
group(type=fill,ID=air,size=(1,8,1);type=entity,ID=falling_block,posY=#bPosY+7,NBTTag=(BlockState=(Name=quark:monster_box));type=particle,ID=large_smoke,size=(1,2,1),particleAmount=500;type=sound,ID=block.fire.extinguish)@luck=-1

/ lucky bob
group(type=difficulty,ID=hard;type=entity,ID=zombie,amount=#rand(4,6),NBTTag=(
    HandItems=[(id=netherite_sword,Count=1,tag=(Enchantments=#luckySwordEnchantments))],
    ArmorItems=[(id=netherite_boots,Count=1,tag=(Enchantments=#luckyBootsEnchantments)),(id=netherite_leggings,Count=1,tag=(Enchantments=#luckyLeggingsEnchantments)),(id=netherite_chestplate,Count=1,tag=(Enchantments=#luckyChestplateEnchantments)),(id=lucky:#randList(amongus_lucky_block,desert_lucky_block,elemental_lucky_block,fire_lucky_block,pink_lucky_block,morbius_lucky_block,summer_lucky_block),Count=1,tag=(Luck=100))],
    HandDropChances=[0f,0f],ArmorDropChances=[0f,0f,0f,1f],
    CustomName=#jsonStr(text="Lucky Bob",color=yellow,bold=true),CustomNameVisible=true)
)@luck=-1
group(type=difficulty,ID=hard;type=entity,ID=giant,amount=#rand(1,3),NBTTag=(
    HandItems=[(id=netherite_sword,Count=1,tag=(Enchantments=#luckySwordEnchantments)),(id=lucky:water_lucky_block,Count=1,tag=(Luck=100))],
    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=[0f,1f],ArmorDropChances=[0f,0f,0f,0f],
    CustomName=#jsonStr(text="Super Lucky Bob",color=yellow,bold=true),CustomNameVisible=true)
)@chance=0.3@luck=-2
group(type=difficulty,ID=hard;type=entity,ID=zombie,amount=1,NBTTag=(
    HandItems=[(id=lucky:lucky_world_invasion_lucky_sword,Count=1,tag=(Enchantments=#luckySwordEnchantments))],
    ArmorItems=[(id=netherite_boots,Count=1,tag=(Enchantments=#luckyBootsEnchantments)),(id=netherite_leggings,Count=1,tag=(Enchantments=#luckyLeggingsEnchantments)),(id=netherite_chestplate,Count=1,tag=(Enchantments=#luckyChestplateEnchantments)),(id=lucky:lucky_world_invasion_lucky_block,Count=1,tag=(Luck=0))],
    HandDropChances=[0f,0f],ArmorDropChances=[0f,0f,0f,1f],
    CustomName=#jsonStr(text="Lucky Bob",color=red,bold=true),CustomNameVisible=true)
)@chance=0.3@luck=1

/ lucky items
type=item,ID=lucky:lucky_world_invasion_lucky_sword@chance=0.05@luck=3
