Rework any loot table in Minecraft 1.21.1 — from datapacks, code or KubeJS.
ArcanumLib is a loot and attribute framework for mod and pack authors. It splits "changing drops" into three composable layers, so you can do it with a json injector, with your own code, or straight from a KubeJS script.
What you get
- Loot injectors (datapack): pick any table, pool, entry, function or condition across five levels, then add, remove or edit them — 5 selector families (54 selectors) and 41 operators.
- Chance modifiers: the
arcanumlib:chance_modifierscondition, with nine modifiers that rewrite a base chance from difficulty, tool enchantment or entity attributes. - All-of entry:
arcanumlib:all_of, where every child is produced. - Four attributes:
seeking,fortune,lootingandbonus_loot(extra rolls on entity drops and chests). - Commands:
/arcanumlib export lootTableand/arcanumlib loot_simulation. - KubeJS API (optional): 12 script events plus 14 factory helpers, and a read-only
ArcanumLibbinding. - Mod compatibility: Advanced Loot Info and AStages support, loaded automatically when present.
Getting started
- Drop a json injector into
data/<your namespace>/loot_injecter/, then run/reload. - Or do it in code: register from Java, or with
ArcanumLibEvents.registerLootInjectorin KubeJS. - Full documentation (中文 / English) is in the
docs/folder of the repository.