Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("top")
- while true do
- fo = 0
- sleep(0.01)
- furnace = rs.getAnalogInput("left")
- if furnace == 0 then
- fo=15
- else
- if furnace == 1 then
- fo=14
- else
- if furnace == 2 then
- fo=13
- else
- if furnace == 3 then
- fo=12
- else
- if furnace == 4 then
- fo=11
- else
- if furnace == 5 then
- fo=10
- else
- if furnace == 6 then
- fo=9
- else
- if furnace == 7 then
- fo=8
- else
- if furnace == 8 then
- fo=7
- else
- if furnace == 9 then
- fo=6
- else
- if furnace == 10 then
- fo=5
- else
- if furnace == 11 then
- fo=4
- else
- if furnace == 12 then
- fo=3
- else
- if furnace == 13 then
- fo=2
- else
- if furnace == 14 then
- fo=1
- else
- fo = 0
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- rednet.broadcast("fo")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement