thatparadox

Radar Example

Mar 5th, 2019
159
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. radar = peripheral.wrap("right")
  2. mon = peripheral.wrap("top")
  3.  
  4. term.clear()
  5. term.setCursorPos(1,1)
  6. print("By Willtop")
  7. mon.setTextScale(1)
  8.  
  9. while true do
  10.     entities = radar.getEntities()
  11.     mon.clear()
  12.     for i = 1, #entities do
  13.         mon.setCursorPos(1,i)
  14.         mon.write(entities[i].name.." is an arsehole.")
  15.     end
  16.     sleep(2)
  17. end
RAW Paste Data