跳到正文

ArcanumLib

作者:chen_1335

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 支持哪些 Minecraft 版本?

ArcanumLib 支持 Minecraft Java 版 1.21.1,可用的加载器:NeoForge。下载时注意选择和你游戏版本一致的文件。

ArcanumLib 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

chen_1335 的其他作品

查看全部 →