I don't know what I am doing. #185
-
I've added a mod to a mod pack and one of it's recipes interferes with another recipe. I wanted to remove this recipe and change it to something else. I've read the wiki and looked at samples and what I have written doesn't work. I have double and triple checked the id's and they are correct. There are no errors in the logs, (I started with some errors pertaining to my coding but as far as I can tell I've corrected them). Can someone please help me understand my failure. I have the .js located in the server scripts folder. Here is the code I wrote: onEvent('recipes', event => { The original recipe remains and continues to interfere. I have also reloaded the server scripts inside the game. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Here's your problem:
Those []s should not be there.
Here's a removal script that should be less unwieldy to use than event.remove:
If you use this script, make sure to make another for your recipes. It's good practice to keep them separate IMO. |
Beta Was this translation helpful? Give feedback.
Here's your problem:
Those []s should not be there.
Here's a removal script that should be less unwieldy to use than event.remove: