Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function menu()
- monitor.setBackgroundColour((colours.lime))
- monitor.clear()
- monitor.setCursorPos(20,5)
- if redstone.getInput("right", true) then -- rechts = bartna
- right = "Online"
- else
- right = "Offline"
- end
- if redstone.getInput("back", true) then -- achterkant = 123kac
- back = "Online"
- else
- back = "Offline"
- end
- if redstone.getInput("front", true) then -- voorkant = alexmaster50
- front = "Online"
- else
- front = "Offline"
- end
- if redstone.getInput("left", true) then -- left = ewart4fun
- left = "Online"
- else
- left = "Offline"
- end
- if redstone.getInput("bottom", true) then -- onderkant ik(guusje4525)
- bottom = "Online"
- else
- bottom = "Offline"
- end
- monitor.write(" Player Bartna = " .. right)
- monitor.setCursorPos(20,8)
- monitor.write(" Player 123kac = " .. back)
- monitor.setCursorPos(20,11)
- monitor.write(" Player Alexmaster50 = " .. front)
- monitor.setCursorPos(20,14)
- monitor.write(" Player Ewart4fun = " .. left)
- monitor.setCursorPos(20,17)
- monitor.write(" Player Guusje4525 = " .. bottom)
- end
- monitor = peripheral.wrap("monitor_1")
- monitor.clear()
- monitor.setCursorPos(1,1)
- monitor.setBackgroundColour((colours.blue))
- menu()
- monitor.setBackgroundColour((colours.lime))
- function aardappel()
- menu()
- sleep(3)
- aardappel()
- end
- aardappel()
- os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment