Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mon = peripheral.wrap("top")
- mon.setTextScale(5)
- rednet.open("back")
- os.pullEvent()
- event = "rednet_message"
- p1 = senderID
- p2 = message
- p3 = distance
- while(true)
- do
- local event, p1, p2, p3 = os.pullEvent()
- if event=="rednet_message" then
- if p2 == 51 then
- redstone.setOutput("right", true)
- mon.write("PLAYER ENTERED BUILDING")
- sleep(5)
- mon.clear
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement