Compatibility
Minecraft: Java Edition
Platforms
Supported environments
Links
Tags
Creators
Details
OPLoot
Long Description
OPLoot is a lightweight server-side utility mod for Fabric 1.21.11 that gives server owners full control over structure chest loot. Instead of relying on vanilla or datapack loot table overrides, OPLoot lets you define custom loot pools directly in a simple JSON config file — no datapack knowledge required.
Every structure chest loot table in the game (villages, strongholds, bastions, mineshafts, dungeons, desert pyramids, jungle temples, end cities, trial chambers, and more) is automatically detected and modified at load time using Fabric API's loot table events.
Key features:
- Replace or Extend — Choose whether to completely replace vanilla loot with your own list, or simply add your items on top of the existing loot pool.
- Fixed or Weighted Random Loot — Generate every configured item every time, or let the game roll a weighted random selection a configurable number of times per chest — with each individual chest getting its own independent roll, so chests in the same structure won't all look the same.
- Full Item Syntax Support — Item stacks are defined using the exact same syntax as the vanilla
/givecommand, including item components such as enchantments, potion effects, and custom data. Parsing is done through Minecraft's own item argument parser, so anything that works in/giveworks in your config. - Automatic Weight Lore — Optionally see each item's configured weight displayed right in its lore, useful for testing and tuning your loot tables.
- Zero-hassle Setup — On first launch, OPLoot generates a ready-to-edit
config/oploot/loot.jsonfile with a full example loadout, so you can start tweaking immediately.
Whether you want to build a custom vanilla+ loot progression, run a hardcore survival server with rebalanced structure rewards, or just replace every dungeon chest with diamonds for fun, OPLoot gives you a clean, config-driven way to do it — no coding required.
Short Description
Customize the loot in every structure chest with a simple JSON config — replace or extend vanilla loot, use fixed or weighted random rolls, and define items with full /give-style syntax.
Default Config Item Drop Probabilities (Total Weight: 231 / 5 Rolls)
| Weight | Item Count | Probability (At least 1 in 5 Rolls) |
|---|---|---|
| 7 | 17 | ~14.23% |
| 6 | 10 | ~12.33% |
| 5 | 1 | ~10.36% |
| 4 | 2 | ~8.37% |
| 3 | 10 | ~6.33% |
| 2 | 4 | ~4.27% |
| 1 | 1 | ~2.14% |


