#How do I add change Create recipes?

36 messages · Page 1 of 1 (latest)

still obsidian
#

Very new to Kube, pls help

knotty oxideBOT
#

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

still obsidian
#

i want to change the Create andesite casing recipe but I dont know how

grim sinewBOT
#

KubeJS Create is an addon that will allow you to use KJS scripts with Create more easily.

grim sinewBOT
#

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.

hollow perch
#

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.

still obsidian
plucky timber
grim sinewBOT
# plucky timber ??neversay

Never say 'it crashed', 'it errored' or 'it didn't work' without providing the full error message/crash report!

plucky timber
#

??kjslogs

grim sinewBOT
# plucky timber ??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.

still obsidian
grim sinewBOT
#

Paste version of message.txt from @fluid burrow

plucky timber
#

ReferenceError: "e" is not defined. (server_scripts:script.js#12)

#

isn't it self explanatory,,,?

#

just swap e for event

hollow perch
#

Oh, wait. Just do what the bot said my guy.

plucky timber
#

since when am I a bot...?

hollow perch
hollow perch
still obsidian
still obsidian
plucky timber
still obsidian
#

its still giving the same error, even when I replace the e with event

plucky timber
#

...did you put it inside of a recipes event listener?

still obsidian
#

So I dunno

plucky timber
#

sigh

still obsidian
#

Srry Im dum 😭

still obsidian
#

What is a recipes event listener

hollow perch
#

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.