Fluid component
Add a fluid tank inside the machine.
This is the component that will let your machine interact with the Forge Fluid system (like tanks, pipes and so).
It is compatible with any other mods that use the same system (so about all of them) so any pipes will be able to pump fluids in and out of the machine.
Basically adding this component to the machine json will add a fluid tank to the machine.
You can add as much as you want fluid components to your machine.
Each component will act as a separate fluid tank.
Fluid component is defined with "type": "custommachinery:fluid" in the json.
Properties
The fluid component has 3 mandatory properties and 5 optional properties :
Mandatory properties
"type": "custommachinery:fluid" //Mandatory to define a fluid component.Optional properties
Filter
Name : filter
filterDescription :
A blacklist of fluids that the tank can't accept.
The fluids must be referenced by their registry name like minecraft:water or minecraft:lava.
By default the blacklist is empty so all fluids are accepted.
You can also use tag here with the # prefix like #minecraft:water
Default :
No filter, so all fluids are accepted by the tank.
Example :
Mode
Name : mode
modeDescription :
The IO mode of the tank.
Available modes are (input/output/both/none).
Pipes can only insert in an input tank and extract from an output tank.
With a bucket you can both insert and extract fluids in an input tank but only extract fluids from an output tank.
While crafting the machine will search for fluids to consume in input tanks and put the recipe results in the output tanks.
Default : both
bothExample :
Note :
An input tank will have a maxOutput value of 0 even if you set it to another value in the maxOutput property, same goes for output tank and maxInput property.
Example
An example of Fluid Component that can store 10000mB of lava only, send 1000mB/tick and receive 666mB/tick.
Last updated