#Recipe Tweaks: I'm just really dumb and need newbie help

23 messages · Page 1 of 1 (latest)

shadow dock
#

I'm trying to tweak a modpack for my friends and I and starting really simply just adding a vanilla recipe and I still get errors.
ServerEvents.recipes(event => {
event.shaped('16x forge:rods/wooden', [
'L',
'L'
], {
L: 'minecraft:logs'
})
})
I've also tried minecraft:sticks but still get the same errors
Thanks you for your time

peak ravenBOT
#

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

shadow dock
#

Recipe Tweaks: I'm just really dumb and need newbie help

meager sigilBOT
#

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, this will look like such:

onEvent('recipes', e => {
  e.smelting('minecraft:glass', '#forge:sand').xp(.1)
})
wary sluice
#

youre missing a # before forge:rods/wooden

#
ServerEvents.recipes(event => {
  event.shaped('16x #forge:rods/wooden', [
    'L',
    'L'
  ], {
    L: 'minecraft:logs'
  })
})
shadow dock
#

Thank you, I was looking further too and noticed 2 different ways of adding recipes listed in the Kubejs6 document, Should I be using the event.shaped( Item.of('minecraft:stone', 3), // arg 1: output

wary sluice
#

not sure i understand the question hmmm

#

you can also shorten that to 3x minecraft:stone

shadow dock
#

So both achieve the same result?

#

I was just making sure I wasn't using an outdated format

shadow dock
#

wait can i reopen this

wary sluice
#

yiz

shadow dock
#

Sweet, so the error im getting now is that 'L' isnt a valid ingredient

#

to be a little more verbose, "failed to create recipe for type 'kubejs:shaped':minecraft:logs with key 'L' is not a valid ingredient!"

wary sluice
#

oh its another tag

#

so you need #

shadow dock
#

okay, I see, regardless if its vanilla or forge it has the # for tag?

wary sluice
shadow dock
#

Okay thank you again for your help

wary sluice
#

^^