#I need help to code something
38 messages · Page 1 of 1 (latest)
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.
@lunar glen I tried to go and see the wiki and that's why I'm here and I've already entered on three different servers and they all tell me to go and see the wiki so maybe someone can explain to me instead of trying to understand Chinese
pls
well give us context, you just said you need help, but thats meaningless
this is what i wanted to see
now
my problem is I tried to change a craft whith kubejs but I failed
send code and logs
Please send your server.txt log file.
You can find it here: minecraft/logs/kubejs/server.txt
╰( ͡° ͜ʖ ͡° )つ──☆:・゚˜”°•.˜”°• Many Help •°”˜.•°”˜*
Please provide a description of your issue with as much detail as possible. If you have an issue with a script provide the script. Explain what you can see happening and what you expect to happen. Be specific!
Tell us what is happening, we already know it "doesn't work".
Avoid using words like "it", tell us exactly what "it" is.
Don't assume anyone knows what you are talking about, be specific.
Provide screenshots or video if possible.
Provide the log.
You can write your code in a codeblock by typing it between the codeblock delimiters:
```js
onEvent('recipes', e => {
e.smelting('minecraft:glass', '#forge:sand').xp(.1)
})
```
As an example, :arrow_up: will look like this:
onEvent('recipes', e => {
e.smelting('minecraft:glass', '#forge:sand').xp(.1)
})
send your code here instead of a screenshot
I see the issue
you have event.shape instead of event.shaped
which is also covered in the wiki ^
and if you have just 1 item, why not make it shapeless?
^
not gonna lie if I'd need to use a recipe like this, I'd get annoyed when only the center shot worked
@simple mirage you are my love I m her for nine hours you are the best
onEvent('recipes', e => {
e.remove({output: 'cashcraft:note_100'})
e.shapeless('2x cashcraft:note_50', 'cashcraft:note_100')
})
^
nah it would basically be a shapeless recipe, cuz mc removes the empty rows/columns
thank you very much
didn't know that
noshrink is to stop it from deleting the lines, mirror is to make it onesided
fun fact. I knew about the existence of those, just didn't know what they did
:D
^^
