I'm trying to create a modpack with the 2 of them and when I try to launch singleplayer, I'm getting
[09Feb2025 20:19:58.539] [Netty Server IO #1/ERROR][net.minecraft.network.Connection/]: Exception caught in connectionio.netty.handler.codec.EncoderException: Failed to encode packet 'clientbound/minecraft:update_recipes'
I've isolated this mod as a cause, or rather interaction between the mod and KubeJS, since:
- The logs indicate that some recipes are messed up
- After seeing the logs I tested that either disabling KubeJS or EpicKnightsMod makes the game run normally
- After tests I've isolated these 2 (and their libs + jei) and they still don't work together
I'm making this post asking for help if there is something obvious I'm not seeing in the logs that could help fix that or if somebody experienced something similar with other mod and knows a solution since:
- Removing all recipes makes it so you can launch a game
- But removing all recipes from magistruarmory doesn't help.
I guess it also might potentially might be a bug? Even though it's another mod it doesn't load it's recipes or do changes like KubeJS. (EpicKnightsMod just adds items and models, at least at first glance).
Logs are in file.
Script if it helps? - like the script isn't really the issue, script helps it
KubeJS/server_scripts/main.js:
// Visit the wiki for more info - https://kubejs.com/
// console.info("Hello, World! (Loaded server example script)");
ServerEvents.recipes((event) => {
console.log("Hello! The recipe event has fired!");
// event.remove({ id: "magistuarmory:steel_ingot_blasting" });
// event.remove({ id: "magistuarmory:barbedclub" });
// event.remove({ id: "magistuarmory:blacksmith_hammer" });
// event.remove({ id: "magistuarmory:pitchfork" });
// event.remove({ mod: "magistuarmory" });
event.remove({});
});
In the meantime I will try to come up with something on my own.