MFeltmann
Jul 27th, 2026 (edited)
1
0
Never
This is comment for paste Untitled
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. i suggest you search for a monitor instead with this code line 264 - 269
  2.  
  3. -- Monitor init
  4. local function findMonitor()
  5. for _, name in ipairs(peripheral.getNames()) do
  6. if peripheral.getType(name) == "monitor" then
  7. return peripheral.wrap(name), name
  8. end
  9. end
  10. return nil, nil
  11. end
  12.  
  13. local mon, monitorName = findMonitor()
  14.  
  15. if not mon then
  16. print("Error: No monitor found")
  17. return
  18. end
  19.  
  20. if mon.setTextScale then
  21. mon.setTextScale(1)
  22. end
  23.  
  24. it will also error out if no moniter is found
Advertisement
Add Comment
Please, Sign In to add comment