Advertisement
Guest User

Station.lua

a guest
Aug 17th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.42 KB | None | 0 0
  1. Timer = 0
  2.  
  3. while true do
  4.     if redstone.getInput("right") == true then
  5.         if Timer == 10 then
  6.             redstone.setOutput("top", true)
  7.             sleep(20)
  8.             redstone.setOutput("top", false)
  9.             sleep(1)
  10.             Timer = 0
  11.         else
  12.             Timer = Timer + 1
  13.             sleep(1)
  14.         end
  15.     else
  16.         redstone.setOutput("top", false)
  17.         sleep(1)
  18.     end
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement