KubeJS

KubeJS

61M Downloads

Fluid.of doesn't work

PelleXXX opened this issue ยท 1 comments

commented

Minecraft Version

1.19.2

KubeJS Version

kubejs-fabric-1902.6.0-build.142

Rhino Version

rhino-fabric-1902.2.2-build.268

Architectury Version

architectury-6.5.77-fabric

Forge/Fabric Version

Fabric - 0.14.18

Describe your issue

Im trying to use Fluid.of in a Create-Mixing recipe, but when i use /reload the recipe doesn't work, and JEI shows that instead of the fluid i wanted nothing. I've also seen that no recipe that uses a fluid works.

the version of Kubejs-Create im using is kubejs-create-fabric-1902.1.1-build.32.

this is what the recipe looks like in JEI:
Screenshot 2023-04-09 220552
this is the code i use:
Screenshot 2023-04-09 220742

Crash report/logs

No response

commented

Fabric fluids (and Create's fabric port's implementation of them) are kinda weird, so Fluid.of() doesn't work properly on Fabric at the moment, but you can still use liquids in your recipes!

//Just replace
Fluid.of('minecraft:water', 1000)
//with
{"fluid":"minecraft:water", "amount":81000}

Converting from mB to Fabric's Fluid units is easy and fun! ๐Ÿ˜‰ Just multiply the number by 81, so:
125mB x 81 = 10125 Fabric Fluid

Thanks to Nat, who's bot command on the discord this is mostly copied from.