Advertisement
Tommo5261

sheep101

Jan 6th, 2020
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.51 KB | None | 0 0
  1. function adjustScreen(a,b,c,d,e)
  2.     -- (-6525 195 6807) bottom left corner
  3.     -- (-6520 199 6807) top right corner
  4.  
  5.     -- (-6525 199 6807) top left corner
  6.     -- computer location (-6523 200 6807)
  7.     -- relative top left corner (~-2 ~-1 ~)
  8.  
  9.     a = a or {0, 0, 0, 0, 0, 0}
  10.     b = b or {0, 1, 0, 0, 1, 0}
  11.     c = c or {0, 0, 0, 0, 0, 0}
  12.     d = d or {0, 1, 0, 0, 1, 0}
  13.     e = e or {0, 0, 1, 1, 0, 0}
  14.    
  15.     screenData = {a, b, c, d, e}
  16.    
  17.     for r, arrayData in ipairs(screenData) do
  18.    
  19.         for i, state in ipairs(arrayData) do
  20.             local xa, ya, za = commands.getBlockPosition()
  21.  
  22.             local x = xa - 3 + i
  23.             local y = ya - r
  24.        
  25.             if state == 1 then
  26.                 commands.exec("setblock " .. x .. " " .. y .. " " .. za .. " 510 15 replace")
  27.             else if state == 0 then
  28.                 commands.exec("setblock " .. x .. " " .. y .. " " .. za .. " 510 0 replace")
  29.                 end
  30.             end
  31.         end
  32.     end
  33. end
  34.  
  35. rednet.open("top")
  36. ba = {0, 0, 0, 0, 0, 0}
  37. bb = {0, 0, 0, 0, 0, 0}
  38. bc = {0, 0, 0, 0, 0, 0}
  39. bd = {0, 0, 0, 0, 0, 0}
  40. be = {0, 0, 0, 0, 0, 0}
  41.  
  42. while true do
  43.     adjustScreen(ba,bb,bc,bd,be)
  44.  
  45.     print("Waiting for boot")
  46.     id,message = rednet.receive()
  47.    
  48.     while true do
  49.         if id == 281 and message == "boot" then
  50.             print("Boot Sequence Initialised")
  51.             aa = {1, 1, 1, 1, 1, 1}
  52.             ab = {1, 0, 0, 0, 0, 1}
  53.             ac = {1, 0, 0, 0, 0, 1}
  54.             ad = {1, 0, 0, 0, 0, 1}
  55.             ae = {1, 1, 1, 1, 1, 1}
  56.    
  57.             commands.exec("tellraw @a[r=15] {'text':'<SHE0P> Initialising Boot Sequence','color':'white'}")
  58.  
  59.             adjustScreen(aa,ab,ac,ad,ae)
  60.             ac = {1, 0, 1, 1, 0, 1}
  61.             adjustScreen(aa,ab,ac,ad,ae)
  62.             sleep(1)
  63.    
  64.             adjustScreen()
  65.             commands.exec("tellraw @a[r=15] {'text':'<SHE0P> Successfully booted','color':'white'}")
  66.             sleep(1)
  67.             commands.exec("tellraw @a[r=15] {'text':'<SHE0P> Hello.','color':'white'}")
  68.            
  69.             while true do
  70.                 adjustScreen()
  71.                 id,message = rednet.receive()
  72.        
  73.                 if id == 281 and message == "penis" then
  74.                     ca = {0, 0, 1, 1, 0, 0}
  75.                     cb = {0, 0, 1, 1, 0, 0}
  76.                     cc = {0, 0, 1, 1, 0, 0}
  77.                     cd = {1, 1, 0, 0, 1, 1}
  78.                     ce = {1, 1, 0, 0, 1, 1}
  79.                     adjustScreen(ca,cb,cc,cd,ce)
  80.                     sleep(5)
  81.                     adjustScreen(ba,bb,bc,bd,be)
  82.                 else if id == 281 and message == "how are you" then
  83.                     aa = {0, 0, 0, 0, 0, 0}
  84.                     ab = {1, 1, 0, 0, 1, 1}
  85.                     ac = {0, 0, 0, 0, 0, 0}
  86.                     ad = {0, 1, 1, 1, 1, 0}
  87.                     ae = {0, 0, 0, 0, 0, 0}
  88.                     adjustScreen(aa,ab,ac,ad,ae)
  89.                     commands.exec("tellraw @a[r=15] {'text':'<SHE0P> I am bad.','color':'white'}")
  90.                     sleep(5)
  91.                     adjustScreen(ba,bb,bc,bd,be)
  92.                     end
  93.                 end
  94.             end
  95.         end
  96.     end
  97. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement