Advertisement
antisocialian

Untitled

Feb 8th, 2014
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. while true do
  2.   local m = peripheral.wrap("front")
  3.   if m ~= nil then
  4.     print("Jar detected")
  5.     local aspectCount = m.getAspectCount("Herba")
  6.     if aspectCount == 64 then
  7.       print("Jar is full, sending redstone signal.")
  8.       redstone.setOutput("back", true)
  9.       sleep(20)
  10.       print("Stopping redstone signal.")
  11.       redstone.setOutput("back", false)
  12.     else
  13.       print("Jar isn't full. It only has " .. aspectCount .. ".")
  14.     end
  15.   else
  16.     print("No Jar, check again in 60.")
  17.   end
  18.   sleep(60)
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement