Skip to content

Unable to remove trades from mod supplementaries #12

Description

@LTCatt

Minecraft Version

1.20.1

Mod Version

0.9.0

Describe the bug!

I modified wanderer trades using the following code, but the supplementaries injected trades still comes up in morejs 0.9.0.

MoreJSEvents.wandererTrades(event => {
    event.removeVanillaTrades(1);
    event.removeVanillaTrades(2);
    event.removeModdedTrades(1);
    event.removeModdedTrades(2);
    event.addTrade(1, ['3x kubejs:ruby'], '6x minecraft:emerald').maxUses(3);
    event.addTrade(1, ['3x kubejs:amethyst'], '6x kubejs:ruby').maxUses(3);
    event.addTrade(2, ['6x minecraft:emerald'], '2x kubejs:ruby').maxUses(3);
    event.addTrade(2, ['6x kubejs:ruby'], '2x kubejs:amethyst').maxUses(3);
});

image

Crash Report

No response

Log

No response

Additions and Modifications

No

Additions and Modifications Description

No response

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