#Prevent mod recipe change
32 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
what is the mod?
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
can't I nuke data/minecraft/recipe?
so that will delete every minecraft recipe
I looked in their github, https://github.com/phuccom000/Overgeared/tree/master/src/main/resources/data/minecraft/recipes, but it doesn't seem like they are overriding the actual mc recipes using the data
So, there isn't a simpler way I presume?
bump
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
So that would mean readding them manually
I mean yes but all you need to do is copy paste the files
You can use KubeJS-Tweaks to disable datapack recipes from being read
Uncandango is the dev, and he showcases how to disable erroring recipes here: https://discordapp.com/channels/303440391124942858/1438558292992589834/1438600082747297945
But you can just do the same with the recipes you want to disable from OverGeared, as long as you can get hold of the recipe-IDs
[➤](#1438558292992589834 message)
You can use KubeJS Tweaks to fix that
https://github.com/pietro-lopes/KubeJSTweaks/wiki/Server-Events-(server_scripts)#beforerecipes
check some Real examples from ATM10 and 10sky
if you just don't bother with that recipe, just do:
KubeJSTweaks.beforeRecipes(event => {
event.dumpErroringRecipes() // will dump a markdown at local/kubejstweaks/erroring_recipes.md
event.disable(["your:recipe_id_here","other:here_too"])
})
I see
Can I use regex for this? or perhaps a loop with foreach?
The link I posted does state that beforeRecipes accepts
- Exact id: "modid:path"
- Mod filter: "@modid" → all recipes in that namespace
- Regex: /.../
- List: list/array of any of the above
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:.*/")
})
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
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
2x of [damaged item] -> repaired item is a vanilla mechanic afaik
its a special recipe thing, dunno if you can disable that
Oh yeah, I meant that if the mechanic is disabled, it should show the normal recipe yknow