Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while (true) do
- local mon = peripheral.wrap("monitor_0")
- if redstone.getAnalogInput("back") > 0 then
- mon.setCursorPos(1, 1)
- mon.write(" ")
- mon.write("Iron - Active")
- else
- mon.setCursorPos(1, 1)
- mon.write(" ")
- mon.write("Iron - Inactive")
- end
- os.pullEvent("redstone")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement