Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local detector = peripheral.find("playerDetector")
- if detector == nil then error("playerDetector not found") end
- while true do
- if detector.isPlayersInRange(8) == true then redstone.setOutput("back",true, 15) else redstone.setOutput("back",false)
- end
- sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement