Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("right")
- local func
- local tArgs = {...}
- function checkIn(fromID)
- rednet.send(fromID, tArgs[1])
- end
- function down()
- redstone.setOutput("bottom",true)
- sleep(1)
- redstone.setOutput("bottom",false)
- end
- function up()
- redstone.setOutput("top",true)
- sleep(1)
- redstone.setOutput("top",false)
- end
- function forward()
- redstone.setOutput("left",true)
- sleep(1)
- redstone.setOutput("left",false)
- end
- while true do
- local id,msg,dist = rednet.receive()
- func = loadstring(msg.."(...)")
- setfenv(func, getfenv())
- func(id)
- rednet.send(id,"Done")
- end
Advertisement
Add Comment
Please, Sign In to add comment