Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local whitelist = {}
- whitelist.tjwato = true
- whitelist.Jazza_Hat = true
- whitelist.CausticFury = true
- whitelist.Nevercast = true
- t = peripheral.wrap("top")
- function isPLayerNearby()
- nearby = detect.getNearbyPlayers()
- for i,v in ipairs(nearby) do
- if whitelist[v.player] then
- return true
- end
- end
- return false
- end
- while true do
- if isPLayerNearby() then
- redstone.setOutput("top", true)
- sleep(10)
- redstone.setOutput("top", false)
- end
- sleep(0.5)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement