#How do I add change Create recipes?
36 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
i want to change the Create andesite casing recipe but I dont know how
KubeJS Create is an addon that will allow you to use KJS scripts with Create more easily.
You can add, remove, and modify recipes with KubeJS. The wiki has a page on that!
If you want to learn how to add recipes to any mod, click the Custom button.
This should do it:
// Remove casing recipes
e.remove({output: 'create:andesite_casing'})
// if you just want to switch the applied item
e.recipes.create.item_application(['create:andesite_casing'],['#forge:logs', 'create:andesite_alloy'])
I don't have minecraft up right now, so i can't confirm that the item names are correct, but you get the idea. Use /kubejs hand to get the right names and tags.
If you want to have some other way to craft it listen to the bot and check the recipe section of the wiki.
That answer does require the create kubejs addon btw.
I tried entering that and it didnt work
??neversay
Never say 'it crashed', 'it errored' or 'it didn't work' without providing the full error message/crash report!
??kjslogs
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.
Paste version of message.txt from @fluid burrow
ReferenceError: "e" is not defined. (server_scripts:script.js#12)
isn't it self explanatory,,,?
just swap e for event
Okay, did it give an error? Did it run fine then not remove the recipe? What do the logs say?
Oh, wait. Just do what the bot said my guy.
bot said?
since when am I a bot...?
Oh shit my bad, sorry misread and thought that Gnome sent your message. 👍
nw :D
Correction, do what @plucky timber said. Easy fix.
Ok thank you
Thanks dude, sorry Im very new to this
nw :D
its still giving the same error, even when I replace the e with event
Idk what that is 🤷♂️
So I dunno
sigh
Srry Im dum 😭
What is a recipes event listener
Put this in your server scripts file.
onEvent('recipes', event => {
// Code goes in here
})
Maybe stick to following tutorials on the wiki for a little while my guy. https://wiki.latvian.dev/books/kubejs-legacy/page/recipeeventjs
Almost every question you've asked so far is documented somewhere on the wiki. I highly recommend looking at the documentation and where that fails searching the discord for similar questions. There's a lot of helpful folks here who are happy to answer questions, but it's tough to want to help too much when the answers are already well documented.
KubeJS has a learning curve, especially if you don't know JavaScript, so just keep at it and you'll start to pick it up.
Examples
The most basic script to add a single recipe:
onEvent('recipes', event => {
event.shap...
