Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- g = peripheral.wrap("left, monitor_0")
- b1 = peripheral.wrap("left, monitor_1")
- b2 = peripheral.wrap("left, monitor_2")
- b3 = peripheral.wrap("left, monitor_3")
- b4 = peripheral.wrap("left, monitor_4")
- redstone = peripheral.wrap("bottom")
- rs = redstone
- term.clear()
- b4.clear()
- term.setCursorPos(1, 1)
- test = rs.getBundledInput("bottom, colors.white + colors.orange + colors.yellow")
- print("floor =")
- term.setCursorPos(1, 2)
- if test == 1 then
- print("B4")
- end
- if test == 2 then
- print("B3")
- end
- if test == 4 then
- print("B2")
- end
- if test == 16 then
- print("B1")
- end
- if test == 32 then
- print("G")
- end
- sleep(0)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement