Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- chest = peripheral.wrap("top")
- mon = peripheral.wrap("left")
- rednet.open("back")
- mon.clear()
- mon.setCursorPos(1,1)
- mon.write("Andyland")
- mon.setCursorPos(1,2)
- mon.write("Overworld Prime")
- mon.setCursorPos(1,3)
- mon.write("Hub Age")
- mon.setCursorPos(1,4)
- mon.write("Sky Age")
- mon.setCursorPos(1,5)
- mon.write("Ender-Lily Land")
- mon.setCursorPos(1,6)
- mon.write("Skylands")
- mon.setCursorPos(1,7)
- mon.write("Home")
- mon.setCursorPos(1,8)
- mon.write("Age 2")
- mon.setCursorPos(1,9)
- mon.write("Age 3")
- mon.setCursorPos(1,10)
- mon.write("Age 4")
- while true do
- event, side, X, Y = os.pullEvent("monitor_touch")
- if X >= 1 and X <= 8 and Y == 1 then
- rednet.send(17,"go")
- id, message = rednet.receive()
- if message == "push" then
- chest.pushItem("up",1,1)
- end
- end
- if X >= 1 and X <= 15 and Y == 2 then
- rednet.send(17,"go")
- id, message = rednet.receive()
- if message == "push" then
- chest.pushItem("up",2,1)
- end
- end
- if X >= 1 and X <= 7 and Y == 3 then
- rednet.send(17,"go")
- id, message = rednet.receive()
- if message == "push" then
- chest.pushItem("up",3,1)
- end
- end
- if X >= 1 and X <= 7 and Y == 4 then
- rednet.send(17,"go")
- id, message = rednet.receive()
- if message == "push" then
- chest.pushItem("up",4,1)
- end
- end
- if X >= 1 and X <= 15 and Y == 5 then
- rednet.send(17,"go")
- id, message = rednet.receive()
- if message == "push" then
- chest.pushItem("up",5,1)
- end
- end
- if X >= 1 and X <= 8 and Y == 6 then
- rednet.send(17,"go")
- id, message = rednet.receive()
- if message == "push" then
- chest.pushItem("up",6,1)
- end
- end
- if X >= 1 and X <= 4 and Y == 7 then
- rednet.send(17,"go")
- id, message = rednet.receive()
- if message == "push" then
- chest.pushItem("up",7,1)
- end
- end
- if X >= 1 and X <= 5 and Y == 8 then
- rednet.send(17,"go")
- id, message = rednet.receive()
- if message == "push" then
- chest.pushItem("up",8,1)
- end
- end
- if X >= 1 and X <= 5 and Y == 9 then
- rednet.send(17,"go")
- id, message = rednet.receive()
- if message == "push" then
- chest.pushItem("up",9,1)
- end
- end
- if X >= 1 and X <= 5 and Y == 10 then
- rednet.send(17,"go")
- id, message = rednet.receive()
- if message == "push" then
- chest.pushItem("up",10,1)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement