Advertisement
cochise57

Untitled

Aug 20th, 2015
246
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("back")
  3. redstone.setBundledOutput("bottom", 0)
  4. while true do
  5.  
  6. for key,value in pairs(s.getTargets()) do
  7.   if value.Riding ~= nil then
  8.    if value.Riding.Name == "Creeper" then
  9.    
  10.     print("Creeper")
  11.    
  12.    end
  13.   end  
  14.  os.sleep(0.5)
  15. end
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement