Advertisement
MagmaLP

main

May 26th, 2024
515
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.43 KB | None | 0 0
  1. -- main.lua
  2.  
  3. -- Importiere die API
  4. local colorAPI = require("colorAPI")
  5.  
  6. -- Initialisiere den Monitor
  7. local monitor = peripheral.wrap("top") -- Passe diesen Namen an den Namen deines Monitors an
  8. monitor.setTextScale(0.5)
  9. monitor.clear()
  10. monitor.setCursorPos(1, 1)
  11.  
  12. -- Schreibe farbigen Text und Hintergrundfarben auf den Monitor
  13. colorAPI.msg("Hello &aWorld &&1from &cComputerCraft &&ewith &&achanging &&fbackgrounds", monitor)
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement