View difference between Paste ID: njm8cgjU and QGC221YN
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" 
8+
local right == "Online" 
9
else
10-
right == "Offline"
10+
local right == "Offline"
11
end
12
if redstone.getInput("back", true) then -- achterkant = 123kac
13-
back == "Online" 
13+
local back == "Online" 
14
else
15-
back == "Offline"
15+
local back == "Offline"
16
end
17
if redstone.getInput("front", true) then -- voorkant = alexmaster50
18-
front == "Online" 
18+
local front == "Online" 
19
else
20-
front == "Offline"
20+
local front == "Offline"
21
end
22
if redstone.getInput("left", true) then -- left = ewart4fun
23-
left == "Online" 
23+
local left == "Online" 
24
else
25-
left == "Offline"
25+
local 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()
51
menu()
52
sleep(3)
53
repeat()
54
end
55
56
repeat()