AlmostReliable / almostunified

A Minecraft mod to unify resources.
https://www.curseforge.com/minecraft/mc-mods/almost-unified
GNU Lesser General Public License v3.0
50 stars 9 forks source link

Documented ore drop unification does not work #36

Closed Martmists-GH closed 1 year ago

Martmists-GH commented 1 year ago

Version

v1.19.2-0.3.5

Describe the bug!

Using the following script from the wiki (adapted to 1.19.2 following LootJS docs):

// server_scripts/unify_drops.js

LootJS.modifiers(event => {
    event.addBlockLootModifier('#forge:ores').modifyLoot('#forge:raw_materials', item => {
        const replacement = AlmostUnified.getReplacementForItem(item);
        if (replacement.isEmpty()) {
            return item;
        }
        replacement.setCount(item.getCount());
        return replacement;
    });
});

Behavior:

Crash Report

N/A

Log

https://mclo.gs/DGYBu9o

Additional Context

Yes

Modifications

See log for mod list

Did the issue happen in singleplayer or on a server?

Singleplayer

rlnt commented 1 year ago

You are using a Forge tag for your Fabric mods. Please don't open issues before talking to us. This is a support case.

github-actions[bot] commented 1 year ago

:wave: @Martmists-GH! Please don't use the issue tracker for support requests.

As stated in our Contribution Guidelines, we use it exclusively for bug reports and feature requests.

Feel free to join our Discord for help instead.