Created
November 15, 2016 09:48
-
-
Save xDeda/4b8c1026b69b7f11b98d7335de34b43e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
p = peripheral.wrap("right") | |
i = 0 | |
while true do | |
info = p.getPlayers() | |
if #info > 0 then | |
redstone.setBundledOutput("left", color.white) | |
else | |
redstone.setBundledOutput("left", color.black) | |
end | |
sleep(1) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment