#Is it impossible to remove Tinkers recipes?

35 messages · Page 1 of 1 (latest)

pulsar bison
#

I tired removing a recipe from Tinkers using this script

ServerEvents.recipes(event => { 
    event.remove({ id: 'tconstuct:smeltery/melting/clay/brick'})
});

However, it simply doesn't work, the recipe is still there, is it impossible to remove Tinkers' recipes with KubeJS? Is it possible via datapack?

livid bladeBOT
#

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

pulsar bison
#

it's in the server_scripts btw

worldly quartzBOT
#

You can find your KubeJS server log in /minecraft/logs/kubejs/server.log.
If you are on 1.18 or 1.16 it will be called server.txt.
Please send it if asked, as it contains helpful information.

pulsar bison
#

when I get back home I'm gonna send it

pulsar bison
maiden sail
flat jewel
#

this doesn't change the fact that the remove script doesn't work

pulsar bison
#

thanks

flat jewel
#

or well I haven't tried but I would be surprised if it did

#

also that mod is 1.18 only

#

not 1.19

flat jewel
pulsar bison
#

I'm at work rn

pulsar bison
worldly quartzBOT
#

Paste version of server.log from @pulsar bison

pulsar bison
#

?

ornate wolf
#

[21:24:41] [ERROR] ! script.js#33: Tried to register event handler 'WorldgenEvents.remove' for invalid script type SERVER! Valid script types: [STARTUP]
this error might not be helping

astral ruin
pulsar bison
#

I already removed this one

#

I'll check if it's working by the morning

pulsar bison
#

removed the world gen event from server_scripts and the recipe is still there and still works

#

entire script btw

PlayerEvents.advancement("bosses_of_mass_destruction:adventure/night_lich_defeat", event => {
event.server.runCommandSilent("/gamestage remove @a nightmare")
})

PlayerEvents.advancement("critters_and_cryptids:crittersand_cryptids", event => {
event.server.runCommandSilent("/enhancedcelestials setLunarEvent enhancedcelestials:super_blue_moon")
})

PlayerEvents.advancement("critters_and_cryptids:crittersand_cryptids", event => {
event.server.runCommandSilent("/time set midnight")
})

LootJS.modifiers((event) => {
    event.addBlockLootModifier("minecraft:chest").removeLoot("minecraft:iron_ingot");
});

LootJS.modifiers((event) => {
    event.addBlockLootModifier("minecraft:chest").removeLoot("minecraft:diamond");
});

LootJS.modifiers((event) => {
    event.addBlockLootModifier("minecraft:chest").removeLoot("minecraft:torch");
});

LootJS.modifiers((event) => {
    event.removeGlobalModifier("@useless_sword");
});
ServerEvents.recipes(event => { 
    event.remove({ id: 'tconstuct:smeltery/melting/clay/brick'})
});
untold hull
#

greatest minds on the planet came together and all failed to see the issue

#

the namespace is wrong

#

you're targeting a recipe from "tconstuct"

#

which - correct me if I'm wrong - should be "tconstruct"

pulsar bison
#

no way 😭

#

I'll fix this and see if it works

#

it works now

#

I can't believe it was just a typo lol

#

thanks