yosomith

MiningAge

Jan 31st, 2013
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 KB | None | 0 0
  1. text = {
  2. " Welcome To ",
  3. " Rules Digger v1.0 Rules ",
  4. " ",
  5. "Here in Digger is the only place to mine.",
  6. "Start from spawn boundaries and work",
  7. "your way out.",
  8. "Do not run off and mine in a random direction.",
  9. "We want to keep the world files small so",
  10. "keep things compact.",
  11. "Mining world will be deleted and reset",
  12. "every month. You will have a weeks notice.",
  13. " ",
  14. " ",
  15. " ",
  16. " Please use the portal ",
  17. " to travel to the nexus ",
  18. }
  19.  
  20. local monitorSide = "back"
  21. local monitor = peripheral.wrap(monitorSide)
  22. monitor.clear()
  23. monitor.setTextScale(1)
  24. local w,h = monitor.getSize()
  25. print(w .. ", " .. h)
  26. local startX = 2
  27. local startY = 1
  28.  
  29. for n = 1 , h do
  30. if n == 1 or n == 2 then
  31. monitor.setTextColour(colours.lightBlue)
  32. elseif n == 21 then
  33. monitor.setTextColour(colours.cyan)
  34. else
  35. monitor.setTextColour(256)
  36. end
  37. local line = text[n]
  38. monitor.setCursorPos(startX, startY + n)
  39. monitor.write( line )
  40. end
Advertisement
Add Comment
Please, Sign In to add comment