#Compacting recipe not working

44 messages · Page 1 of 1 (latest)

candid idol
#

I am trying to add a recipe for adding bricks with 250mb of water, light grey concreate powder, and 8 bricks, and it is not working.
event.recipes.create.compacting('4x minecraft:bricks', [fluid.water(250)], 'minecraft:light_gray_concreate_powder', '8x minecraft:brick')

urban axleBOT
#

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

brave relicBOT
#

Never say 'it crashed', 'it errored', or 'it didn't work' without providing the full crash report, log, and scripts!

candid idol
brave relicBOT
#

Paste version of recipe.js from @candid idol

candid idol
#

It isn't crashing, so I don't have a crash report

brave relicBOT
#

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.

candid idol
brave relicBOT
#

Paste version of server.log from @candid idol

tardy cypress
#

"fluid" is not defined
Change fluid.water to Fluid.of('water')

#

Also, I'm pretty sure this recipe does not take 4 arguments

candid idol
#

it is still saying that fluid is not defined

tardy cypress
#

You did not change fluid.water to Fluid.of('water') then

candid idol
#

I did and got a new error, pasting new log

brave relicBOT
#

Paste version of server.log from @candid idol

tardy cypress
#

Because this recipe does not take 4 arguments

candid idol
#

How do I add more than two inputs for a compacting recipe?

tardy cypress
#

With an array, which your Fluid is already in, but not with anything else

candid idol
#

How do I do that or where can I find how to do that?

tardy cypress
#

Is your recipe supposed to be:
Water, 4 Bricks > Light Gray Powder, 8 Bricks

candid idol
#

It is supposed to be:
Water(250mb), Light Gray Powder, 8 Brick => 4 Bricks (blocks)

tardy cypress
#
event.recipes.create.compacting('4x minecraft:bricks', [Fluid.of('water', 250), 'minecraft:light_gray_concreate_powder', '8x minecraft:brick'])
candid idol
#

There is no more errors, but the recipe isn't showing up in JEI

tardy cypress
#

Did you run /reload?

candid idol
#

yes

tardy cypress
#

Send the log again

candid idol
brave relicBOT
#

Paste version of server.log from @candid idol

tardy cypress
#

Did you put in my code with no changes or did you put it in then modify it slightly?

candid idol
#

just copied and pasted, no changes

tardy cypress
#

It is trying to parse an empty fluid

candid idol
#

I just deleted it and tried again, but same result

tardy cypress
#

It's parsing the water fine but it's trying to parse another fluid which is coming up empty

#

Change that Fluid.of to Fluid.water(250)

candid idol
brave relicBOT
#

Paste version of server.log from @candid idol

tardy cypress
#

Ah man, idk whats happening here. I see no reason why it wants to add an empty fluid, that seems to be what it's stuck on

candid idol
#

I figured it out, kinda.

#

It is thinking that the light gray concrete powder is a fluid with an empty value.

#

I moved it after the bricks in the recipe and now it is working

#

Here is the working recipe:
event.recipes.create.compacting('4x minecraft:bricks', [Fluid.water(250), '8x minecraft:brick', 'minecraft:light_gray_concrete_powder'])