Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KubeJS Loot/Trade Edits Are Not Shown in JER on Servers, only on Singleplayer. #515

Open
Freedbot opened this issue Aug 25, 2024 · 1 comment

Comments

@Freedbot
Copy link

I did a clean instance just to eliminate any doubt. My actual pack uses REI instead of JEI, but that seems to have no bearing on this bug because the behavior is the same. Tested by simply copying and tweaking the zombie loot json to drop stone instead of zombie flesh and placing it in "kubejs/data/minecraft/loot_tables/entities/zombie.json on both the server and client. I will note that any script use to edit mob drops or villager trades through MoreJS will also have the same behavior, not just data "pack" loading.

Checking recipes for stone on client will show that zombies drop it, but when on a server with identical settings, it will show the unedited rotten flesh drop. Again, these were tested with clean instances with only the below mods and the zombie loot edit. Server was localhost.

MC: 1.20.1
Forge: 47.3.7
JEI: 15.12.3.55
JER: 1.4.0.247
kubejs: 2001.6.5
Architectuary: 9.2.14build14
rhino: 2001.2.3build6

@XlosVSM
Copy link

XlosVSM commented Jan 10, 2025

Happens to me as well, except I cannot see my trade in singleplayer.

MoreJSEvents.villagerTrades(
    event => {
        // Updates levitation stone trading requirements
        event.removeModdedTrades(
            'minecraft:cartographer',
            5
        );

        event.addTrade(
            'minecraft:cartographer',
            5,
            [
                'explorerscompass:explorerscompass',
                Item.of('minecraft:amethyst_shard', 15)
            ],
            'castle_in_the_sky:levitation_stone'
        );
    }
)

MC: 1.20.1
Forge: 47.3.22
JEI: 15.20.0.105
JER: 1.4.0.247
KubeJS: 2001.6.5-build.16
MoreJS: 0.10.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants