Masterful Machinery
  • 👋MM Docs
  • 💡Base Features & Config
    • Controllers
    • Ports
      • Item Ports
      • Fluid Ports
      • Energy Ports
      • Mekanism Ports (Compat)
        • Gas Ports
        • Slurry Ports
        • Pigment Ports
        • Infusion Ports
      • Create Kinetic (Compat)
      • PneumaticCraft Air (Compat)
    • Extra Blocks
    • Structures
      • Structure Requirements
      • Common Requirements
    • Process Recipes
      • Ingredient Configs
      • Input Entries
      • Output Entries
      • Recipe Conditions
  • 🔩Compat Features
    • KubeJS Support
      • Register Controller
      • Register Port
      • Register Extra Blocks
      • Create Structures
      • Create Process Recipes
  • Tutorial Guides
    • Step by Step Datapack Edition
  • General Help
    • 🪞Custom Textures
  • 🎥Gallery
    • Coke Oven
  • 📎Archived Versions
    • Deprecated 1.16 Versions
    • Deprecated 1.18-1.19 Versions
      • Data Packs
Powered by GitBook
On this page
  • What are Fluid Ports?
  • How to create a Fluid Port?
  1. Base Features & Config
  2. Ports

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

PreviousItem PortsNextEnergy Ports

Last updated 11 months ago

💡