Advertisement
wv1106

generatorController

Aug 17th, 2023 (edited)
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. local onValue = 8
  2. local offValue = 14
  3.  
  4. while true do
  5. local currentValue = redstone.getAnalogInput("left")
  6. if currentValue>offValue then
  7. redstone.setOutput("right", true)
  8. end
  9. if currentValue<onValue then
  10. redstone.setOutput("right", false)
  11. end
  12. sleep(1)
  13. end
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement