Skip to content

Instantly share code, notes, and snippets.

@xDeda
Created November 15, 2016 09:48
Show Gist options
  • Save xDeda/4b8c1026b69b7f11b98d7335de34b43e to your computer and use it in GitHub Desktop.
Save xDeda/4b8c1026b69b7f11b98d7335de34b43e to your computer and use it in GitHub Desktop.
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