ArcanumLib

A loot and attribute framework for mods — rework any loot table from datapacks, code or KubeJS.

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_modifiers condition, 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, looting and bonus_loot (extra rolls on entity drops and chests).
  • Commands: /arcanumlib export lootTable and /arcanumlib loot_simulation.
  • KubeJS API (optional): 12 script events plus 14 factory helpers, and a read-only ArcanumLib binding.
  • Mod compatibility: Advanced Loot Info and AStages support, loaded automatically when present.

Getting started

  1. Drop a json injector into data/<your namespace>/loot_injecter/, then run /reload.
  2. Or do it in code: register from Java, or with ArcanumLibEvents.registerLootInjector in KubeJS.
  3. Full documentation (中文 / English) is in the docs/ folder of the repository.

ArcanumLib Team

profile avatar
  • 6
    Followers
  • 18
    Projects
  • 4.4M
    Downloads

More from chen_1335View all