LukyKrob

Text na monitor

Apr 6th, 2015 (edited)
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1. local mon=peripheral.wrap("left")
  2.  
  3. local a = "Tovarny"
  4. local b = "Vesnice"
  5.  
  6. function clear()
  7.     mon.clear()
  8.     mon.setBackgroundColor(colors.blue)
  9.     mon.setTextColor(colors.yellow)
  10.     mon.clear()
  11.     mon.setTextScale(2)
  12.     mon.setCursorPos(2,2)
  13. end
  14.  
  15. while true do
  16.     if redstone.getInput("back") == true then
  17.         clear()
  18.         mon.write(a)
  19.     else
  20.         clear()
  21.         mon.write(b)
  22.     end
  23.     sleep(1)
  24. end
  25.  
Add Comment
Please, Sign In to add comment