Skip to content

MoreJS has issues with modded enchantments #29

Description

@armuell

Minecraft Version

1.20.1

Mod Version

0.10.1

Describe the bug!

Only Fabric was tested, two different behaviors were observed with different mods that add enchantments. No errors were shown in the log. The two issues listed below can be reproduced independently.

Issue#1: When MoreJS and Vein Mining are installed the enchantment Vein Mining is removed from the pool when using an enchanting table (and perhaps other sources as well). This can be confirmed by adding a simple debug script and attempting to enchant a golden pickaxe using a maxed out enchanting table:

MoreJSEvents.filterAvailableEnchantments((event) => {
    //event.add("veinmining:vein_mining"); // uncomment to manually adding vein_mining as workaround for this bug
    console.info('Available Enchatments:')
    event.printEnchantmentInstances(); // Simple debug function to print all enchantments with level
});

Issue#2: When MoreJS, Yttr, and Trinkets are installed the enchantments Stabilization and Springing are added to the pool for all armors and tools when they intended to be exclusive to the Cuprosteel Coil trinket item. This can be confirmed by using the same debug script as above and the unexpected behavior occurred in both the enchanting table as well as generated loot in End Cities.

Crash Report

No response

Log

No response

Additions and Modifications

Yes

Additions and Modifications Description

Issue#1

Issue#2

Did the issue happen in singleplayer or on a server?

Singleplayer

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions