Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("ocs/apis/sensor")
- prox = sensor.wrap("right")
- while true do
- local targets = prox.getTargets()
- for name, basicDetails in pairs(targets) do
- if name == "leonardi" or name == "tortmancomith" or name == "Capt_Lugnut" then
- redstone.setOutput("top", true)
- sleep(3)
- redstone.setOutput("top", false)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment