Advertisement
Guest User

startup.lua

a guest
Nov 5th, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.27 KB | None | 0 0
  1. redstone.setAnalogOutput("front",15)
  2. while true do
  3.     on = redstone.getAnalogInput("right")
  4.     if on > 6 then
  5.         redstone.setAnalogOutput("front",0)
  6.     elseif on < 5 then
  7.         redstone.setAnalogOutput("front",15)
  8.     end
  9.     sleep(0.1)
  10.     print(on)
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement