Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Stress = peripheral.wrap("top")
- local Threshold = 150000 -- Stress units threshold
- -- Main --
- while (true) do
- if (Stress.getStress() < Threshold) then
- redstone.setAnalogOutput("right", 15)
- else
- redstone.setAnalogOutput("right", 0)
- end
- sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement