Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function adjustScreen(a,b,c,d,e)
- -- (-6525 195 6807) bottom left corner
- -- (-6520 199 6807) top right corner
- -- (-6525 199 6807) top left corner
- -- computer location (-6523 200 6807)
- -- relative top left corner (~-2 ~-1 ~)
- a = a or {0, 0, 0, 0, 0, 0}
- b = b or {0, 1, 0, 0, 1, 0}
- c = c or {0, 0, 0, 0, 0, 0}
- d = d or {0, 1, 0, 0, 1, 0}
- e = e or {0, 0, 1, 1, 0, 0}
- screenData = {a, b, c, d, e}
- for r, arrayData in ipairs(screenData) do
- for i, state in ipairs(arrayData) do
- local xa, ya, za = commands.getBlockPosition()
- local x = xa - 3 + i
- local y = ya - r
- if state == 1 then
- commands.exec("setblock " .. x .. " " .. y .. " " .. za .. " 510 15 replace")
- else if state == 0 then
- commands.exec("setblock " .. x .. " " .. y .. " " .. za .. " 510 0 replace")
- end
- end
- end
- end
- end
- rednet.open("top")
- ba = {0, 0, 0, 0, 0, 0}
- bb = {0, 0, 0, 0, 0, 0}
- bc = {0, 0, 0, 0, 0, 0}
- bd = {0, 0, 0, 0, 0, 0}
- be = {0, 0, 0, 0, 0, 0}
- while true do
- adjustScreen(ba,bb,bc,bd,be)
- print("Waiting for boot")
- id,message = rednet.receive()
- while true do
- if id == 281 and message == "boot" then
- print("Boot Sequence Initialised")
- aa = {1, 1, 1, 1, 1, 1}
- ab = {1, 0, 0, 0, 0, 1}
- ac = {1, 0, 0, 0, 0, 1}
- ad = {1, 0, 0, 0, 0, 1}
- ae = {1, 1, 1, 1, 1, 1}
- commands.exec("tellraw @a[r=15] {'text':'<SHE0P> Initialising Boot Sequence','color':'white'}")
- adjustScreen(aa,ab,ac,ad,ae)
- ac = {1, 0, 1, 1, 0, 1}
- adjustScreen(aa,ab,ac,ad,ae)
- sleep(1)
- adjustScreen()
- commands.exec("tellraw @a[r=15] {'text':'<SHE0P> Successfully booted','color':'white'}")
- sleep(1)
- commands.exec("tellraw @a[r=15] {'text':'<SHE0P> Hello.','color':'white'}")
- while true do
- adjustScreen()
- id,message = rednet.receive()
- if id == 281 and message == "penis" then
- ca = {0, 0, 1, 1, 0, 0}
- cb = {0, 0, 1, 1, 0, 0}
- cc = {0, 0, 1, 1, 0, 0}
- cd = {1, 1, 0, 0, 1, 1}
- ce = {1, 1, 0, 0, 1, 1}
- adjustScreen(ca,cb,cc,cd,ce)
- sleep(5)
- adjustScreen(ba,bb,bc,bd,be)
- else if id == 281 and message == "how are you" then
- aa = {0, 0, 0, 0, 0, 0}
- ab = {1, 1, 0, 0, 1, 1}
- ac = {0, 0, 0, 0, 0, 0}
- ad = {0, 1, 1, 1, 1, 0}
- ae = {0, 0, 0, 0, 0, 0}
- adjustScreen(aa,ab,ac,ad,ae)
- commands.exec("tellraw @a[r=15] {'text':'<SHE0P> I am bad.','color':'white'}")
- sleep(5)
- adjustScreen(ba,bb,bc,bd,be)
- end
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement