Fluid Ports

What are Fluid Ports?

Fluid ports are used to hold fluids like water and lava for use in a machine recipe.

If an input port is formed as part of a structure, any fluids stored inside will be looked at for use in a recipe process.

If an output port is formed as part of a structure, space in the port will be filled with output fluids from any successfully run recipes.

How to create a Fluid Port?

{
  "id": "my_port",
  "controllerIds": "mm:controller_a",
  "name": "My Item Port",
  "type": "mm:fluid",
  "config": {
    "rows": 3,
    "columns": 3,
    "slotCapacity": 1000
  }
}

"type": "mm:item"

The "type" field for a fluid port always has the value of mm:fluid, this tells the config reader to look for fluid port specific fields within the "config" object field.


"config": {
    "rows": 3,
    "columns": 3,
    "slotCapacity": 1000
}

Inside the "config" object field, the "rows" field defines how many rows of different fluid tank slots will be added to the fluid handler within the port.

Similarly, the "columns" field defines the columns of tanks inside the port fluid handler.

NOTE: to calculate the total number of fluid tanks within a port's handler, simply multiply the rows and columns together e.g. 3 * 3 = 9

Finally the "slotCapacity" field defines the capacity in mB of fluid that can be stored in each tank. In this example each tank can store 1 Bucket or 1000mB

Last updated