============================================
 DATAPACK: RANDOM BLOCK DROPS
 1.17.x - 1.18.x MERGED PORT (Minecraft 1.17,
 1.17.1, 1.18, 1.18.1, 1.18.2)
 Based on Version 2.2
============================================

WHAT IT DOES
------------
Every block you mine can drop almost anything in the game - completely
unrelated to the block you broke. The ODDS depend on
*which* block you break: dirt overwhelmingly gives junk, diamond ore
overwhelmingly gives good stuff. It's still technically possible to
mine dirt and get an elytra - it's just astronomically unlikely now.
Mine diamond ore and decent loot is closer to a coin flip.

Mobs are untouched: they still give their normal vanilla drops, nothing
extra.

On world join or /reload you'll see:
  [Random Block Drops] Datapack loaded (v2.2).

This is a single, flat (no-overlay) build that covers the whole
1.17.x - 1.18.x range in one pack.mcmeta. It replaces the two separate
1.17.x-only and 1.18.x-only zips from before - see MERGE NOTES below
for why one file can now cover both.

LOOT POOL (356 items, 5 item-rarity classes)
-------------------------------------------
  COMMON (125 items): basic materials, cooked food, seeds, flowers,
    wool/dye/carpet in all 16 colors, planks and saplings for the 8
    wood types that exist on 1.17.x/1.18.x, wood/stone tools.
  UNCOMMON (152 items): nuggets, redstone components, furniture,
    concrete/terracotta/stained glass in all 16 colors, iron/gold
    tools, iron/chainmail armor.
  RARE (58 items): ingots, diamond, bow, crossbow, shield, beacon,
    ender chest, shulker box, mob heads, music discs, diamond tools,
    gold/diamond armor.
  EPIC (16 items): netherite gear, totem of undying, trident,
    shulker/nautilus shells, heart of the sea.
  LEGENDARY (5 items): netherite ingot, elytra, dragon egg, nether
    star, enchanted golden apple.

BLOCK RARITY TIERS (90 minable blocks)
-------------------------------------------
Every one of the 90 minable blocks belongs to one of 5 tiers based on
how hard it normally is to obtain in vanilla survival. Each tier uses
a different weight for the same 5 item classes above, so the pool of
possible drops never changes, only the odds of landing on each class:

  Tier 1 - Dirt & Foliage (22 blocks): dirt, sand, red sand, gravel,
    clay, grass block, snow, ice, cactus, bamboo, podzol, mycelium,
    rooted dirt, coarse dirt, and the 8 leaf types that exist on
    1.17.x/1.18.x (oak, spruce, birch, jungle, acacia, dark oak,
    azalea, flowering azalea).
    -> ~59% common, ~39% uncommon, ~1.8% rare, epic and legendary
       share the game's minimum integer drop weight at this tier, so
       they land at the same ~0.03% each (roughly 1 in 3,300 for
       either one) rather than legendary being rarer - an inherited
       rounding limit of the tier, not something new in this build
       (see MERGE NOTES).

  Tier 2 - Stone & Wood (35 blocks): stone, cobblestone, deepslate,
    cobbled deepslate, andesite/diorite/granite/tuff/calcite,
    sandstone types, terracotta, netherrack, glowstone, magma block,
    melon, pumpkin, snow block, packed/blue ice, sponge, bone block,
    soul sand, soul soil, crimson/warped nylium, and the 8 log types
    that exist on 1.17.x/1.18.x (oak, spruce, birch, jungle, acacia,
    dark oak, crimson stem, warped stem).
    -> ~46% common, ~50% uncommon, ~4.2% rare, ~0.18% epic,
       ~0.02% legendary (roughly 1 in 5,480)

  Tier 3 - Early Ores & Specials (25 blocks): coal, copper, iron,
    redstone, lapis and quartz ore (+ deepslate variants), nether gold
    ore, blackstone, basalt, obsidian, dripstone, amethyst block,
    prismarine family, sea lantern, shroomlight, moss block,
    nether/warped wart block.
    -> ~28% common, ~60% uncommon, ~11% rare, ~0.90% epic,
       ~0.08% legendary (roughly 1 in 1,180) - FIXED in this build,
       see MERGE NOTES: common and rare used to be identical weights.

  Tier 4 - Gold Tier (3 blocks): gold ore, deepslate gold ore,
    crying obsidian.
    -> ~17% common, ~49% uncommon, ~29% rare, ~3.7% epic,
       ~0.46% legendary (roughly 1 in 217)

  Tier 5 - Diamond Tier (5 blocks): diamond ore, emerald ore,
    ancient debris, deepslate diamond ore, deepslate emerald ore.
    -> ~9% common, ~33% uncommon, ~46% rare, ~10% epic,
       ~2.2% legendary (roughly 1 in 46)

BLOCKS: 1 random item guaranteed per break, from any of the 90 blocks
  covered, weighted by that block's rarity tier above.
MOBS: normal vanilla drops only - no random loot.

TRADE-OFF
------------
Silk Touch does not protect anything - breaking any block, with or
without it, gives random loot.

ACHIEVEMENTS (21 total)
---------------
A small "beat the game with this datapack" achievement arc, all
branching off the main "Random Block Drops" advancement:

  - Suited in Diamonds   - get a full diamond armor set
  - Diamond Tool Kit     - get a full diamond tool set (branches off
                            Suited in Diamonds)
  - Netherite Novice     - get a full netherite armor set
  - Netherite Tool Kit   - get a full netherite tool set (branches off
                            Netherite Novice)
  - Full Metal Jacket    - get a full iron armor set
  - Midas Touch          - get a full golden armor set
  - Second Chance        - obtain a Totem of Undying
  - Dragon's Hoard       - obtain a Dragon Egg
  - Ancient Knowledge    - obtain an Enchanted Book
  - Davy Jones' Locker   - obtain a Trident, a Nautilus Shell and a
                            Heart of the Sea
  - Skull Collector      - obtain all 6 head/skull items (Creeper,
                            Dragon, Player, Skeleton, Wither Skeleton,
                            Zombie) - the "Piglin" one is a Player
                            Head on this build, since piglin_head
                            doesn't exist yet (see MERGE NOTES)
  - Greatest Hits        - obtain all 13 music discs available on
                            1.17.x/1.18.x (no Otherside - that's a
                            1.19 addition)
  - Jackpot!              - get any legendary item from mining
  - Collector of Legends - get all 5 legendary items (branches off Jackpot)
  - Shell Shocked         - obtain a Shulker Shell (new in 2.2)
  - Chain Reaction        - obtain a full chainmail armor set (new in 2.2)
  - Vault Keeper          - obtain a Beacon, a Conduit, an Ender Chest
                            and a Shulker Box (new in 2.2)
  - The Final Frontier   - enter the End
  - Against All Odds     - defeat the Ender Dragon (branches off The
                            Final Frontier)
  - Wither Away          - defeat the Wither

Icons use the legacy "item" key, required by every version before
1.20.5, so the custom advancement tab displays correctly.

INSTALLATION
------------
1. Delete any previous version of the "random_block_drops" folder from
   .minecraft/saves/<world>/datapacks/ (including either of the old
   single-version 1.17.x or 1.18.x zips, if you had them installed).
2. Copy this new folder there.
3. /datapack list
4. If it shows up in green under "enabled", you're done. If it shows
   up under "available" instead (this can happen on 1.18.x - see
   VERSION COMPATIBILITY below), run:
     /datapack enable "file/random_block_drops"
5. /reload

VERSION COMPATIBILITY
-------------------------
Targets Minecraft 1.17 and 1.17.1 (data pack_format 7), 1.18 and
1.18.1 (format 8), and 1.18.2 (format 9). pack.mcmeta declares
pack_format 7 with supported_formats/min_format/max_format 7-9.

Overlays (the mechanism the multi-version 1.19.x-26.3 release uses to
avoid compatibility warnings on every version) don't exist before
1.20.2, so a single flat file physically cannot show zero warnings on
all three format numbers (7/8/9) in this range at once - only one of
them can be an exact match. This build's exact match is 1.17/1.17.1
(pack_format 7 == 7, no warning there); 1.18.x will show a
"pack_format doesn't match" warning in the datapack list, but the
pack still works correctly - a version mismatch on a dedicated server
is not fatal, it's a label, not a functional gate. On the games's
world-creation/datapack-selection screen, a mismatched pack sometimes
lands in "Available" rather than "Enabled" and needs a manual
/datapack enable (see INSTALLATION above); on an already-running
server it typically loads and runs as-is.

This build was produced by taking the two previous single-version
ports (1.17.x-only and 1.18.x-only, both based on v2.1) and confirming
they share an identical 90-block/356-item registry - Minecraft 1.18
("Caves & Cliffs: Part II") was a world-generation update only (cave
generation, world height, new biome placement); every block and item
it's associated with (copper, amethyst, deepslate + ore variants,
dripstone, tuff, calcite, moss, azalea/flowering azalea, rooted dirt)
was already added to the game in 1.17 ("Part I"). 1.18 just changed
where those blocks generate naturally, not which IDs exist. That
identical registry is what makes one flat pack for the whole range
possible.

MERGE NOTES (what changed from the two old single-version zips)
-------------------------
- Merged the separate 1.17.x-only and 1.18.x-only zips into this one
  file. Their loot tables and advancements were already
  byte-for-byte identical (only their pack.mcmeta differed), so no
  content had to be reconciled between them.
- Pulled in the v2.2 fixes on top of that shared content:
  - Tier 3 bug fix: all 25 Tier 3 blocks used to give common and rare
    items the exact same drop weight (a bug present since block
    rarity tiers were introduced in 2.0, inherited by both old
    single-version ports). Common and rare are now properly
    separated (see the updated Tier 3 odds above).
  - 3 new achievements: Shell Shocked (obtain a Shulker Shell), Chain
    Reaction (obtain a full chainmail armor set), and Vault Keeper
    (obtain a Beacon, a Conduit, an Ender Chest and a Shulker Box).
    None reference version-specific items, so all three carried over
    with no changes needed.
  - Bumped the in-game load message to v2.2.
- Fixed a leftover bug specific to the old 1.17.x-only zip: its
  README already claimed the Skull Collector advancement's "Piglin"
  criterion had been swapped for a Player Head (since piglin_head
  doesn't exist yet - see below), and its loot tables really had
  been fixed that way, but the advancement file itself still said
  "Piglin" / used a "piglin" criterion key pointing at
  minecraft:piglin_head. That's now corrected to "Player" /
  minecraft:player_head, matching every other reference in the pack.
- piglin_head itself: earlier documentation in this pack family
  said it didn't exist until 1.19.3, but that's not quite right -
  it was added experimentally behind the "Update 1.20" experimental
  data pack toggle in 1.19.3, and only became available by default
  in 1.20. Either way, it doesn't exist on 1.17.x/1.18.x, so
  player_head remains the correct substitute here.
- New pack.mcmeta covering the full 1.17-1.18.2 range in one file
  (pack_format 7, supported_formats/min_format/max_format 7-9) in
  place of the two separate single-format files.
- Stripped the "random_sequence" field, a 1.20+ addition inherited
  from the v2.2 source data, from all 90 loot tables (same as the
  old 1.18.x-only zip already did; harmless either way on these
  versions, but removed for cleanliness).

MOBS - normal drops only, no overrides at all
-------------------------------------------
This pack doesn't ship loot_table files for any mob. With nothing
defined, Minecraft simply falls back to real vanilla loot for every
mob - no need to keep a hand-maintained copy of Mojang's tables in
sync release after release. It also means this pack won't clobber a
custom mob loot table from another datapack running alongside it.
