Advertisement
BitBoiii

Untitled

Apr 19th, 2020
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. mon = peripheral.wrap("top")
  2. mon.setTextScale(5)
  3. rednet.open("back")
  4. os.pullEvent()
  5. event = "rednet_message"
  6. p1 = senderID
  7. p2 = message
  8. p3 = distance
  9. while(true)
  10. do
  11. local event, p1, p2, p3 = os.pullEvent()
  12. if event=="rednet_message" then
  13. if p2 == 51 then
  14. redstone.setOutput("right", true)
  15. mon.write("PLAYER ENTERED BUILDING")
  16. sleep(5)
  17. mon.clear
  18. end
  19. end
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement