#Custom recipes failing
41 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
Paste version of message.txt from @pallid summit
quick tip
instead of Item.of('minecraft:lantern', 1) just write 'minecraft:lantern'
Please send your KubeJS server log. It can be found at /minecraft/logs/kubejs/server.log.
If you are on 1.18 or 1.16 it will be called server.txt.
Please send the file directly, without links or snippets.
noted
Paste version of server.log from @pallid summit
its saying the IDs like supplementaries:red_candle_holder dont exist
is it candle_holder_red?
here you go:
ServerEvents.recipes(event => {
event.shaped('minecraft:lantern', [
' N ',
'NTN',
'NNN'
], {
N: 'minecraft:iron_nugget',
T: 'minecraft:torch'
})
event.shaped('minecraft:chain', ['N', 'N', 'N'], {
N: 'minecraft:iron_nugget'
})
event.shaped('supplementaries:candle_holder', [
'NCN',
' N '
], {
N: 'minecraft:iron_nugget',
C: 'minecraft:candle'
})
colors = ['red', 'orange', 'yellow', 'white', 'pink', 'gray', 'light_gray', 'cyan', 'blue', 'lime', 'green', 'purple', 'magenta', 'black', 'light_blue']
colors.forEach(color => {
event.shaped(`supplementaries:candle_holder_${color}`, [
'NCN',
' N '
], {
N: 'minecraft:iron_nugget',
C: `minecraft:${color}_candle`
})
})
})
a much shorter script
OMG !!
thank you
i was wondering if something like that was doable
this is awesome thank you

it's not working looks like
could it be that {color} should be {colors} ?
nono
Paste version of server.log from @pallid summit
ah fuck
change this
colors = ['red', 'orange', ...
to this
let colors = ['red', 'orange', ...
too much python at work

