Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local onValue = 8
- local offValue = 14
- while true do
- local currentValue = redstone.getAnalogInput("left")
- if currentValue>offValue then
- redstone.setOutput("right", true)
- end
- if currentValue<onValue then
- redstone.setOutput("right", false)
- end
- sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement