#Recipes not registering until after first reload

26 messages · Page 1 of 1 (latest)

mild sky
#

For some reason, every recipe loads properly besides this set of recipes, which only works after a reload:

// Iron chest recipe buff
event.replaceInput({ mod: 'ironchest' }, 'minecraft:copper_ingot', 'minecraft:copper_block');
event.replaceInput({ mod: 'ironchest' }, 'minecraft:iron_ingot', 'minecraft:iron_block');
event.replaceInput({ mod: 'ironchest' }, 'minecraft:gold_ingot', 'minecraft:gold_block');
event.replaceInput({ mod: 'ironchest' }, 'minecraft:diamond', 'minecraft:diamond_block');
event.replaceInput({ mod: 'ironchest' }, 'minecraft:obsidian', 'minecraft:obsidian');

Is this something that needs higher priority? What's the right way to fix this?

arctic berryBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

steep galleon
#

I am having a very similar problem. A lot of recipes are inaccessible to me, until after I do a /reload.

For instance, I havent done anything with planks, or the vanilla crafting table -- but when I load the game, I am unable to click on it. When I /reload and update all my scripts, it becomes clickable.

Same problem, but a lil different.

plush orchid
#

usually stuff not working till after a reload is tag related

mild sky
plush orchid
#
Ingredient.of('#mod:tag').itemIds.forEach(itemId => console.log(itemId))

in a recipe event will log nothing on first load cause recipes load before tags

#

replaceInput and replaceOutput with tags are also affected, iirc

mild sky
#

it'd be amazing to be able to queue these specific recipe changes after tags load

plush orchid
mild sky
#

i'll try it

steep galleon
#

@mild sky if you're still having issues Lexxy gave me a line of code to add to server scripts.

ServerEvents.loaded(e => e.server.runCommandSilent('reload'))

said you can add that anywhere and it should handle the tag issue, but the tag issue is getting fixed

mild sky
steep galleon
#

Yeah, hopefully a fix comes soon enough. I'm luckily not utilizing a ton of scripts yet, fresh into building the pack -- so it's not bad for me (yet) hah

mild sky
#

yeah, i've got 12k recipes to reload though haha 😅

#

modernfix makes it reload a lot faster than usual at least

#

still, it's a 15-20 second or so delay every world boot

steep galleon
#

good luck! Lol, is the pack you're working on on curseforge?

oblique cliff
mild sky
#

good luck to you too!

arctic berryBOT
#

@mild sky Unresolved thread still hasn't been closed! If your question was answered, please close this post with </ticket close:1054771505520717835> command!

mild sky
#

this is solved in 1.20, right? i think lat fixed this