UNEMPLOYED SMP LOOT BALANCE v1.1
Minecraft 1.21.1 NeoForge
Designed for Loot Integrations 4.7 + your existing Loot Integrations structure addons.

WHAT IT DOES
- Keeps native loot and your existing Loot Integrations addon loot.
- Adds a curated bonus layer based on chest/room theme and structure difficulty.
- Uses the real loot-table IDs and item IDs from your Unemployed SMP registry dumps.
- T1: small/common structures -> common themed bonus.
- T2: dangerous towers, forts, mines, dungeons -> uncommon themed bonus.
- T3: treasure/vault/major dungeon rewards -> rare themed bonus and extra reward rolls.
- Room role wins over structure theme: libraries get magic, kitchens get food, workshops get Create,
  mines get resources, armories/combat rooms get equipment, treasure rooms get high-tier rewards.
- Strongly authored progression tables (Iron's Spells, Cataclysm, Aether, Deep Aether, etc.) are not
  directly replaced by this pack.

ILLAGER FORT
- Barrels: Supply T2.
- Normal chests: Combat T2.
- Treasure: Treasure T3 with the higher T3 reward count.
This is additive to the working When Dungeons Arise Loot Integrations addon.

INSTALL
1. KEEP Loot Integrations 4.7 and the structure-specific Loot Integrations addons you already use.
2. REMOVE/disable the old unemployed_themed_structure_loot_v4/v5 KubeJS scripts so they do not compete.
3. Put THIS ZIP itself into the world's datapacks folder:
      <world folder>/datapacks/Unemployed_SMP_Loot_Balance_v1.zip
   For a Bisect server, upload it to the active world's datapacks folder.
4. Fully restart the server/world. A /reload can work for datapacks, but a full restart is recommended
   for the first test.
5. Test NEW / previously unopened Lootr containers. Already-opened per-player Lootr inventories can be cached.
6. Start with a newly generated Dungeons Arise Illager Fort and compare barrels, normal chests and treasure.

DEBUGGING
- Loot Integrations can show container loot-table IDs on first opening when its show-container-loot-table
  option is enabled.
- If a particular chest feels wrong, send its loot-table ID and it can be reassigned without changing the
  rest of the pack.
- STRUCTURE_LOOT_AUDIT.csv lists every table v1 intentionally balances.

IMPORTANT
This is a balancing overlay, not a wholesale loot-table replacement. That is intentional: your current
Loot Integrations setup is already successfully providing Ars, Iron's and other modded loot, so v1 adds
difficulty/theme-aware rewards on top rather than removing the working integration.

V1.1 CORRECTION
- Corrected Loot Integrations 4.7 schema key from the invalid `integrated_loottables`
  to the official `integrated_loot_tables`.
- All integration JSON files were parsed and checked for the required fields:
  loot_table, max_result_itemcount, integrated_loot_tables.
- v1 should remain removed; use v1.1 instead.

V1.2 DIFFICULTY / REWARD PASS
- Illager Fort is the T3 benchmark.
- T3 high-value pools now favor rare/diamond-tier equipment; common/gold weapon pools are no longer the main T3 bonus source.
- Added T4/endgame classification for major structures including Keep Kayra, Shiraz Palace,
  Heavenly Challenger/Conqueror, Plague Asylum, Mining Complex, Mechanical Nest,
  Ancient City, End City, Frosted Prison and Gold Dungeon when those tables exist in the installed pack.
- T4 families receive 1-4 guaranteed exceptional injections according to the number of targeted chest tables.
- Each T4 structure family receives one guaranteed Simply Swords unique injection point.
- Guarantees are attached preferentially to treasure/vault/reward-style tables, not every chest.
- Existing authored/progression tables excluded from the original curated target set remain untouched.
- See STRUCTURE_LOOT_AUDIT_v1.2.csv for the exact classification used.

IMPORTANT LIMITATION
Loot Integrations operates on loot TABLES, not individual generated structure instances. A guarantee on a
table means every chest generated from that selected table receives the integration. The pack chooses one
high-value table per T4 family for the unique weapon, which approximates one guaranteed unique location per
endgame structure while staying within Loot Integrations' supported model.

V1.2.1 FIX
- All T3/T4 bonus tables rebuilt directly from the actual installed item registry.
- Gold Simply Swords removed from T3/T4 bonus weapon pools; T3 uses diamond/rare equipment.
- T4 uses diamond/netherite/high-end themed equipment.
- Removed the repeating Loot Integrations exceptional and unique guarantee definitions from v1.2.
  This prevents a repeated Keep Kayra chest table from producing several guaranteed uniques or
  several guaranteed Fantasy Armor pieces.
- Fantasy Armor and Simply Swords uniques are intentionally NOT in ordinary T4 bonus pools.
  Exact per-structure limits (1 guaranteed unique; max 3 Fantasy Armor) need a structure-instance-
  aware reward implementation and are not falsely approximated with repeating loot-table injection.
- Validation fails if any Loot Integrations-referenced custom bonus table is empty.

V1.3
- Replaced broad registry-derived T3/T4 pools with explicit useful-reward whitelists.
- Removed decorative/niche rewards such as Chipped blocks, bridge supports, furniture and decorative cauldrons.
- T3/T4 rewards now emphasize useful resources, strong gear, complete meals and valuable mod components.
- T3/T4 magic is Iron's Spells focused. Native Iron's good/treasure loot tables are nested so scrolls
  retain their proper spell components. Ars Nouveau is a secondary resource reward only.
- T3 remains +2 bonus rolls per target chest.
- T4 normal/themed chests are reduced to +1 bonus roll; T4 treasure chests get +2.
- Restored a curated 57-item Simply Swords unique reward and Fantasy Armor as exceptional T4 rewards.
- Exceptional rewards target ONE selected treasure table per T4 structure family rather than every
  treasure subtype. This is a best-effort one-per-structure design. Loot Integrations is table-based,
  so if a structure repeats that native table it cannot enforce an absolute per-structure cap.
- Fantasy Armor uses the same conservative single selected target, keeping intended output well below
  the requested maximum of three in the normal case.

V1.3.1
- Normal v1.3 themed T1-T4 loot is unchanged.
- Removed the non-working T4 guaranteed Simply Swords/Fantasy Armor system.
- Every structure chest target managed by this datapack now receives an independent 7.5% exceptional jackpot chance,
  regardless of whether its normal role is combat, magic, food, farm, supply, mine, Create, treasure, village, etc.
- A successful jackpot selects 50/50 between:
    * one of the curated 57 Simply Swords uniques
    * one of the 116 Fantasy Armor pieces
  This is a combined 7.5% exceptional chance, approximately 3.75% per category per eligible chest.
- The jackpot adds at most one exceptional item on a successful roll.


=== v1.3.3 ===
Higher-tier chests now use cumulative role-aware filler. T3 gets 2 T1/T2 filler rolls and 1 normal T3 roll; T4 gets 3 T1/T2 filler rolls while retaining its normal T4 reward amount. Exceptional probabilities now live inside wrapper loot tables and all Loot Integrations target values are integer 1.


=== v1.3.4 ===
Audited difficulty tiers/room roles; native authored structure loot remains intact and receives only an additive themed supplement. v1.3.3's stacked filler and exceptional integrations were consolidated into one role/tier integration per chest. T3 exceptional rates are 0.25% each; T4 rates are 1% each. Exceptional rolls are embedded in the same table as normal bonus loot.
