#Prevent mod recipe change

32 messages · Page 1 of 1 (latest)

upbeat ore
#

I'm using a mod that modifies recipes for essentially all vanilla gear (armor, tools, weapons, etc) that uses copper or iron.

Is there a way to "prevent" or "revert" the recipe changes without manually re-adding each recipe? The mod "removes" about 150 recipes

brisk radishBOT
#

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

quiet stump
#

what is the mod?

upbeat ore
quiet stump
#

can't easily spot a directory you can just nuke to fix this

#

I think you are gonna have manually do it

#

you can easily make it slightly automated tho

upbeat ore
#

can't I nuke data/minecraft/recipe?

quiet stump
#

so that will delete every minecraft recipe

upbeat ore
upbeat ore
#

So, there isn't a simpler way I presume?

upbeat ore
#

bump

quiet stump
#

if you find the ones you want added back and just add those into the kubejs/data/minecraft/recipes folder it should fix your issue

upbeat ore
#

So that would mean readding them manually

quiet stump
#

I mean yes but all you need to do is copy paste the files

runic fulcrum
radiant patrolBOT
upbeat ore
#

I see

upbeat ore
#

Can I use regex for this? or perhaps a loop with foreach?

runic fulcrum
upbeat ore
#

I saw, but it doesn't have any event.disable() inside a loop or using foreach so I'm not sure how exactly go about it

#
KubeJSTweaks.beforeRecipes(event => {
    event.dumpErroringRecipes() // will dump a markdown at local/kubejstweaks/erroring_recipes.md
    event.getEntry("@overgeared")
    .forEach(entry => {
        event.disable(entry)
    })
})

I did this but it didn't really work

#

Also this but no luck

KubeJSTweaks.beforeRecipes(event => {
    event.disable("/overgeared:.*/")
})
runic fulcrum
#

regex here should be naked strings, eg just /overgeared:.*/, no quotes
and you just do

event.disable(/overgeared:.*/) //OR
event.disable("@overgeared") //OR
event.disable([/overgeared:.*/, "somemod:id", "anothermod:id", /anotherregexexample:.*/])

examples 1 & 2 both do what you want, though I'd imagine the latter, using the @overgeared is more efficient, but that'd also depend on how the recipes are stored and looked up
as mentioned, you can just put it all into an array and one-line everything you need

upbeat ore
#

Ok then, I guess the mod is doing something weird because This is the current script

KubeJSTweaks.beforeRecipes(event => {
    event.disable("@overgeared")
    event.disable(/overgeared:.*/)
})

I reopened minecraft, reloaded kubejs scripts and did /reload, but the items are still modified

#

That, or I'm stupid which is most likely the case

runic fulcrum
#

2x of [damaged item] -> repaired item is a vanilla mechanic afaik

#

its a special recipe thing, dunno if you can disable that

upbeat ore
#

Oh yeah, I meant that if the mechanic is disabled, it should show the normal recipe yknow