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
#Recipe Tweaks: I'm just really dumb and need newbie help
23 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
Recipe Tweaks: I'm just really dumb and need newbie help
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)
})
youre missing a # before forge:rods/wooden
ServerEvents.recipes(event => {
event.shaped('16x #forge:rods/wooden', [
'L',
'L'
], {
L: 'minecraft:logs'
})
})
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
So both achieve the same result?
I was just making sure I wasn't using an outdated format
Ticket closed!
wait can i reopen this
yiz
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!"
okay, I see, regardless if its vanilla or forge it has the # for tag?
Ticket closed!
yes, thats what tells it that its a tag instead of ID
Okay thank you again for your help
^^
