antonsavov

Untitled

Feb 2nd, 2017
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. --tutorial 19 obstacle 2
  2. os.loadAPI('texthelp')
  3. local text = "To change the active item from your inventory use the number keys or the mouse scroll. You can break only resource blocks by pointing the axe at them and holding the left mouse button. You can place a block with the right mouse button. CREATE A HOUSE using the NATURE RESOURCE with the green tree icon. /n Notice that the detectors turn into EXTENDER blocks inside the house."
  4. local c = 'green'
  5. local highlights = {
  6. {word = 'CREATE', color = c},
  7. {word = 'A', color = c},
  8. {word = 'HOUSE', color = c},
  9. {word = 'NATURE', color = c},
  10. {word = 'RESOURCE', color = c}
  11. }
  12. local monitor = peripheral.wrap('top')
  13. monitor.setTextScale(1)
  14. local w,h = monitor.getSize()
  15. texthelp.printToScreenColor(monitor,text,w,highlights,2,2, colors.white)
Add Comment
Please, Sign In to add comment