OC: Energy Meter

An in-line Forge Energy meter with a live LCD and an optional OpenComputers: Rebooted component for reading the flow and totals from Lua.
Back to Files

OC: Energy Meter 0.2.0

File nameoc-energy-meter-0.2.0.jar
Uploader
AdamDeBeersAdamDeBeers
Uploaded
Dec 3, 2026
Downloads
2
Size
50.7 KB
Mod Loaders
NeoForge
File ID
10019459
Type
R
Release
Supported game versions
  • 1.21.1

Curse Maven Snippet

NeoForge

implementation "curse.maven:oc-energy-meter-1849682:10019459"

Learn more about Curse Maven

What's new

0.2.0

  • License changed to MIT.
  • New OpenComputers callbacks on the energy_meter component:
    • getOwner() returns the name of the player who placed the meter, or nil for meters placed before owners were recorded.
    • getCustomer() returns the customer account name.
    • resetSession() resets the session counter. The lifetime total is never reset. Returns true, or false and a reason when disabled.
  • New Customer field in the meter GUI. Only the owner or a server operator can set it; computers can only read it. Changes are written to the server log.
  • New config file config/ocem-common.toml with allowOcReset (default true).
  • getRate() is now documented as FE per tick.
  • The owner's name is saved with the meter. Meters placed before 0.2.0 get it when the server can look up the owner.

0.1.8

  • In-line FE meter, two blocks tall, with a live LCD showing the flow (FE per tick) and the lifetime total.
  • GUI for the owner and server operators with the flow, lifetime total, session counter, buffer and a session reset button.
  • Only the owner or a server operator can dismantle the meter, with the Meter Wrench or a Create Wrench. Mining, explosions and pistons do not remove it.
  • Optional OpenComputers: Rebooted component energy_meter with getRate, getTotal, getSession and getBuffer.

This mod has no additional files