SHOW:
|
|
- or go back to the newest paste.
| 1 | function menu() | |
| 2 | ||
| 3 | monitor.setBackgroundColour((colours.lime)) | |
| 4 | monitor.clear() | |
| 5 | monitor.setCursorPos(20,5) | |
| 6 | ||
| 7 | if redstone.getInput("right", true) then -- rechts = bartna
| |
| 8 | right = "Online" | |
| 9 | else | |
| 10 | right = "Offline" | |
| 11 | end | |
| 12 | if redstone.getInput("back", true) then -- achterkant = 123kac
| |
| 13 | back = "Online" | |
| 14 | else | |
| 15 | back = "Offline" | |
| 16 | end | |
| 17 | if redstone.getInput("front", true) then -- voorkant = alexmaster50
| |
| 18 | front = "Online" | |
| 19 | else | |
| 20 | front = "Offline" | |
| 21 | end | |
| 22 | if redstone.getInput("left", true) then -- left = ewart4fun
| |
| 23 | left = "Online" | |
| 24 | else | |
| 25 | left = "Offline" | |
| 26 | end | |
| 27 | ||
| 28 | monitor.write(" Player Bartna = " .. right)
| |
| 29 | monitor.setCursorPos(20,8) | |
| 30 | monitor.write(" Player 123kac = " .. back)
| |
| 31 | monitor.setCursorPos(20,11) | |
| 32 | monitor.write(" Player Alexmaster50 = " .. front)
| |
| 33 | monitor.setCursorPos(20,14) | |
| 34 | monitor.write(" Player Ewart4fun = " .. left)
| |
| 35 | end | |
| 36 | ||
| 37 | ||
| 38 | monitor = peripheral.wrap("monitor_1")
| |
| 39 | ||
| 40 | monitor.clear() | |
| 41 | ||
| 42 | monitor.setCursorPos(1,1) | |
| 43 | ||
| 44 | monitor.setBackgroundColour((colours.blue)) | |
| 45 | ||
| 46 | menu() | |
| 47 | ||
| 48 | monitor.setBackgroundColour((colours.lime)) | |
| 49 | ||
| 50 | - | function repeat() |
| 50 | + | function aardappel() |
| 51 | menu() | |
| 52 | sleep(3) | |
| 53 | - | repeat() |
| 53 | + | aardappel() |
| 54 | end | |
| 55 | ||
| 56 | - | repeat() |
| 56 | + | aardappel() |
| 57 | os.reboot() |