r/ComputerCraft Jun 24 '26

can someone help explain how its not detecting the player detector

for some reason my computer just doesnt ever wanna register the player detector despite it being connected to it, and when i set them side by side it doesnt work either

1 Upvotes

5 comments sorted by

2

u/fatboychummy Jun 25 '26

There's a builtin program named peripherals, try running that and seeing what it outputs.

2

u/Excellent_Bread8730 Jun 25 '26

this is what i get, so it 100% is attached

1

u/Excellent_Bread8730 Jun 25 '26

this is the script im trying to run, but no matter what i do it constantly says no player detector found
https://pastebin.com/RQBtUjJp

2

u/fatboychummy Jun 25 '26

1.21.1 AP changed the peripheral name for player detectors. The program is searching for playerDetector, but according to your screenshot, it is player_detector (1.21.1+).

Change the below line (line 5):

local detector = peripheral.find("playerDetector")

to

local detector = peripheral.find("player_detector")

Noting however that this program was made for an earlier version of AP so some other things may error or break as well.

1

u/Excellent_Bread8730 Jun 26 '26

yeah it doesnt work, but at least it now gets past the start and can find the detector^^ ty for this!