RedstoneChips

playerid

The playerid chip captures the unique identifier of any player who passes over one of it’s interface blocks, and toggles a clock pin to indicate a player has passed over it.

This requires a minimum of two output pins. The first is the clock output which toggles whenever a player passed over an interface, and the rest output the players unique identifier.

Optionally this chip may have one or two input pins. The first input pin is a disable pin. If this pin is on, players will be ignored and all outputs will be turned off. The second is a reset pin, which when toggled will reset all outputs to an off state.

Note, the unique id of a player is only valid while the player is logged into the server. If the player logs off and back on, they will be assigned a new ID.

source code


I/O setup

Sign text

  1. playerid

Version history: Added to SensorLibrary 0.3

Fork me on GitHub