SHOW:
|
|
- or go back to the newest paste.
| 1 | function charge() | |
| 2 | for i=0, 149 do | |
| 3 | term.clear(); | |
| 4 | term.setCursorPos(1,1); | |
| 5 | print("Charging... ("..tostring(150-i).."s)");
| |
| 6 | sleep(1); | |
| 7 | end | |
| 8 | end | |
| 9 | ||
| 10 | function unload() | |
| 11 | for i=0, 239 do | |
| 12 | term.clear(); | |
| 13 | term.setCursorPos(1,1); | |
| 14 | print("Unloading power... ("..tostring(240-i).."s)");
| |
| 15 | sleep(1); | |
| 16 | end | |
| 17 | end | |
| 18 | ||
| 19 | while true do | |
| 20 | charge(); | |
| 21 | redstone.setOutput("bottom", true);
| |
| 22 | unload(); | |
| 23 | redstone.setOutput("bottom", false);
| |
| 24 | end |