SHOW:
|
|
- or go back to the newest paste.
| 1 | - | function Bitems() |
| 1 | + | function menu() |
| 2 | ||
| 3 | monitor.setBackgroundColour((colours.lime)) | |
| 4 | monitor.clear() | |
| 5 | monitor.setCursorPos(20,5) | |
| 6 | ||
| 7 | - | monitor.write(" Player online = ")
|
| 7 | + | if redstone.getInput("right", true) then -- rechts = bartna
|
| 8 | right == "Online" | |
| 9 | - | monitor.write(" Player online = ")
|
| 9 | + | else |
| 10 | right == "Offline" | |
| 11 | - | monitor.write(" Player online = ")
|
| 11 | + | |
| 12 | if redstone.getInput("back", true) then -- achterkant = 123kac
| |
| 13 | - | monitor.write(" Player online = ")
|
| 13 | + | back == "Online" |
| 14 | - | sleep(1) |
| 14 | + | else |
| 15 | - | -- monitor.setCursorPos(20,17) |
| 15 | + | back == "Offline" |
| 16 | - | -- monitor.write(" Go back in 9")
|
| 16 | + | |
| 17 | if redstone.getInput("front", true) then -- voorkant = alexmaster50
| |
| 18 | front == "Online" | |
| 19 | - | mouseWidth = 0 |
| 19 | + | else |
| 20 | - | mouseHeight = 0 |
| 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 | - | w,h=monitor.getSize() |
| 28 | + | monitor.write(" Player Bartna = " .. right ..)
|
| 29 | monitor.setCursorPos(20,8) | |
| 30 | - | print(w) |
| 30 | + | monitor.write(" Player 123kac = " .. back ..)
|
| 31 | - | print(h) |
| 31 | + | |
| 32 | monitor.write(" Player Alexmaster50 = " .. front ..)
| |
| 33 | monitor.setCursorPos(20,14) | |
| 34 | monitor.write(" Player Ewart4fun = " .. left ..)
| |
| 35 | - | Bitems() |
| 35 | + | |
| 36 | ||
| 37 | ||
| 38 | monitor = peripheral.wrap("monitor_1")
| |
| 39 | ||
| 40 | monitor.clear() | |
| 41 | ||
| 42 | - | function checkClickPosition() |
| 42 | + | |
| 43 | - | if mouseWidth > 15 and mouseWidth < 25 and mouseHeight == 5 then |
| 43 | + | |
| 44 | monitor.setBackgroundColour((colours.blue)) | |
| 45 | - | rules() |
| 45 | + | |
| 46 | menu() | |
| 47 | - | elseif mouseWidth > 15 and mouseWidth < 25 and mouseHeight == 10 then |
| 47 | + | |
| 48 | monitor.setBackgroundColour((colours.lime)) | |
| 49 | - | staff() |
| 49 | + | |
| 50 | - | |
| 50 | + | Function repeat() |
| 51 | - | elseif mouseWidth > 15 and mouseWidth < 25 and mouseHeight == 15 then |
| 51 | + | menu() |
| 52 | - | |
| 52 | + | sleep(3) |
| 53 | - | Bitems() |
| 53 | + | repeat() |
| 54 | end | |
| 55 | - | end |
| 55 | + | |
| 56 | - | end |
| 56 | + | repeat() |