MagmaLP

bahntest

Aug 24th, 2025 (edited)
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.52 KB | None | 0 0
  1. -- railmap.lua
  2. -- CC 1.5 IDT fixed
  3. -- Zeichnet die Bahnkarte auf den Monitor rechts
  4.  
  5. local mon = peripheral.wrap("right")
  6. if not mon then
  7.     error("Kein Monitor rechts gefunden")
  8. end
  9.  
  10. mon.setTextScale(1)
  11. mon.setBackgroundColor(colors.black)
  12. mon.setTextColor(colors.white)
  13. mon.clear()
  14.  
  15. local map = {
  16.     "                                                               ",
  17.     "                                                               ",
  18.     "                                                               ",
  19.     "    [Teamhall]-----------------\\       [Upper Spawn]          ",
  20.     "        ^                      |             |                 ",
  21.     "        |                      |             |                 ",
  22.     "   [Station 4]           /---] | [<----[Lower Spawn]           ",
  23.     "        ^                |     |             ^                 ",
  24.     "        |                |     |             |                 ",
  25.     "   [Station 3]           |     |        [Station 7]            ",
  26.     "        ^                |     |             ^                 ",
  27.     "        |                |     |             |                 ",
  28.     "   [Station 2]           |     |        [Station 6]            ",
  29.     "        ^                |     |             ^                 ",
  30.     "        |                |     |             |                 ",
  31.     "   [PvP / Mall]<---------/     \\------->[Station 5]           ",
  32. }
  33.  
  34. for i, line in ipairs(map) do
  35.     mon.setCursorPos(1, i)
  36.     mon.write(line)
  37. end
  38.  
Advertisement
Add Comment
Please, Sign In to add comment