Advertisement
squidingtin

trurtle test

Nov 25th, 2024 (edited)
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.40 KB | None | 0 0
  1. local modem = peripheral.find("modem")
  2. if modem then
  3.     -- Open the modem on channels 0 to 100
  4.     for i = 0, 100 do
  5.         modem.open(i)  -- Ensure the modem is open on channel i
  6.         modem.transmit(i, 0, "Test Message: " .. i)  -- Send the message with the channel number
  7.         print("Message sent on channel " .. i .. ": Test Message: " .. i)
  8.     end
  9. else
  10.     print("No modem found!")
  11. end
  12.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement