SHOW:
|
|
- or go back to the newest paste.
| 1 | cell = peripheral.wrap("thermalexpansion:storage_cell_0")
| |
| 2 | capacity = cell.getRFCapacity() | |
| 3 | ||
| 4 | while true do | |
| 5 | if cell.getRFStored() == capacity then | |
| 6 | redstone.setAnalogOutput("left", 0)
| |
| 7 | elseif cell.getRFStored() < capacity / 5 then | |
| 8 | redstone.setAnalogOutput("left", 5)
| |
| 9 | end | |
| 10 | sleep(20) | |
| 11 | end |