#Recipe remove by id not working?

12 messages · Page 1 of 1 (latest)

wet pilot
#

I'm trying to remove a TFC alloying recipe per the following code:

event.remove({id: 'tfc:alloy/weak_blue_steel'})```

However, I get the following error:
```js
Not a JSON Object: [{"metal":"tfc:black_steel","min":0.5,"max":0.55},{"metal":"tfc:steel","min":0.2,"max":0.25},{"metal":"tfc:bismuth_bronze","min":0.1,"max":0.15},{"metal":"tfc:sterling_silver","min":0.1,"max":0.15}] (server_scripts:recipes/tfc.js#55)

Any ideas why the issue?

misty ruinBOT
#

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

marsh ermine
#

I don't think your remove is the problem

#

Can you send your full script please?

mighty sonnet
limber lindenBOT
#

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

ornate plover
#

problem looks not related to remove, or at least not this line

#

show full .js script

wet pilot
#

I've been digging through and can't find the issue if I copy and paste this script into a new instance, which means it might be originating from a different file in my scripts. See the full file here:

limber lindenBOT
#

Paste version of tfc.js from @wet pilot

ornate plover