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 Energy Ports?
  • How to create an Energy Port?
  1. Base Features & Config
  2. Ports

Energy Ports

What are Energy Ports?

Energy ports are used to store Forge Energy (FE) for use in a machine recipe.

If an input port is formed as part of a structure, any stored energy will be looked at for use in a recipe's inputs.

If an output port is formed as part of a structure, free space will be filled with a recipe's energy output.

How to create an Energy Port?

{
  "id": "my_port",
  "controllerIds": "mm:controller_a",
  "name": "My Port",
  "type": "mm:energy",
  "config": {
    "capacity": 1000000,
    "maxReceive": 1000,
    "maxExtract": 1000
  }
}

"type": "mm:item"

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


"config": {
    "capacity": 1000000,
    "maxReceive": 1000,
    "maxExtract": 1000
}

Within the "config" object field, the "capacity" field defines the max amount of energy that can be stored in the port block.

"maxReceive" and "maxExtract" define the max amount of energy that can be inserted into the port and extracted from the port every tick.

PreviousFluid PortsNextMekanism Ports (Compat)

Last updated 11 months ago

💡