EMI Loot + LootJS Fix
Forces EMI Loot to display loot table changes that were made using LootJS scripts.
截图
介绍
Info
Forces EMI Loot to display loot table changes that were made using LootJS scripts.
This mod fixes issue #111. The fix is very simple, but the cost is that EMI Loot has to parse all loot tables twice (once before LootJS which was the original reason it wouldn’t had anything from LootJS, and a second time after LootJS), but I don’t think this will have any noticeable effect on performance. There’s probably a better solution but I’m a bit limited since this fix has to be a mixin.
Dependencies
- NeoForge
- EMI Loot v0.7.9
⚠️ IMPORTANT️ ⚠️
- This fix only works when using the
LootJS.lootTables()event instead ofLootJS.modifiers(). There are more details about this in the LootJS Wiki - You also don’t actually need LootJS for this fix; if there’s some other mod facing the same issue with EMI Loot, this mod should fix it.
- Once the EMI Loot author has a fix, I’ll archive this project and redirect to the EMI Loot page.
Comparison
Using this script:
LootJS.lootTables(e => {
e.getEntityTable('minecraft:pig').createPool(pool => {
pool.addEntry(LootEntry.of('minecraft:diamond').setCount([2, 6]))
})
})
Before Fix

After Fix

常见问题
EMI Loot + LootJS Fix 支持哪些 Minecraft 版本?
EMI Loot + LootJS Fix 支持 Minecraft Java 版 1.21.1,可用的加载器:NeoForge。下载时注意选择和你游戏版本一致的文件。
EMI Loot + LootJS Fix 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。
mo_shark 的其他作品
查看全部 →Mo’s Grounded Origins [FABRIC]
一个 Origins 附属模组,新增沙滩蟹、鹿、飞蛾和企鹅起源。
Mo’s Vibrancy Pack [1.18+]
这款资源包通过更鲜亮的草和水体颜色让游戏画面更有活力,周围世界也随之焕然一新。
Mo’s Grounded Origins [FORGE]
一款 Origins 附属模组,新增海滩螃蟹、鹿、飞蛾和企鹅起源。
Mo’s Improved Leaves and Foliage
香蒲、茂密树叶、草、花卉变种和藻类!
评论
登录后评论和评分