Minecraft 1.21.1 NeoForge. Install this ZIP unopened in config/openloader/packs/ or your world datapacks folder. Restart or /reload. If another pack overrides these exact tables, this fix must have higher datapack priority.

Restricts unrestricted enchant_randomly functions to #minecraft:on_random_loot in Quark misc/monster_box, Dungeons Delight chests/rotten_dungeon, and Lukis Crazy Chambers replacement of minecraft chests/trial_chambers/reward_rare. All other source rewards, weights, counts and functions are preserved. Trial equipment rolls are also restricted to the normal loot tag.

Does not delete or edit internal boss enchantments, hide EMI/JEI entries, remove existing books, or change the separate Monster Box stained-scrap block-drop table. Intended for the exact mod versions supplied in PtP; overrides should be reviewed if those mods are updated. Static validation only; no game launched.
