Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --=======================
- --| Лабиринт v1.0 |
- --|Spawn Chest |
- --|By Kwant |
- --|McSkill Galaxy Craft |
- --=======================
- --/////////\\\\\\\\\
- local component = require("component")
- local os = require("os")
- local sides = require("sides")
- local computer = require("computer")
- local event = require("event")
- local term = require("term")
- local c = component.chat_box
- local g = component.gpu
- local d = component.debug
- local BOT_NAME = ("§8[§9Galaxy§8] §3Организатор§f: ") --имя бота
- local COLOR1 = "§b" --основной цвет
- local WORDS = {"начинаем!", "приступаем!", "готовимся!", "погнали!"} --массив слов для старта
- local TIMER = 5 --КД по таймеру
- local TIMER1 = 10 -- КД по теймеру
- local COLOR_CMD = 0xffff00 --Цвет шрифта(Жёлтый)
- local cordx={-242,-240,-238,-236,-234}
- local cordy={2,2,2,2,2}
- local cordz={-73,-73,-73,-73,-73}
- local chest={1,2,3,4,5}
- local che=5
- function prov(i)
- if component.debug.getWorld().getBlockId(cordx[i],cordy[i],cordz[i])==35 then
- che=che-1
- chest[i]=-1
- if che==4 then
- c.say("Залышилось 4 сундука")
- end
- if che==3 then
- c.say("Залышилось 3 сундука")
- end
- if che==2 then
- c.say("Залышилось 2 сундука")
- end
- if che==1 then
- c.say("Залышився 1 сундук")
- end
- if che==0 then
- c.say("Сундукив нема!")
- end
- os.sleep(3)
- end
- end
- while true do
- for i=0,5 do
- flag=1
- for j=0,5 do
- if i==chest[j] then
- flag =0
- end
- end
- if flag==0 then
- prov(i)
- end
- end
- if che ==0 then
- c.say("Закритие програмки")
- break
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement