Guest User

1.lua

a guest
Jan 14th, 2026
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.43 KB | None | 0 0
  1. --Opening the channel on this end as its in the main world
  2. modem = peripheral.wrap("back")
  3. modem.open(6)
  4.  
  5. --Waiting for the reply loop
  6. local event, side, channel, replyChannel, message, distance
  7. repeat
  8.     event, side, channel, replyChannel,  message, distance = os.pullEvent("modem_message")
  9. until channel == 6
  10.  
  11. print("Said:" .. tostring(message))
  12.  
  13. --need a "if reply = 'fuck' then setOutput("top", on)' code (if thats not it lol)
  14.  
Add Comment
Please, Sign In to add comment