Advertisement
MagmaLP

Untitled

Feb 2nd, 2022 (edited)
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. mon = peripheral.wrap("top")
  2. mon.setBackgroundColor(32768)
  3. mon.setTextScale(1)
  4. mon.clear()
  5.  
  6.  
  7. function calc_color(color)
  8. return math.pow(2, color - 1)
  9. end
  10.  
  11. function msg(gap, line, color, groundb, text)
  12. mon.setBackgroundColor(calc_color(groundb))
  13. mon.setCursorPos(gap,line)
  14. mon.setTextColor(calc_color(color))
  15. text = mon.write(text)
  16. end
  17.  
  18. mon.setBackgroundColor(32768)
  19. mon.clear()
  20. msg(02,02,05,16,"Automatic Smeltery")
  21. msg(02,03,01,16,"~~~~~~~~~~~~~~~~~~")
  22. msg(02,05,01,16,"1 Iron Ore -> 2x Iron Inpot")
  23. msg(02,06,01,16,"1 Gold Ore -> 2x Gold Ingot")
  24. msg(02,07,01,16,"1 Tin Ore -> 2x Tin Ingot")
  25. msg(02,08,01,16,"1 Copper Ore -> 2x Copper Ingot")
  26. msg(02,09,01,16,"1 Ferrous Ore -> 2x Ferrous Ingot")
  27. msg(02,10,01,16,"1 Silver Ore -> 2x Silver Ingot")
  28. msg(02,11,01,16,"1 Stone Brick -> 1x Basalt Cobblestone")
  29. msg(02,12,01,16,"1 Lead Ore -> 1x Lead Ingot")
  30. msg(02,13,01,16,"1 Sticky Resin -> 3x Rubber")
  31. msg(02,14,01,16,"1 Sand -> 1x Glas")
  32. msg(02,15,01,16,"1 Cobblestone -> 1x Stone")
  33. msg(02,16,01,16,"1 Clay -> 1x Brick")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement