Grauly

CC_IEC-OS signs v1

Apr 27th, 2021 (edited)
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.83 KB | None | 0 0
  1. mon = peripheral.wrap("front")
  2.  
  3. w1 = "EnderIO"
  4. w3 = "Mekanism"
  5. w2 = "Reactor"
  6.  
  7. function printArrows()
  8.  mon.setCursorPos(3,2)
  9.  mon.write("|")
  10.  mon.setCursorPos(3,3)
  11.  mon.write("|")
  12.  mon.setCursorPos(1,4)
  13.  mon.write("<-#")
  14.  
  15.  x,y = mon.getSize()
  16.  
  17.  mon.setCursorPos(x-2,2)
  18.  mon.write("|")
  19.  mon.setCursorPos(x-2,3)
  20.  mon.write("|")
  21.  mon.setCursorPos(x-2,4)
  22.  mon.write("#->")
  23. end
  24.  
  25. length = string.len(w1)+string.len(w2)
  26. mon.clear()
  27. mon.setCursorPos(1,1)
  28. mon.write(w1)
  29. x,y = mon.getSize()
  30. for i=1,(x-length),1 do
  31.     mon.write(" ")
  32. end
  33. mon.write(w2)
  34. length = (string.len(w3)-1)/2
  35. x,y = mon.getSize()
  36. x = x+2
  37. mon.setCursorPos(((x-1)/2)-length,2)
  38. mon.write(w3)
  39. mon.setCursorPos(((x-1)/2),3)
  40. mon.write("|")
  41. mon.setCursorPos(((x-1)/2),4)
  42. mon.write("|")
  43. mon.setCursorPos(((x-1)/2)-1,5)
  44. mon.write("\\#/")
  45. printArrows()
Add Comment
Please, Sign In to add comment