Advertisement
dlord

mwcontrol

Mar 23rd, 2013
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.37 KB | None | 0 0
  1. rednet.open("right")
  2.  
  3. function mine()
  4.   rednet.broadcast("mine")
  5.   local done=0
  6.   while done < 16 do
  7.     local senderId, message = rednet.receive()
  8.     if message=="done" then
  9.       done=done+1
  10.     end
  11.   end
  12. end
  13.  
  14. while true do
  15.   os.pullEvent("redstone")
  16.  
  17.   while redstone.getInput("front") do
  18.     mine()
  19.     shell.run("/frameengine/frame north 1")
  20.   end
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement