LUModder

[CC] Health Icon Display

Jul 11th, 2016
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.60 KB | None | 0 0
  1. -- Made by Flex based on odduser's code
  2. -- Requires only 1x1 monitor
  3. -- Used for health icon display sign
  4.  
  5. local m = peripheral.find("monitor")
  6. m.setTextScale(0.5)
  7. m.clear()
  8.  
  9. local h1 = "    +++++    "
  10. local h2 = "+++++++++++++"
  11.  
  12. m.setTextColor(colors.red)
  13.  
  14. m.setCursorPos(02,01) m.write(h1)
  15. m.setCursorPos(02,02) m.write(h1)
  16. m.setCursorPos(02,03) m.write(h1)
  17. m.setCursorPos(02,04) m.write(h2)
  18. m.setCursorPos(02,05) m.write(h2)
  19. m.setCursorPos(02,06) m.write(h2)
  20. m.setCursorPos(02,06) m.write(h2)
  21. m.setCursorPos(02,07) m.write(h1)
  22. m.setCursorPos(02,08) m.write(h1)
  23. m.setCursorPos(02,09) m.write(h1)
Advertisement
Add Comment
Please, Sign In to add comment