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("Slot 1")
- while true do
- event, side, X, Y = os.pullEvent("monitor_touch")
- if X >= 1 and X <= 6 and Y == 1 then
- local DEST = 1
- rednet.send([ID],"go")
- end
- id, message = rednet.receive()
- if message == "push" then
- chest.pushItem("up",1,1)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement