#I need help to code something

38 messages · Page 1 of 1 (latest)

vale groveBOT
#

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

hushed pebbleBOT
#

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.

proven void
#

@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

lunar glen
#

well give us context, you just said you need help, but thats meaningless

proven void
#

this is what i wanted to see

#

now

#

my problem is I tried to change a craft whith kubejs but I failed

simple mirage
#

send code and logs

hushed pebbleBOT
#

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.

proven void
hushed pebbleBOT
#

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)
})
simple mirage
#

send your code here instead of a screenshot

proven void
simple mirage
#

I see the issue

lunar glen
#

thats note code, nor logs...

#

it would go a lot faster if you send what we ask for :v

simple mirage
#

you have event.shape instead of event.shaped

lunar glen
#

which is also covered in the wiki ^

#

and if you have just 1 item, why not make it shapeless?

simple mirage
#

^

#

not gonna lie if I'd need to use a recipe like this, I'd get annoyed when only the center shot worked

proven void
#

@simple mirage you are my love I m her for nine hours you are the best

lunar glen
#
onEvent('recipes', e => {
  e.remove({output: 'cashcraft:note_100'})
  e.shapeless('2x cashcraft:note_50', 'cashcraft:note_100')
})
simple mirage
#

^

lunar glen
proven void
#

thank you very much

lunar glen
#

leme find something

simple mirage
#

fun fact. I knew about the existence of those, just didn't know what they did

lunar glen
#

:D

simple mirage
#

probably because I didn't need to use them

#

thank you :D

lunar glen
#

^^