Skip to content

Add ComputerCraft integration - #42

Merged
rlnt merged 11 commits into
AlmostReliable:1.21.1from
TrickShotMLG02:1.21.1-cct
Jul 30, 2026
Merged

Add ComputerCraft integration#42
rlnt merged 11 commits into
AlmostReliable:1.21.1from
TrickShotMLG02:1.21.1-cct

Conversation

@TrickShotMLG02

Copy link
Copy Markdown

Proposed Changes

This PR restores full ComputerCraft/CC:Tweaked support from previous versions, adapted for the updated Energy Meter implementation.

It registers the Energy Meter as a ComputerCraft peripheral and exposes the following Lua functions:

- getInterval
- getAccuracy
- getFullSideConfig
- getStatus
- getEnergyRate
- getTransferRate
- getSideConfig
- getSideConfigDetails
- getTotalEnergy
- getFullSideConfigDetails
- hasOutput
- getThreshold
- getMode
- hasInput
- getData
- getTransferLimit

Additional Context

2026-06-29_13 11 04 2026-06-29_13 13 21

@rlnt

rlnt commented Jun 30, 2026

Copy link
Copy Markdown
Member

Thank you for the contribution. It looks quite good at first glance. It will take me a bit to review and integrate this. I am currently busy with a lot of porting. I'll get back to this when I have time again.

@rlnt

rlnt commented Jul 30, 2026

Copy link
Copy Markdown
Member

Thank you for the base changes. I adapted your changes to an observer pattern, renamed a few things, and used the cached data. This also helped me find a bug in the block entity logic.

The integration will be part of the new update. I already wrote a wiki page for it. Thanks for your contribution; much appreciated!

@rlnt
rlnt merged commit 8c2175c into AlmostReliable:1.21.1 Jul 30, 2026
1 check passed
@rlnt rlnt mentioned this pull request Jul 30, 2026
Saereth added a commit to Saereth/energymeter that referenced this pull request Jul 30, 2026
Ports AlmostReliable#42 onto 26.1.2.

Co-authored-by: TrickShotMLG <43967908+TrickShotMLG02@users.noreply.github.com>

Co-authored-by: Relentless <16513358+rlnt@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants