Advertisement
Guest User

move

a guest
Dec 26th, 2015
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.36 KB | None | 0 0
  1. local p = peripheral.wrap("left")
  2.  
  3. p.activate()
  4.  
  5. for x = 1,5 do
  6.   for z = 1,3 do
  7.     p.setTarget(x,0,z-2)
  8.     while {p.getDistanceToTarget()} ~= {0,-.5,0}  do end
  9.     while not p.isGrabbing() do end
  10.     p.setTarget(x,3,z-2)
  11.     while {p.getDistanceToTarget()} ~= {0,-.5,0} do end
  12.     p.toggle()
  13.     while not p.isGrabbing() do end
  14.   end
  15. end
  16.  
  17. p.deactivate()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement