#remove input

102 messages · Page 1 of 1 (latest)

lethal notch
#

Hello I'm having some trouble with changing recipe with Kubejs and was woundering if I could get help?

Using:
Kubejs
KubeJS Immersive Engineering

I'm having issues using event.recipes.immersiveengineeringArcFurnace

event.recipes.immersiveengineeringArcFurnace(['forge:ingots/nickel', 'forge:ingots/nickel'], 'forge:ores/nickel', [], 'thermal:slag')

but when I reload it says that immersiveengineeringArcFurnace requires input

small hornetBOT
#

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

hybrid geode
#

send your server.log

brave tulipBOT
#

You can find your KubeJS server log in /minecraft/logs/kubejs/server.log.
If you are on 1.18 or below it will be called server.txt.
Please send it if asked, as it contains helpful information.

lethal notch
brave tulipBOT
#

Paste version of server.log from @lethal notch

hybrid geode
languid sapphire
#

you just dont inlcude it

#

event.recipes.immersiveengineeringArcFurnace(['forge:ingots/nickel', 'forge:ingots/nickel'], 'forge:ores/nickel', [], 'thermal:slag')

#

uh

#

missing # ?

#

in tags

hybrid geode
#

i missed that hmmm

lethal notch
#

im a silly goose

languid sapphire
#

lol

lethal notch
#

thank you

hybrid geode
#

but off-topic, what the hell is this recipe schema thing

languid sapphire
#

wdym

hybrid geode
#

wdym wdim

languid sapphire
#

its KJS 6.1

#

recipes are schemas now

hybrid geode
#

i can see that

#

but doesnt mean anything to me xD

languid sapphire
#

its for mod devs

#

its pretty simple

#

each key is a json key

#

some preexisting components like ItemComponents and then some made by IE addon like energy

#

which is really just number component

hybrid geode
#

is this the order you do it in JS?

languid sapphire
#

it will auto-generate constructors from schema in that order they're added. optional values at end, so they can be skipped

#

ye

hybrid geode
#

=.=

languid sapphire
#

slag, time, energy are optional

hybrid geode
#

how the hell does it know how to process all that info?!

languid sapphire
#

so if you have RIASTE full params, it will generate these constructors

RIASTE
RIAST
RIAS
RIA
#

since last 3 are all optional

languid sapphire
#

thats why 6.1 is so good of an update

hybrid geode
languid sapphire
#

this is all you need to do as modder to support

languid sapphire
#

and this lets Probe auto-generate all recipe types properly

#

since it now knows what is optional, which argument is which type etc

hybrid geode
languid sapphire
#

sure

lethal notch
#

ok small thing its still outputing IE slag not Thermal

hybrid geode
languid sapphire
#

if key has either defaultOptional() or optional(val) chanined

#

then its optional

hybrid geode
#

only 1 has it tho hmmm

languid sapphire
#

energy key is defined in common place

#

because its the same for all recipes

#

to not waste code space

hybrid geode
#

o.o

languid sapphire
#

I recommend looking at this example, or other vanilla recipes

#

to understand it better

#

cooking recipe requires a special component because result is serialized differently on forge and fabric

hybrid geode
#

how do you do ingredient stacks?

languid sapphire
#

thats just an InputItem

hybrid geode
#

i see

languid sapphire
languid sapphire
#

you sure the recipe replacement worked?

#

or err

#

new recipe

#

did you add # to last part?

#

because thats probably not a tag

hybrid geode
#

show me your current code

lethal notch
#

event.recipes.immersiveengineeringArcFurnace(['forge:ingots/nickel'], '#forge:ores/nickel', [], 'thermal:slag')

hybrid geode
#
event.recipes.immersiveengineeringArcFurnace(['forge:ingots/nickel'], '#forge:ores/nickel', [], 'thermal:slag')
#

do you have any mods that unify recipes

lethal notch
lethal notch
hybrid geode
#

im not sure how AU works, but it MAY try to unify it

#

event.recipes.immersiveengineeringArcFurnace(['forge:ingots/nickel'], '#forge:ores/nickel', [], 'thermal:slag')

#

whoops

#

wrong thing

brave tulipBOT
#

[Quote ➤](#off-topic message) does AU unify recipes added by KJS?

cloud talon
hybrid geode
#

lol

hybrid geode
lethal notch
#

I'm going to try something rq

hybrid geode
#

wtf is going on with my pc

brave tulipBOT
#

[Quote ➤](#off-topic message) AU runs after KJS tag event and before KJS recipe event

lethal notch
#

I saw in another modpack they just disabled it as an output

hybrid geode
#

sounds like a mod is interering with the recipes

lethal notch
#

its weird becasue its working with the blast furnace

#

event.recipes.immersiveengineeringBlastFurnace('mekanism:ingot_steel','minecraft:iron_ingot','thermal:slag')

#

OK

#

OK

#

OK

#

I got it

hybrid geode
#

what is it?

lethal notch
#

In almost unified I creaded a tag for slag and it worked

#

I get there in the end

#

Thank you all so much for the help

#

got my brain thinking now