Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --улучение магнит, инвентраль, батарея3, контейнер3, клава, монитор, дисковод, остальное как пк тир 3
- local r = require("robot")
- local com = require("component")
- local term = require("term")
- local unicode = require("unicode")
- local gpu = com.gpu
- local w, h = 50, 16
- term.clear()
- gpu.setResolution(w, h)
- --gpu.setBackground(0xFFFFFF)
- --gpu.setForeground(0x000000)
- gpu.fill(1, 1, w, h, " ")
- gpu.fill(1, 1, 1, 1, "┌")
- gpu.fill(1, h, 1, 1, "└")
- gpu.fill(1, 2 ,1, h-2, "│")
- gpu.fill(w, 2, 1, h-2, "│")
- gpu.fill(2, 1, w-2, 1, "─")
- gpu.fill(2, h, w-2, 1, "─")
- gpu.fill(w, 1, 1, 1, "┐")
- gpu.fill(w, h, 1, 1, "┘")
- gpu.set(3, 2, "Робот "..r.name().." запущен!")
- gpu.fill(3, 3, unicode.len("Робот "..r.name().." запущен!"), 1, "─")
- while true do
- local mine, temp = r.detect()
- if mine and temp ~= "entity" then
- r.swing()
- r.suck()
- end
- os.sleep(0)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement