BetterRecipeBook icon indicating copy to clipboard operation
BetterRecipeBook copied to clipboard

Client Lags when using crafting table with datapacks that add custom recipes

Open BreadMoirai opened this issue 2 years ago • 7 comments

Client Lags when using crafting table

This occurs when the server has datapacks installed that add custom recipes to the crafting table. See example Stardew Valley Datapack

Reproduce

Install datapack Stardew Valley Datapack Open Crafting Table

Environment

Minecraft 1.18.2 BRB Fabric 1.5.6

Graphics Card: Radeon RX 580x RAM allocated: 8 GB Processor: i5-6600K

BreadMoirai avatar Apr 18 '22 22:04 BreadMoirai

thank you for the amazing issue, ill look into it. Potion loading is terrible but crafting table shoulnt be too bad..

mrshmllow avatar Apr 19 '22 00:04 mrshmllow

Hello. I have never used datapacks before, so it took me a bit to get to this.

Unfortunately the mod does lag when you use a datapack, because there is no way for the mod to "pre-load" the recipes as it has no way for it to know when the datapack will be enabled-disabled or what datapacks even exist. It only lags once and i think its okay to live with. Its not meant to be competitive with JEI and using it with other mods is just a bonus.

However using the stardew pack it does fill the book full of knowledge books, i dont know if thats a stardew thing or if its a mod bug thing

mrshmllow avatar Apr 23 '22 07:04 mrshmllow

Understandable. I guess I must have not waited long enough for it to stop lagging lol. Stardew datapack custom recipes will output a knowledge book and then detects that with a recipe unlocked advancement and replaces that knowledge book with the correct item since there's no way to use custom nbt in the vanilla crafting table.

The knowledge books do not show up in the vanilla crafting book. You may just have all recipes unlocked option turned on since those recipes should always be locked

BreadMoirai avatar Apr 23 '22 19:04 BreadMoirai

on my computer it only lags for a second. How long does yours? A more appropriate word would be hang

mrshmllow avatar Apr 23 '22 23:04 mrshmllow

My Minecraft application will hang for about 20 seconds.

BreadMoirai avatar Apr 23 '22 23:04 BreadMoirai

Every time?

mrshmllow avatar Apr 24 '22 00:04 mrshmllow

Will hang every time I open a world and then a crafting table.

BreadMoirai avatar Apr 24 '22 03:04 BreadMoirai