This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
djeguer's profile picture

Player Sensor

Started by djeguer, 15 October 2016 - 11:12 AM
djeguer #1
Posted 15 October 2016 - 01:12 PM
Hello,

I will wish to find help for creating a super simple program, the idea, thanks to the sensor openperipheral I will wish to detect a specific player and send a signal to Redstone.

it's simple I know, but I find nothing on the net :)/>

Thank you for your help.
Bomb Bloke #2
Posted 16 October 2016 - 12:54 AM
Ok. So what was your question? Which bit do you actually need help with here?
Lupus590 #3
Posted 16 October 2016 - 03:22 PM
I'm going to make the assumption that you are a complete beginner.

First, make a program which loops and toggles a redstone signal from user input.

Second, using the lua program, explore the player sensor and learn how to use it.

Finally, adapt your program from the first step so that it now uses the player sensor.

You will need to know while loops and if statements, as well as the redstone API in order to complete the first step.