Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open"left"
- m = peripheral.wrap("back")
- m.setTextScale(?)
- while true do
- event, id, text = os.pullEvent()
- if event == "rednet_message" then
- if id == ? then
- if tonumber(text) <= 20 then
- redstone.setOutput("top",true)
- m.setBackgroundColor(colors.white)
- m.setTextColor(colors.red)
- else
- redstone.setOutput("top",false)
- m.setBackgroundColor(colors.black)
- m.setTextColor(colors.white)
- end
- m.clear()
- m.setCursorPos(1,1)
- m.write("il reste")
- m.write(text)
- m.write("% sur le dernier cube")
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement