Guest User

CartMan.lua

a guest
Apr 30th, 2016
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.32 KB | None | 0 0
  1. red = component.proxy(component.list("redstone")())
  2. local bottom = 0
  3. local front = 3
  4. function wait(seconds)
  5.   local start = os.time()
  6.   repeat until os.time() > start + seconds
  7. end
  8. while true do
  9.   if red.getInput(bottom) > 0 then
  10.     wait(50)
  11.     red.setOutput(front, 15)
  12.     wait(5)
  13.   else
  14.     red.setOutput(front, 0)
  15. end end
Advertisement
Add Comment
Please, Sign In to add comment