#Multiblock condition

13 messages · Page 1 of 1 (latest)

daring pier
#

How can I make a multiblock machine require a specific condition, such as an item or fluid input/output, in order to function?
For example, I want the machine to only run if it is receiving a fluid input or is able to output a fluid or item — similar to how the Large Combustion Engines behave. I'm using Minecraft 1.20.1.

warm copper
#

wouldn't that just be recipes?

daring pier
#

No, for example, if I create a large centrifuge multiblock that uses the centrifuge recipe type, I want it to require lubricant to function. In that case, I can't just define a normal recipe.

warm copper
#

Oh, then you would need to look at how the steam machine class or the large combustion engine class does that and make a java addon

daring pier
#

okay, so kubejs does not work?

warm copper
#

you could load the java class of the generators if you wanted your custom multi to eat the same fuels

#

but if you wanted a new fuel, yeah kubejs won't work

#

hmm, was there a machine that ate lubricant? i can't remember

#

oh wait, that needed lubricant and power

daring pier
#

I'm not very good at Java, and for some reason, I just can't figure out how to get it working with Minecraft. I only know how to use KubeJS. Will support for this be added in the future?"

warm copper
#

that idk, the issue is that the machines have a class that tells them what they need to eat, power for electric machines, fuel for generators, and steam for steam machines.

#

but the fuels are specfic to the machine class

#

i have no idea if they could make a way for kubejs to change the java classes/make a kinda new one. but seems pretty unlikely