/Chaos Lucky Block (Born in Chaos)
/One block broken = one draw weighted by the block's Luck (default 0).
/Luck + => Resources / Weapons (increasing quality) | Luck - => Monsters (increasing danger)
/BiC resources = ethereal_spirit + charms + pieceofdarkmetal/seedof_chaos/krampus_horn (infusion). Rest = vanilla.

/ --- NEUTRAL (luck 0) ---
group(ID=#randList(bone,gunpowder,coal,rotten_flesh,string,flint),amount=#rand(2,6))@luck=0@chance=0.60

/ ===================== RESOURCES =====================
/ Common (luck 1)
ID=born_in_chaos_v1:ethereal_spirit,amount=1@luck=1@chance=0.55
ID=gold_ingot,amount=9@luck=1@chance=0.55
ID=emerald,amount=9@luck=1@chance=0.55
ID=diamond,amount=5@luck=1@chance=0.55
ID=netherite_scrap,amount=1@luck=1@chance=0.55
ID=born_in_chaos_v1:pieceofdarkmetal,amount=5@luck=1@chance=0.55
/ Rare (luck 2)
ID=born_in_chaos_v1:#randList(charmof_endurance,charmof_fury,charmof_power,charmof_resistance,charmof_stealth)@luck=2@chance=0.20
ID=netherite_ingot,amount=1@luck=2@chance=0.20
ID=#randList(gold_block,diamond_block,emerald_block),amount=1@luck=2@chance=0.20
ID=born_in_chaos_v1:ethereal_spirit,amount=5@luck=2@chance=0.20
ID=born_in_chaos_v1:seedof_chaos,amount=10@luck=2@chance=0.20
/ Legendary (luck 3): 3 distinct drops (only one per draw)
group(ID=born_in_chaos_v1:charmof_endurance;ID=born_in_chaos_v1:charmof_fury;ID=born_in_chaos_v1:charmof_power;ID=born_in_chaos_v1:charmof_resistance;ID=born_in_chaos_v1:charmof_stealth;type=command,ID="/advancement grant #pName only born_in_chaos_v1:charm_collector")@luck=3@chance=0.05
ID=born_in_chaos_v1:ethereal_spirit,amount=15@luck=3@chance=0.05
ID=born_in_chaos_v1:krampus_horn,amount=6@luck=3@chance=0.05

/ ===================== WEAPONS (weapons + armor) =====================
/ Common (luck 1): minor weapon/armor (plain)
ID=born_in_chaos_v1:#randList(carrot_sword,sweet_sword,pumpkinstaffa,staffof_blindness,staff_of_magic_arrows,bonescaller_staff,dark_ritual_dagger,intoxicating_dagger)@luck=1@chance=0.55
ID=born_in_chaos_v1:#randList(damned_demomans_hat_helmet,killer_rabbit_ears_helmet,lord_pumpkinheads_hat_helmet,missionary_hat_helmet,spiritual_guide_sombrero_helmet)@luck=1@chance=0.55
/ Rare (luck 2): ONE single enchanted piece, random enchant (armor = netherite; dark metal/nightmare/spiny_shell reserved for legendary)
ID=born_in_chaos_v1:#randList(spider_bite_sword,spiritual_sword,sweet_axe,wood_splitter_axe,nightmare_claw,shell_mace,stop_hammer,nut_hammer,sharpened_dark_metal_sword),NBTTag=(Enchantments=#luckySwordEnchantments)@luck=2@chance=0.20
ID=netherite_helmet,NBTTag=(Enchantments=#luckyHelmetEnchantments)@luck=2@chance=0.20
ID=netherite_chestplate,NBTTag=(Enchantments=#luckyChestplateEnchantments)@luck=2@chance=0.20
ID=netherite_leggings,NBTTag=(Enchantments=#luckyLeggingsEnchantments)@luck=2@chance=0.20
ID=netherite_boots,NBTTag=(Enchantments=#luckyBootsEnchantments)@luck=2@chance=0.20
/ Legendary (luck 3): ONE single piece, everything enchanted at vanilla max (fixed)
/ Legendary weapon: 1 line per weapon with a themed custom name (§4§lChaos §c§l[Nom])
ID=born_in_chaos_v1:great_reaper_axe,NBTTag=(display=(Name=#jsonStr(text="§4§lChaos §c§lReaper")),Enchantments=[(id=sharpness,lvl=5),(id=smite,lvl=5),(id=bane_of_arthropods,lvl=5),(id=knockback,lvl=2),(id=fire_aspect,lvl=2),(id=looting,lvl=3),(id=sweeping_edge,lvl=3),(id=unbreaking,lvl=3),(id=mending,lvl=1)])@luck=3@chance=0.00625
ID=born_in_chaos_v1:nightmare_scythe,NBTTag=(display=(Name=#jsonStr(text="§4§lChaos §c§lNightmare")),Enchantments=[(id=sharpness,lvl=5),(id=smite,lvl=5),(id=bane_of_arthropods,lvl=5),(id=knockback,lvl=2),(id=fire_aspect,lvl=2),(id=looting,lvl=3),(id=sweeping_edge,lvl=3),(id=unbreaking,lvl=3),(id=mending,lvl=1)])@luck=3@chance=0.00625
ID=born_in_chaos_v1:darkwarblade,NBTTag=(display=(Name=#jsonStr(text="§4§lChaos §c§lWarblade")),Enchantments=[(id=sharpness,lvl=5),(id=smite,lvl=5),(id=bane_of_arthropods,lvl=5),(id=knockback,lvl=2),(id=fire_aspect,lvl=2),(id=looting,lvl=3),(id=sweeping_edge,lvl=3),(id=unbreaking,lvl=3),(id=mending,lvl=1)])@luck=3@chance=0.00625
ID=born_in_chaos_v1:skullbreaker_hammer,NBTTag=(display=(Name=#jsonStr(text="§4§lChaos §c§lSkullbreaker")),Enchantments=[(id=sharpness,lvl=5),(id=smite,lvl=5),(id=bane_of_arthropods,lvl=5),(id=knockback,lvl=2),(id=fire_aspect,lvl=2),(id=looting,lvl=3),(id=sweeping_edge,lvl=3),(id=unbreaking,lvl=3),(id=mending,lvl=1)])@luck=3@chance=0.00625
ID=born_in_chaos_v1:frostbitten_blade,NBTTag=(display=(Name=#jsonStr(text="§4§lChaos §c§lFrostbite")),Enchantments=[(id=sharpness,lvl=5),(id=smite,lvl=5),(id=bane_of_arthropods,lvl=5),(id=knockback,lvl=2),(id=fire_aspect,lvl=2),(id=looting,lvl=3),(id=sweeping_edge,lvl=3),(id=unbreaking,lvl=3),(id=mending,lvl=1)])@luck=3@chance=0.00625
ID=born_in_chaos_v1:sharpened_dark_metal_sword,NBTTag=(display=(Name=#jsonStr(text="§4§lChaos §c§lEdge")),Enchantments=[(id=sharpness,lvl=5),(id=smite,lvl=5),(id=bane_of_arthropods,lvl=5),(id=knockback,lvl=2),(id=fire_aspect,lvl=2),(id=looting,lvl=3),(id=sweeping_edge,lvl=3),(id=unbreaking,lvl=3),(id=mending,lvl=1)])@luck=3@chance=0.00625
ID=born_in_chaos_v1:spider_bite_sword,NBTTag=(display=(Name=#jsonStr(text="§4§lChaos §c§lFang")),Enchantments=[(id=sharpness,lvl=5),(id=smite,lvl=5),(id=bane_of_arthropods,lvl=5),(id=knockback,lvl=2),(id=fire_aspect,lvl=2),(id=looting,lvl=3),(id=sweeping_edge,lvl=3),(id=unbreaking,lvl=3),(id=mending,lvl=1)])@luck=3@chance=0.00625
ID=born_in_chaos_v1:spiritual_sword,NBTTag=(display=(Name=#jsonStr(text="§4§lChaos §c§lSpirit")),Enchantments=[(id=sharpness,lvl=5),(id=smite,lvl=5),(id=bane_of_arthropods,lvl=5),(id=knockback,lvl=2),(id=fire_aspect,lvl=2),(id=looting,lvl=3),(id=sweeping_edge,lvl=3),(id=unbreaking,lvl=3),(id=mending,lvl=1)])@luck=3@chance=0.00625
/ Legendary armor: 1 line per slot with a colored custom name (§4§lChaos §c§l[Slot]). Weights proportional
/ to the number of materials to preserve the exact distribution of the original: each item = 1/10 of the tier
/ (helmet/chestplate have 3 materials including spiny_shell -> 0.015; leggings/boots have 2 materials -> 0.010).
ID=born_in_chaos_v1:#randList(dark_metal_armor_helmet,nightmare_mantleofthe_night_helmet,spiny_shell_armor_helmet),NBTTag=(display=(Name=#jsonStr(text="§4§lChaos §c§lHelmet")),Enchantments=[(id=protection,lvl=4),(id=fire_protection,lvl=4),(id=blast_protection,lvl=4),(id=projectile_protection,lvl=4),(id=thorns,lvl=3),(id=unbreaking,lvl=3),(id=mending,lvl=1)])@luck=3@chance=0.015
ID=born_in_chaos_v1:#randList(dark_metal_armor_chestplate,nightmare_mantleofthe_night_chestplate,spiny_shell_armor_chestplate),NBTTag=(display=(Name=#jsonStr(text="§4§lChaos §c§lChestplate")),Enchantments=[(id=protection,lvl=4),(id=fire_protection,lvl=4),(id=blast_protection,lvl=4),(id=projectile_protection,lvl=4),(id=thorns,lvl=3),(id=unbreaking,lvl=3),(id=mending,lvl=1)])@luck=3@chance=0.015
ID=born_in_chaos_v1:#randList(dark_metal_armor_leggings,nightmare_mantleofthe_night_leggings),NBTTag=(display=(Name=#jsonStr(text="§4§lChaos §c§lLeggings")),Enchantments=[(id=protection,lvl=4),(id=fire_protection,lvl=4),(id=blast_protection,lvl=4),(id=projectile_protection,lvl=4),(id=thorns,lvl=3),(id=unbreaking,lvl=3),(id=mending,lvl=1)])@luck=3@chance=0.010
ID=born_in_chaos_v1:#randList(dark_metal_armor_boots,nightmare_mantleofthe_night_boots),NBTTag=(display=(Name=#jsonStr(text="§4§lChaos §c§lBoots")),Enchantments=[(id=protection,lvl=4),(id=fire_protection,lvl=4),(id=blast_protection,lvl=4),(id=projectile_protection,lvl=4),(id=thorns,lvl=3),(id=unbreaking,lvl=3),(id=mending,lvl=1)])@luck=3@chance=0.010

/ ===================== MONSTERS (all fire-immune) =====================
/ Weak (luck -1): 3 identical mobs
type=entity,ID=born_in_chaos_v1:#randList(maggot,corpse_fly,baby_spider,decrepit_skeleton,zombie_clown,bloody_gadfly,corpse_fish,bone_imp,swarmer),amount=3@luck=-1
/ Dangerous (luck -2): 1 medium mob
group(type=difficulty,ID=hard;type=entity,ID=born_in_chaos_v1:#randList(skeleton_thrasher,dread_hound,zombie_bruiser,pumpkin_bruiser,door_knight,seared_spirit,decaying_zombie,bonescaller,thornshell_crab,restless_spirit,skeleton_demoman,pumpkin_dunce,zombie_lumberjack,zombie_fisherman,senor_pumpkin),amount=1;type=sound,ID=entity.wither.spawn;type=sound,ID=#randList(entity.villager.ambient,entity.villager.yes,entity.villager.no,entity.villager.trade,entity.villager.celebrate),delay=0.0;type=sound,ID=#randList(entity.villager.ambient,entity.villager.yes,entity.villager.no,entity.villager.trade,entity.villager.celebrate),delay=0.4;type=sound,ID=#randList(entity.villager.ambient,entity.villager.yes,entity.villager.no,entity.villager.trade,entity.villager.celebrate),delay=0.8;type=sound,ID=#randList(entity.villager.ambient,entity.villager.yes,entity.villager.no,entity.villager.trade,entity.villager.celebrate),delay=1.2;type=sound,ID=#randList(entity.villager.ambient,entity.villager.yes,entity.villager.no,entity.villager.trade,entity.villager.celebrate),delay=1.6;type=sound,ID=#randList(entity.villager.ambient,entity.villager.yes,entity.villager.no,entity.villager.trade,entity.villager.celebrate),delay=2.0;type=sound,ID=#randList(entity.villager.ambient,entity.villager.yes,entity.villager.no,entity.villager.trade,entity.villager.celebrate),delay=2.4;type=sound,ID=#randList(entity.villager.ambient,entity.villager.yes,entity.villager.no,entity.villager.trade,entity.villager.celebrate),delay=2.8;type=sound,ID=#randList(entity.villager.ambient,entity.villager.yes,entity.villager.no,entity.villager.trade,entity.villager.celebrate),delay=3.2;type=sound,ID=#randList(entity.villager.ambient,entity.villager.yes,entity.villager.no,entity.villager.trade,entity.villager.celebrate),delay=3.6;type=sound,ID=#randList(entity.villager.ambient,entity.villager.yes,entity.villager.no,entity.villager.trade,entity.villager.celebrate),delay=4.0;type=sound,ID=#randList(entity.villager.ambient,entity.villager.yes,entity.villager.no,entity.villager.trade,entity.villager.celebrate),delay=4.4;type=sound,ID=#randList(entity.villager.ambient,entity.villager.yes,entity.villager.no,entity.villager.trade,entity.villager.celebrate),delay=4.8;type=sound,ID=#randList(entity.villager.ambient,entity.villager.yes,entity.villager.no,entity.villager.trade,entity.villager.celebrate),delay=5.2;type=sound,ID=#randList(entity.villager.ambient,entity.villager.yes,entity.villager.no,entity.villager.trade,entity.villager.celebrate),delay=5.6;type=sound,ID=#randList(entity.villager.ambient,entity.villager.yes,entity.villager.no,entity.villager.trade,entity.villager.celebrate),delay=6.0;type=sound,ID=#randList(entity.villager.ambient,entity.villager.yes,entity.villager.no,entity.villager.trade,entity.villager.celebrate),delay=6.4;type=sound,ID=#randList(entity.villager.ambient,entity.villager.yes,entity.villager.no,entity.villager.trade,entity.villager.celebrate),delay=6.8;type=sound,ID=#randList(entity.villager.ambient,entity.villager.yes,entity.villager.no,entity.villager.trade,entity.villager.celebrate),delay=7.2;type=sound,ID=#randList(entity.villager.ambient,entity.villager.yes,entity.villager.no,entity.villager.trade,entity.villager.celebrate),delay=7.6;type=sound,ID=#randList(entity.villager.ambient,entity.villager.yes,entity.villager.no,entity.villager.trade,entity.villager.celebrate),delay=8.0;type=sound,ID=#randList(entity.villager.ambient,entity.villager.yes,entity.villager.no,entity.villager.trade,entity.villager.celebrate),delay=8.4;type=sound,ID=#randList(entity.villager.ambient,entity.villager.yes,entity.villager.no,entity.villager.trade,entity.villager.celebrate),delay=8.8;type=sound,ID=#randList(entity.villager.ambient,entity.villager.yes,entity.villager.no,entity.villager.trade,entity.villager.celebrate),delay=9.2;type=sound,ID=#randList(entity.villager.ambient,entity.villager.yes,entity.villager.no,entity.villager.trade,entity.villager.celebrate),delay=9.6)@luck=-2
/ Deadly (luck -3): an explosion OR a TP OR a dangerous mob (only one per draw)
type=explosion,radius=4,fire=false@luck=-3@chance=0.03
group(type=sound,ID=entity.enderman.teleport;type=command,ID="/spreadplayers #pPosX #pPosZ 1 100 false #pName")@luck=-3@chance=0.03
group(type=difficulty,ID=hard;type=entity,ID=born_in_chaos_v1:#randList(nightmare_stalker,fallen_chaos_knight,mother_spider,dire_hound_leader,sir_pumpkinhead,scarlet_persecutor,spiritof_chaos,pumpkin_spirit,infernal_spirit),amount=1;type=entity,ID=born_in_chaos_v1:#randList(maggot,corpse_fly,baby_spider,decrepit_skeleton,zombie_clown),amount=#rand(2,3);type=sound,ID=entity.wither.spawn)@luck=-3@chance=0.03
group(type=difficulty,ID=hard;type=entity,ID=born_in_chaos_v1:#randList(supreme_bonescaller,krampus,lifestealer,lord_pumpkinhead),amount=1;type=sound,ID=entity.wither.spawn)@luck=-3@chance=0.03
