SirSheepe

Untitled

Oct 7th, 2018
131
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local current = 0
  2. local delta = 1
  3.  
  4. while true do
  5. redstone.setAnalogOutput("top", current)
  6. current = current + delta
  7. if current == 15 then
  8. delta = -1
  9. elseif current == 0 then
  10. delta = 1
  11. end
  12. sleep(0.1)
  13. end
RAW Paste Data