SHOW:
|
|
- or go back to the newest paste.
| 1 | localdetector = peripheral.find("environmentDetector")
| |
| 2 | entities = localdetector.scanEntities(2.5) | |
| 3 | while true do | |
| 4 | - | --term.clear() |
| 4 | + | |
| 5 | - | --term.setCursorPos(1,1) |
| 5 | + | |
| 6 | then print(#entities) | |
| 7 | if #entities >= 1 then | |
| 8 | redstone.setOutput("back",true)
| |
| 9 | else | |
| 10 | rs.setOutput("back",false)
| |
| 11 | end | |
| 12 | end | |
| 13 | sleep(0.5) | |
| 14 | ||
| 15 | end | |
| 16 |