#Ex Nihilo Heat

137 messages · Page 1 of 1 (latest)

timid flare
#

Hey there, having trouble making Ex Nihilo Heat recipes. When doing it through server_scripts it gives me an error, but if I just do a regular datapack json it works fine.
Not Working:

    event.custom({
        type: 'exnihilosequentia:heat',
        block: 'minecraft:blast_furnace',
        amount: 10,
        state: {
            lit: 'true'
        }
    })
})```
Working:
```{
    "type": "exnihilosequentia:heat",
    "block": "minecraft:blast_furnace",
    "amount": 10,
    "state": {
        "lit": "true"
    }
}```
They're both basically the same recipes, so I'm not sure why it breaks.
slate stratusBOT
#

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

azure raptor
#

aren't recipes done withonEvent('recipes', event => {

timid flare
#

No, in 1.19 it's ServerEvents.recipes(event =>{

azure raptor
#

on the legacy wiki mb

timid flare
#

No probs

jovial perchBOT
#

Please send your server.txt log file.
You can find it here: minecraft/logs/kubejs/server.txt

timid flare
jovial perchBOT
#

Paste version of server.txt from @timid flare

lament lark
#
server_scripts:general/msagri/rubber.js:9: Failed to create recipe for type 'kubejs:shaped': 4x ftbic:rubber is not a valid result!

server_scripts:general/sequentia/Ex Nihilo/heat.js:2: Failed to create recipe for type 'exnihilosequentia:heat' with args [{"type":"exnihilosequentia:heat","block":"minecraft:blast_furnace","amount":10.0,"state":{"lit":"true"}}]: java.lang.IncompatibleClassChangeError: Method 'net.minecraft.world.item.ItemStack dev.latvian.mods.kubejs.item.ItemStackJS.of(java.lang.Object)' must be InterfaceMethodref constant
#

what the fuck hmmm

timid flare
#

Not sure what that means. I already know about the first error

azure raptor
#

that seems so strange

#

what's causing the first one

#

by that I mean server_scripts:general/msagri/rubber.js:9: Failed to create recipe for type 'kubejs:shaped': 4x ftbic:rubber is not a valid result!

timid flare
#

My custom recipe making FTBIC rubber from MSA essence. The mod isn't updated yet to 1.19, so it's just kinda there. It was ported when we moved away from 1.16

azure raptor
#

ah, that explains it

timid flare
#

He's been hanging out, don't worry about it

#

I've found that Ex Nihilo recipes get so finicky, it's getting really annoying

naive gazelle
#

Does it work without the " on true?

timid flare
#

It doesn't work even without the blockstate part

lament lark
#

im looking at the mod's repo, i cant find anything wrong with what snippet here

#

repo example:

{
  "type": "exnihilosequentia:heat",
  "amount": 3,
  "block": "minecraft:furnace",
  "state": {
    "lit": "true"
  }
}
timid flare
#

Not the exact one I was looking at, but pretty much the same

willow crystal
#

Nova made full kjs compat

lament lark
#

nova?

timid flare
#

Sequentia dev

lament lark
#

oh there you go

timid flare
#

Also the kjs addon for that isn't updated, so...

lament lark
#

its not an addon by the looks of it

willow crystal
#

the add-on is a part of nihilo itself

lament lark
#

its embedded

timid flare
#

Oh, interesting. I thought it was an addon

azure raptor
#

no it's in the source code for the actual mod in github according to this

#

and this is main

#

and older than latest version on curseforge

#

so it should work

timid flare
#

How would I make it with bare kjs then?

willow crystal
#
event.recipes.exnihilosequentia.heat(block, amount, blockstate)
#

something like that

timid flare
#

Not really relevant. I already know them all

willow crystal
#

try

event.recipes.exnihilosequentia.heat("minecraft:blast_furnace", 10, {lit:true})
timid flare
#

Nope, gives me all the same errors

azure raptor
#

what mods do you have enabled?

timid flare
#

Many

azure raptor
#

just in case for some reason that affects anything...

timid flare
#

176

azure raptor
#

try testing just with ex nihilo sequentia and kubejs

#

that's what I would do

timid flare
#

I'll try that in a new instance

azure raptor
#

good idea

timid flare
#

I'm sure disabling everything would break something 😛

azure raptor
#

also might be wise to add the addon related tag to this

lament lark
#

i doubt that will do anything >w>

azure raptor
#

same here but it's worth a try just to make sure it is definitely a mod issue/ something really obscure

timid flare
#

Sure thing

#

I'll do it when I'm done checking this with just the 4 mods

lament lark
#

just to make sure, do you have all your mods updated (the ones relevant to this)

timid flare
#

No

lament lark
willow crystal
#

I'm going to guess this is an error in the plugin itself.... because serialize and deserialize are defined, kjs tries to use them on the recipe, even the manual ones.... someone who knows the add-ons better and can see what's off would have a better answer

lament lark
#

first rule in debugging, update everything

azure raptor
timid flare
#

Sorry, you said relevant

willow crystal
#

ITS PART OF THE MOD

azure raptor
#

they were bypassing it before though

willow crystal
#

them adding a custom recipe is still triggering the deserialize

lament lark
willow crystal
#

event.custom({recipe}) will still try to use methods on a recipe type if they're defined

timid flare
#

It shows no errors, but also no fluid

lament lark
timid flare
#

Data

lament lark
timid flare
#

Fair, one sec

lament lark
#

lat should really just remove the ingame chat completely for this

timid flare
#

That's all there is

lament lark
#

o_O

timid flare
#

Confusion

lament lark
#

that means nothing is being loaded

azure raptor
#

enable logging non-erroring recipes

lament lark
#

if thats the last line

timid flare
azure raptor
#

yup

timid flare
#

Is that a Kube config?

azure raptor
#

lemme find it in the docs 1 sec...

#

read that

#

top part

#

settings.logAddedRecipes = true

timid flare
#

Alright lemme generate that rlq

azure raptor
#

wait why is that the legacy wiki again...

lament lark
#

those lines are removed from 1.19

azure raptor
#

I searched on the not legacy one

timid flare
azure raptor
lament lark
#

:D

#

also in general, a lot of the info on the legacy pages still apply in 1.19

azure raptor
timid flare
#

So what now? Just report it?

azure raptor
#

that's what I'd advise doing

lament lark
#

i would recommend opening an issue with them, and temporarily using it as a datapack recipe

timid flare
#

Alright. Thanks peoples!

slate stratusBOT
#

Ticket closed!

lament lark
#

quick thing

lament lark
#

hideServerScriptErrors=false

#

i think its this one

azure raptor
lament lark
#

its a bit weird bcePensiveThink

timid flare
#

what's that got to do with anything?

lament lark
#

yeye local/kubejsdev.properties

marble quarry
azure raptor
#

And I was wrong because I had been using the legacy wiki for my own work

marble quarry
azure raptor
#

And it's already been closed

azure raptor
marble quarry
azure raptor
#

It says in the ticket tags...

marble quarry
marble quarry
azure raptor
#

For future reference make your own ticket

marble quarry
#

ok...

azure raptor
#

Also I got no idea because footer didn't post the end solution

marble quarry
#

i will try to find...