Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DEBUGVER=true
- local event = require('event')
- local fs = require("filesystem")
- local com = require('component')
- if com.isAvailable("command_block") then local cb = com.command_block
- else print("РЕКОМЕНДУЕТСЯ ПОДКЛЮЧИТЬ КОМАНДНЫЙ БЛОК!")
- end
- if com.isAvailable("debug") then --
- else error("ДЕБАГ КАРТА НЕ НАЙДЕНА!!!")
- end
- dc=com.debug
- local w = dc.getWorld(0)
- function oskolok()
- w.setBlock(x, y, z, 0, 0)
- w.setBlock(x+1, y, z, 0, 0)
- w.setBlock(x-1, y, z, 0, 0)
- w.setBlock(x, y, z+1, 0, 0)
- w.setBlock(x, y, z-1, 0, 0)
- w.setBlock(x+1, y, z+1, 0, 0)
- w.setBlock(x-1, y, z-1, 0, 0)
- w.setBlock(x+1, y, z-1, 0, 0)
- w.setBlock(x-1, y, z+1, 0, 0)
- --+1 уровень
- w.setBlock(x, y+1, z, 0, 0)
- w.setBlock(x+1, y+1, z, 0, 0)
- w.setBlock(x-1, y+1, z, 0, 0)
- w.setBlock(x, y+1, z+1, 0, 0)
- w.setBlock(x, y+1, z-1, 0, 0)
- w.setBlock(x+1, y+1, z+1, 0, 0)
- w.setBlock(x-1, y+1, z-1, 0, 0)
- w.setBlock(x+1, y+1, z-1, 0, 0)
- w.setBlock(x-1, y+1, z+1, 0, 0)
- ---1 level
- w.setBlock(x, y-1, z, 0, 0)
- w.setBlock(x+1, y-1, z, 0, 0)
- w.setBlock(x-1, y-1, z, 0, 0)
- w.setBlock(x, y-1, z+1, 0, 0)
- w.setBlock(x, y-1, z-1, 0, 0)
- w.setBlock(x+1, y-1, z+1, 0, 0)
- w.setBlock(x-1, y-1, z-1, 0, 0)
- w.setBlock(x+1, y-1, z-1, 0, 0)
- w.setBlock(x-1, y-1, z+1, 0, 0)
- end
- function BOMB()
- xOnStart=x
- yOnStart=y
- zOnStart=z
- oskolok()
- x=x+3
- oskolok()
- x=xOnStart
- x=x-3
- oskolok()
- x=xOnStart
- z=z+3
- oskolok()
- x=x+3
- oskolok()
- x=xOnStart
- x=x-3
- oskolok()
- x=xOnStart
- z=zOnStart
- z=z-3
- oskolok()
- x=x+3
- oskolok()
- x=xOnStart
- x=x-3
- oskolok()
- x=xOnStart
- z=zOnStart
- y=yOnStart
- y=y+3
- xOnStart=x
- yOnStart=y
- zOnStart=z
- oskolok()
- x=x+3
- oskolok()
- x=xOnStart
- x=x-3
- oskolok()
- x=xOnStart
- z=z+3
- oskolok()
- x=x+3
- oskolok()
- x=xOnStart
- x=x-3
- oskolok()
- x=xOnStart
- z=zOnStart
- z=z-3
- oskolok()
- x=x+3
- oskolok()
- x=xOnStart
- x=x-3
- oskolok()
- x=xOnStart
- z=zOnStart
- y=yOnStart
- y=y-3
- xOnStart=x
- zOnStart=z
- oskolok()
- x=x+3
- oskolok()
- x=xOnStart
- x=x-3
- oskolok()
- x=xOnStart
- z=z+3
- oskolok()
- x=x+3
- oskolok()
- x=xOnStart
- x=x-3
- oskolok()
- x=xOnStart
- z=zOnStart
- z=z-3
- oskolok()
- x=x+3
- oskolok()
- x=xOnStart
- x=x-3
- oskolok()
- x=xOnStart
- y=yOnStart
- z=zOnStart
- w.setBlock(x+math.random(-12, 12), y+math.random(-12, 12), z+math.random(-12, 12), 10, 0)
- w.setBlock(x+math.random(-12, 12), y+math.random(-12, 12), z+math.random(-12, 12), 10, 0)
- w.setBlock(x+math.random(-12, 12), y+math.random(-12, 12), z+math.random(-12, 12), 10, 0)
- w.setBlock(x+math.random(-12, 12), y+math.random(-12, 12), z+math.random(-12, 12), 10, 0)
- w.setBlock(x+math.random(-12, 12), y+math.random(-12, 12), z+math.random(-12, 12), 10, 0)
- w.setBlock(x+math.random(-12, 12), y+math.random(-12, 12), z+math.random(-12, 12), 10, 0)
- w.setBlock(x+math.random(-12, 12), y+math.random(-12, 12), z+math.random(-12, 12), 10, 0)
- w.setBlock(x+math.random(-12, 12), y+math.random(-12, 12), z+math.random(-12, 12), 10, 0)
- w.setBlock(x+math.random(-12, 12), y+math.random(-12, 12), z+math.random(-12, 12), 10, 0)
- w.setBlock(x+math.random(-12, 12), y+math.random(-12, 12), z+math.random(-12, 12), 10, 0)
- require("computer").removeUser(BOMBER)
- print("ДЕРНАЯ АТАКА ЗАВЕРШЕНА!")
- os.execute("sh")
- end
- y=150
- function FIND()
- while true do
- id=w.getBlockId(x, y, z)
- if id==0 then y=y-1; FIND()
- else y=y-3; print("Y НАЙДЕН!ЯДЕРНАЯ АТАКА НАЧИНАЕТСЯ!"); BOMB()
- end
- end
- end
- function START()
- require("computer").addUser(BOMBER)
- print("ВВЕДИТЕ X")
- x=tonumber(io.read())
- print("ВВЕДИТЕ Z")
- z=tonumber(io.read())
- print("ПОИСК Y НАЧАЛСЯ!")
- FIND()
- end
- if DEBUGVER==false then
- print("НАЖМИТЕ НА ЭКРАН")
- _, _, _, _, _, BOMBER = event.pull("touch")
- if BOMBER=="AlexCC" then START()
- elseif BOMBER=="1Ridav" then START()
- elseif BOMBER=="cyber01" then START()
- elseif BOMBER=="Offline" then START()
- elseif BOMBER=="Asummonster" then START() --На время тестирования
- else print("АВТОРИЗАЦИЯ НЕ УСПЕШНА!!!"); os.sleep(3); require("computer").shutdown()
- end
- else START()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement