EMI Loot + LootJS Fix

Forces EMI Loot to display loot table changes that were made using LootJS scripts.

Редакция NLZONE · 1 мин чтения · 0 просмотров
EMI Loot + LootJS Fix
Скачать EMI Loot + LootJS Fix1.21.1 · с официальной страницы: modrinth.com
Перейти к загрузке

Что это

Forces EMI Loot to display loot table changes that were made using LootJS scripts.

  • Тип: мод
  • Загрузчик: neoforge
  • Версии Minecraft: 1.21.1
  • Скачиваний на Modrinth: 1 425

Подробно

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 of LootJS.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: js LootJS.lootTables(e => { e.getEntityTable('minecraft:pig').createPool(pool => { pool.addEntry(LootEntry.of('minecraft:diamond').setCount([2, 6])) }) })

Как установить

Скачайте файл на официальной странице ниже и положите его в папку mods (для модов) или plugins (для плагинов) вашего сервера или клиента. Для модов нужен совместимый загрузчик. Версия должна совпадать с версией Minecraft.

Текст подготовлен автоматически из описания на Modrinth и ждёт проверки редакцией.

Редакция NLZONE

Пишем о серверах, модах и играх, в которые играем сами. Нашли ошибку — напишите нам, исправим.

Комментарии 0

Комментарии к этому материалу отключены.

Читайте также