Advertisement
cochise57

Untitled

Aug 2nd, 2015
18
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. os.loadAPI("ocs/apis/sensor")
  2. local s = sensor.wrap("top")
  3.  
  4. while true do
  5.  
  6.   if redstone.getInput("back") == true then
  7.     if s.getTargetDetails("anthonybreda").IsPlayer == true then
  8.       if s.get TargetDetails("anthonybreda").Position.Y == -1 then
  9.       term.write("OK")
  10.       end
  11.     end
  12.   end
  13. os.sleep(1)
  14.  
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement