Machines, Power, and Upgrades

Neroland Core provides a machine framework that other Neroland mods build on. Core itself ships no machines, generators, or upgrade items — it defines the power unit, the energy contracts, the upgrade resolver, and the cross-loader energy interop so every Nero machine speaks the same language. It does, however, ship a few passive storage blocks (see below) that ride these contracts.

Nero Flux (NF)

The shared player-facing power unit is Nero Flux (NF). Existing API class names and the neroEnergyToForgeEnergyRatio config key remain unchanged for compatibility, and NF-to-FE conversion uses exactly the same configured ratio as before.

PieceRole
NeroEnergyStorageThe loader-neutral energy contract
EnergyBufferReady bounded implementation: generate, consume, insert/extract, bounded by maxIO
EnergyConversionsConverts to/from Forge Energy via the neroEnergyToForgeEnergyRatio config ratio

AbstractMachineBlockEntity bundles an EnergyBuffer plus an UpgradeContainer and persists both. Downstream machines extend it.

Upgrade modules

Machines accept upgrade modules that change how they run. The module types are fixed by Core; the items are supplied by downstream mods.

Upgrade typeEffect
SPEEDFaster operation (speedMultiplier)
EFFICIENCYLower energy use (energyMultiplier)
RANGELarger working area (rangeBonus)
CAPACITYLarger energy buffer (capacityMultiplier)

How it fits together:

  • a machine has an UpgradeContainer of slots
  • a Classifier maps an item stack to a type, usually via a tag check
  • UpgradeModifiers turns module counts into multipliers

Because every machine across every Nero mod uses the one resolver, modules are interchangeable and balance is tuned in a single place — the config:

  • upgradeStackingDiminish sets the diminishing-returns curve for stacked modules
  • upgradeModuleSlotCap clamps the slot count
  • hard caps bound the resulting multipliers

Core does not ship module items; a downstream mod defines the items and the stack-to-type mapping.

Fluid and gas storage

Core mirrors the energy seam for two more resource types so mods can pipe fluids and gases the same way they pipe NF. Both are generic — Core ships no specific fluids or gases, only the contracts and their cross-loader capabilities.

PieceRole
NeroFluidStorageThe loader-neutral fluid contract
FluidBufferReady bounded single-fluid implementation (mB-measured)
NeroGasStorageThe loader-neutral gas contract
GasBufferReady bounded single-gas implementation
NeroGasesHelper for naming/resolving gases (each identified by an id)

Core owns the shared nerolandcore:fluid and nerolandcore:gas capabilities on each loader, exactly like nerolandcore:energy.

Storage blocks Core ships

Core ships five passive storage endpoints (its first block-entities); the first four also have a Creative variant. They hold (or void) a resource and offer it to pipes and hoppers, but do no work — they are not machines:

BlockHoldsPage
BatteryNero Flux (NF)Battery
Fluid Tankone fluidFluid Tank
Gas Tankone gasGas Tank
Item Storeitems (vanilla container)Item Store
Trash Cannothing — voids items, fluid, and gasTrash Can

The Battery exposes nerolandcore:energy, the Fluid Tank nerolandcore:fluid, the Gas Tank nerolandcore:gas, and the Item Store the standard vanilla item handler (it opens the vanilla chest GUI). The Trash Can accepts all three of nerolandcore:fluid, nerolandcore:gas, and the item handler on every side and discards whatever is inserted; it opens a vanilla chest-style GUI with a single drop slot (Core's first menu type + client screen). All five are pickaxe / iron-tier mineable and ship crafting recipes (see Recipes). The Creative Source Blocks are endless source/sink variants of the first four for testing.

Cross-loader energy interop

Core owns the shared nerolandcore:energy capability/lookup on each loader through the EnergyLookup seam. Downstream machines register their block-entity against Core's capability, so any Nero machine (from any mod) can find any other. The same pattern applies to nerolandcore:fluid and nerolandcore:gas. Bridging to external Forge Energy or Fabric energy libraries is deferred until those libraries port to MC 26.x.

For developers

The full machine, power, and upgrade API is documented in ../docs/MACHINES-POWER-UPGRADES.md.

See also

Search across every Nero mod wiki.