Fluid
Make the recipe consume or produce fluids
Fluid requirement is used to define fluid inputs and outputs in a custom machine recipe.
To use it you need to provide the registry name and the amount (in mB, with 1000mB being 1 Bucket of fluid) of the fluid you want the recipe to consume/produce.
This requirement is available in both input
and output
modes.
In input mode : When starting to craft the recipe, the machine will consume the desired amount of the specified fluid from the input tank it's in.
In output mode : When finishing to craft the recipe, the machine will produce the desired amount of the specified fluid and put it in the first disponible tank.
The requirement type of fluid requirement is : "custommachinery:fluid".
Properties
The fluid requirement has 4 mandatory properties and 2 optional properties.
Mandatory properties
"type": "custommachinery:fluid" //Mandatory to define a fluid requirement.
Optional properties
Example
A fluid requirement that will make the custom machine recipe produce 500mB of water with 50% chance :
{
"type": "custommachinery:fluid",
"mode": "output",
"fluid": "minecraft:water",
"amount": 500,
"chance": 0.5
}
Last updated