EMI Loot + LootJS Fix

Quick rating

Community listing page, reviews here may not be monitored by the author.

EMI Loot + LootJS Fix

By mo_sharkOwner

No reviews yet

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

Mod Loaders
NeoForge
Minecraft

Community voices

Reviews

List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Show per page
10
25
50
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

Compatibility

Supported Environments

Where It Runs
Client and Server

Must be installed on both the client and the server.

About

Project Details

Type
Mod
License
MIT License
Latest Version
1.0.0

For authors

Embed Badge

If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

Modrinth ID

Resources

External Links

About

Description

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

⚠️ 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:

LootJS.lootTables(e => {
    e.getEntityTable('minecraft:pig').createPool(pool => {
        pool.addEntry(LootEntry.of('minecraft:diamond').setCount([2, 6]))
    })
})

Before Fix

Before

After Fix

After

Screenshots

Gallery

  • BEFORE
    BEFORE
  • AFTER
    AFTER

Versions

Files

Relations

Project Relations

More like this

Similar Mods

Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.

On ModDex

Community snapshot

0
Ratings
0
Followers
0
In stacks

By the numbers

Statistics

<1,000
Downloads
Last Updated
CurseForge
Modrinth
Created
Last synced
When ModDex last fetched this project from CurseForge or Modrinth. Every project is re-checked on a schedule, and any project that ships a new file is synced automatically within hours of the release.
New file updates sync automatically
How syncing works