Muzze77

PrintColorText

Sep 24th, 2016
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.80 KB | None | 0 0
  1. shell.run("clear")
  2. text = {"Die Quarry [neben der Goldkiste]","baut für euch automatisch erze ab.", "Dazu benötigt sie Energie in Form","von MJ [Minecraft Joule", "","Da aus IC2 Maschinen nur eu/t kommt","und die Maschienen von BC uneffizient", "sind, müssen Alternativen her.","Wie unten zu sehen gibt es die Möglich-","keit der Converter. Diese können aus","eu/t in [HV,MV,LV] -> MJ machen und ","umgekehrt. MJ -> eu/t"}
  3. mon = peripheral.wrap("back")
  4. mon.setTextScale(1)
  5. gx, gy = mon.getSize()
  6. col = {colors.white,colors.brown,colors.blue,colors.orange,colors.lime,colors.yellow,colors.green,colors.red}
  7. while true do
  8. f = math.random(1,table.maxn(col))
  9. mon.setTextColor(col[f])
  10. for x = 1, table.maxn(text),1 do
  11.  
  12.  
  13. mon.setCursorPos(1,x)
  14.  
  15. mon.clearLine(x)
  16.  
  17. mon.write(text[x])
  18.  
  19. end
  20. sleep(1)
  21. end
Add Comment
Please, Sign In to add comment