Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Close door if radar see player
- --Программа призвана заменить дуратские нажимные плиты
- --В комнатах с бесплатными механизмами на варпах)
- --Автор Vanilla_ mcskill tmcraft 2018
- --Большое спасибо utevaugu36 :)
- ----[ Библиотеки ]----
- local component = require("component")
- local sides = require("sides")
- local term = require("term")
- ----[ Константы ]----
- local sensor = component.openperipheral_sensor
- local gpu = component.gpu
- local modem = component.modem
- ----[ Код ]----
- gpu.setResolution(35, 10)
- --gpu.setResolution(140,40)
- term.clear()
- modem.open(999)
- gpu.set(20,10,"Made by:Vanilla_")
- while true do
- player = sensor.getPlayers()
- local _,_,_,_,_,nick = require"event".pull(1)
- gpu.setForeground(0x00FF00)
- gpu.set(1, 1, "Здесь сейчас находятся:")
- coord = 0
- for i = 1, #player do
- gpu.setForeground(0xFF0000)
- gpu.set(1, 2 + coord, player[i].name)
- coord = coord + 1
- end
- if nick ~= nil then
- gpu.set(1, 2 + coord, nick)
- end
- if player[1] ~= nil or nick ~= nil then
- component.redstone.setOutput(sides.up, 15)
- else
- component.redstone.setOutput(sides.up, 0)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment