CC: Dyson Cube Project

Adds a Dyson Data Connector block that exposes Dyson Cube Project sphere statistics to CC:Tweaked computers via Lua API.

CC: Dyson Cube Program

Bridges CC: Tweaked computers with the Dyson Cube Project — monitor and automate your Dyson Sphere via Lua.


How to use

Place a Dyson Data Connector next to a Ray Receiver or EM Rail Ejector and connect it to any CC: Tweaked computer. The block exposes all live Dyson Sphere statistics as Lua functions, enabling full monitoring.


Features

  • Auto-detection — automatically links to the adjacent Dyson Sphere component within 5 blocks (configurable)
  • Manual override — set a specific sphere ID via setSphereId() for multi-sphere setups
  • 13 Lua functions covering sails, beams, power generation, stored energy, build progress and more

Lua API

local conn = peripheral.find("dyson_data_connector")
-- or: peripheral.wrap("right")

conn.getSphereId()            --> "sphere-0"  (nil if not linked)
conn.setSphereId("sphere-0")  -- manual override
conn.clearSphereId()          -- back to auto-detect

conn.getSails()             --> 1500   (launched Solar Sails)
conn.getBeams()             --> 200    (Structural Beams)
conn.getMaxSails()          --> 2000   (capacity at current beams)
conn.getProgress()          --> 0.75   (0.0 – 1.0)

conn.getStoredPower()       --> 1200000  (FE)
conn.isGeneratingPower()    --> true
conn.getGenerationRate()    --> 30000   (FE/t)

conn.getAllSphereIds()       --> { "sphere-0", "sphere-1" }

Known bugs

  • isGeneratingPower() always returns true, even when the Dyson Sphere is not currently generating any power.

Roadmap

Add a polished block model created with unique textures, and fix known bugs.

The CC: Dyson Cube Project Team

profile avatar
Owner
  • 1
    Projects
  • 52
    Downloads
Donate