Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local whitelist = {
- ['plazter'] = true,
- }
- m = peripheral.wrap("right") -- player detector
- rednet.open("top")
- function right()
- if msg == "Plazter" then
- rs.setOutput("front")
- print("Plazter")
- end
- if not p1 == "Plazter" then
- print("dafuq?")
- end
- end
- while true do
- local event, p1 = os.pullEvent("player")
- local id, msg = rednet.broadcast()
- if p1 then
- rednet.broadcast(p1)
- end
- if rednet.receive() then
- right()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement