Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mob = peripheral.wrap("back")
- mob.disableAI()
- local ftable = {
- mob.walk,
- mob.look,
- mob.shoot
- }
- rednet.open("right")
- while true do
- id,msg = rednet.receive()
- if id == 67 then
- local cmd = textutils.unserialise(msg)
- ftable[cmd[1]](cmd[2],cmd[3],cmd[4])
- if cmd[1] == 3 and mob.getDocs()
- print(msg)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement