Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local playerRange = 3
- local dector = peripheral.wrap("right")
- while (true)
- do
- if (dector.isPlayerInRange(playerRanger,"Granite_Glasses") or dector.isPlayerInRange(playerRange, "jdroid91")
- then
- redstone.setOutput("bottom", false)
- else
- redstone.setOutput("bottom", true)
- end
- os.sleep(0.5)
- end
Add Comment
Please, Sign In to add comment