View difference between Paste ID: tKhj5Fay and 1HEh0ztJ
SHOW: | | - or go back to the newest paste.
1
chest = peripheral.wrap("top")
2
mon = peripheral.wrap("left")
3
4
rednet.open("back")
5
6
mon.clear()
7
mon.setCursorPos(1,1)
8-
mon.write("Slot 1")
8+
mon.write("Andyland")
9-
mon.setCursorPos(2,1)
9+
mon.setCursorPos(1,2)
10
mon.write("Overworld Prime")
11
mon.setCursorPos(1,3)
12
mon.write("Hub Age")
13
mon.setCursorPos(1,4)
14
mon.write("Sky Age")
15-
if X >= 1 and X <= 6 and Y == 1 then
15+
mon.setCursorPos(1,5)
16-
rednet.send([ID],"go")
16+
mon.write("Ender-Lily Land")
17
mon.setCursorPos(1,6)
18
mon.write("Skylands")
19
mon.setCursorPos(1,7)
20
mon.write("Home")
21
mon.setCursorPos(1,8)
22
mon.write("Age 2")
23-
if X >= 1 and X <= 5 and Y == 2 then
23+
mon.setCursorPos(1,9)
24-
rednet.send([ID],"go")
24+
mon.write("Age 3")
25
mon.setCursorPos(1,10)
26
mon.write("Age 4")
27
28
while true do
29
event, side, X, Y = os.pullEvent("monitor_touch")
30
31
if X >= 1 and X <= 8 and Y == 1 then
32
rednet.send(17,"go")
33
id, message = rednet.receive()
34
if message == "push" then
35
chest.pushItem("up",1,1)
36
end
37
end
38
39
if X >= 1 and X <= 15 and Y == 2 then
40
rednet.send(17,"go")
41
id, message = rednet.receive()
42
if message == "push" then
43
chest.pushItem("up",2,1)
44
end
45
end
46
47
if X >= 1 and X <= 7 and Y == 3 then
48
rednet.send(17,"go")
49
id, message = rednet.receive()
50
if message == "push" then
51
chest.pushItem("up",3,1)
52
end
53
end
54
55
if X >= 1 and X <= 7 and Y == 4 then
56
rednet.send(17,"go")
57
id, message = rednet.receive()
58
if message == "push" then
59
chest.pushItem("up",4,1)
60
end
61
end
62
63
if X >= 1 and X <= 15 and Y == 5 then
64
rednet.send(17,"go")
65
id, message = rednet.receive()
66
if message == "push" then
67
chest.pushItem("up",5,1)
68
end
69
end
70
71
if X >= 1 and X <= 8 and Y == 6 then
72
rednet.send(17,"go")
73
id, message = rednet.receive()
74
if message == "push" then
75
chest.pushItem("up",6,1)
76
end
77
end
78
79
if X >= 1 and X <= 4 and Y == 7 then
80
rednet.send(17,"go")
81
id, message = rednet.receive()
82
if message == "push" then
83
chest.pushItem("up",7,1)
84
end
85
end
86
87
if X >= 1 and X <= 5 and Y == 8 then
88
rednet.send(17,"go")
89
id, message = rednet.receive()
90
if message == "push" then
91
chest.pushItem("up",8,1)
92
end
93
end
94
95
if X >= 1 and X <= 5 and Y == 9 then
96
rednet.send(17,"go")
97
id, message = rednet.receive()
98
if message == "push" then
99
chest.pushItem("up",9,1)
100
end
101
end
102
103
if X >= 1 and X <= 5 and Y == 10 then
104
rednet.send(17,"go")
105
id, message = rednet.receive()
106
if message == "push" then
107
chest.pushItem("up",10,1)
108
end
109
end
110
111
end