#kubejs extended crafting

49 messages · Page 1 of 1 (latest)

slim charm
#

Hey there! Working on a Skyblock pack, and hoping to allow for the creation of creative items. Any idea on how to make custom recipes with KubeJS? I already know how to do it with CT, but how does it look for the extended crafting table?

winged umbraBOT
#

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

upper cliff
#

heres an example i wrote for this

obtuse iceBOT
#

[Quote ➤](#1065241481805299732 message) ```js
event.recipes.extendedcrafting.shapeless_table('avaritia:infinity_catalyst', [
'avaritia:neutronium_block',
'avaritia:tin_singularity',
'avaritia:lead_singularity',
'avaritia:silver_singularity',
'avaritia:nickel_singularity',
'avaritia:platinum_singularity',
Item.of('extendedcrafting:singularity', {Id: 'extendedcrafting:vanilla'}),
Item.of('extendedcrafting:singularity', {Id: 'extendedcrafting:assembly'}),
Item.of('extendedcrafting:singularity', {Id: 'extendedcrafting:sky'}),
Item.of('extendedcrafting:singularity', {Id: 'extendedcrafting:twilight'}),
Item.of('extendedcrafting:singularity', {Id: 'extendedcrafting:botania'}),
Item.of('extendedcrafting:singularity', {Id: 'extendedcrafting:integrated'}),
Item.of('extendedcrafting:singularity', {Id: 'extendedcrafting:occult'}),
Item.of('extendedcrafting:singularity', {Id: 'extendedcrafting:noveau'}),
Item.of('extendedcrafting:singularity', {Id: 'extendedcrafting:space'}),
Item.of('extendedcrafting:singularity', {Id: 'extendedcrafting:blood'}),
Item.of('extendedcrafting:singularity', {Id: 'extendedcrafting:crossroads'}),
Item.of('extendedcrafting:singularity', {Id: 'extendedcrafting:enchanted'}),
Item.of('extendedcrafting:singularity', {Id: 'extendedcrafting:immersive'}),
Item.of('extendedcrafting:singularity', {Id: 'extendedcrafting:malum'}),
Item.of('extendedcrafting:singularity', {Id: 'extendedcrafting:fighting'}),
Item.of('extendedcrafting:singularity', {Id: 'extendedcrafting:mekanism'}),
Item.of('extendedcrafting:singularity', {Id: 'extendedcrafting:undergarden'}),
Item.of('extendedcrafting:singularity', {Id: 'extendedcrafting:thermal'}),
Item.of('extendedcrafting:singularity', {Id: 'extendedcrafting:iridium_alloy'}),
Item.of('extendedcrafting:singularity', {Id: 'extendedcrafting:nitro'}),
Item.of('extendedcrafting:singularity', {Id: 'extendedcrafting:garmonbozia'}),
Item.of('extendedcrafting:singularity', {Id: 'extendedcrafting:red'}),
Item.of('extendedcrafting:singularity', {Id: 'extendedcrafting:rose_quartz'}),
Item.of('extendedcrafting:singularity', {Id: 'extendedcrafting:compressed'}),
'avaritia:ultimate_stew'
])

upper cliff
#

you basically use event.recipes.extendedcrafting.shapeless_table for shapeless recipes and event.recipes.extendedcrafting.shaped_table for shaped recipes

#

the rest is exactly the same as normal shaped/shapeless

slim charm
#

i see, thanks!

upper cliff
#

^^

slim charm
#

e.recipes.extendedcrafting.shaped_table('kubejs:atmadditions/patrick_star', [
' B ',
' BCA ',
'BBBGCABBB',
'ACGCGGGCA',
' AAGGGBA ',
' EDDDE ',
' EFEDEFE ',
'BEDD DDEB',
'AAA AAA'
], {
A: 'minecraft:magenta_concrete',
B: 'minecraft:pink_concrete',
C: 'minecraft:pink_concrete_powder',
D: 'minecraft:green_concrete',
E: 'minecraft:green_concrete_powder',
F: 'minecraft:lime_concrete',
G: 'minecraft:magenta_concrete_powder'
}).id('kubejs:atmadditions/patrick_star')

#

i tried this version, but for some reason it doesnt show up in my jei

#

well not just in the jei, its not craftable at all

upper cliff
#
e.recipes.extendedcrafting.shaped_table('kubejs:atmadditions/patrick_star', [
    '    B    ',
    '   BCA   ',
    'BBBGCABBB',
    'ACGCGGGCA',
    ' AAGGGBA ',
    '  EDDDE  ',
    ' EFEDEFE ',
    'BEDD DDEB',
    'AAA   AAA'
  ], {
    A: 'minecraft:magenta_concrete',
    B: 'minecraft:pink_concrete',
    C: 'minecraft:pink_concrete_powder',
    D: 'minecraft:green_concrete',
    E: 'minecraft:green_concrete_powder',
    F: 'minecraft:lime_concrete',
    G: 'minecraft:magenta_concrete_powder'
  }).id('kubejs:atmadditions/patrick_star')
#

hmm

#

are the item IDs correct?

#

mainly kubejs:atmadditions/patrick_star?

slim charm
#

yeah kinda doubting it right now

#

its weird, cuz the it should be kubjs:patrick_star since i tried /give ingame with this exact id

upper cliff
#

hold the item in your hand and do /kjs_hand
or just turn on advanced tooltips F3+H and check the ID on the tooltip of the item

slim charm
#

yeah its kubejs:patrick_star

#

i even tried a normal crafting table recipe with the patrick_star and still no success

upper cliff
#

show me your server.txt

#

/logs/kubejs/server.txt

slim charm
obtuse iceBOT
#

Paste version of server.txt from @slim charm

upper cliff
#

oh god

#

theres an insane amount of errors here

#

open the link given by gnome and you should deal with all the red lines first

#

its probably not running because it errors at something before this recipe

slim charm
#

i see, thought i could just ignore them lol

#

didnt think it will affect the patrick star too

upper cliff
#

when theres an error, it stops

#

it cannot continue

slim charm
#

what about all the item.empty recipes?

#

how can i fix those

#

beginning from line 254

upper cliff
#

that means theres something wrong with ID you provided in the output of a recipe

#

usually a typo, or an ID that doesnt exist

slim charm
obtuse iceBOT
#

Paste version of server_1.txt from @slim charm

slim charm
obtuse iceBOT
#

Paste version of server_2.txt from @slim charm

vocal bronze
#

i'm pretty sure they just moved over all the recipes from ATM to their modpack
can't really do that without a lot of errors unless you have the exact same content which is just outright copying

slim charm
#

yeah thats basically what we did, theres nothing outright about it, since we just use it as a private modpack to play, nothing we wanna publish. We copied most of the mods since we wanted to make a more pvp friendly atm

slim charm
obtuse iceBOT
#

Paste version of crash-2023-02-09_21.08.48-fml.txt from @slim charm

winged umbraBOT
#

@slim charm Unresolved thread still hasn't been closed! If your question was answered, please close this post with </ticket close:1054771505520717835> command!

winged umbraBOT
#

@slim charm Unresolved thread still hasn't been closed! If your question was answered, please close this post with </ticket close:1054771505520717835> command!

winged umbraBOT
#

@slim charm Unresolved thread still hasn't been closed! If your question was answered, please close this post with </ticket close:1054771505520717835> command!