Advertisement
kisiseldwarf

write_message

Jul 18th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.28 KB | None | 0 0
  1. local args = { ... }
  2. if #args < 3 then
  3.     print("Need the location of the screen, the text and the size")
  4.     return 0
  5. end
  6. local monitor = peripheral.wrap(args[1])
  7. monitor.clear()
  8. monitor.setCursorPos(1,1)
  9. term.redirect(monitor)
  10. monitor.setTextScale(tonumber(args[3]))
  11. print(args[2])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement