Advertisement
Indie_Rogers

rednet client program

May 5th, 2023 (edited)
976
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.41 KB | None | 0 0
  1. ---@diagnostic disable: lowercase-global
  2.  
  3. io.write('please remember to NOT include the "minecraft:" prefix in your answer.')
  4. function sendRequest()
  5.     io.write('What item would you like?')
  6.     io.write('')
  7.     local response = io.read()
  8.     rednet.broadcast(tostring(response))
  9.     local ignore, serverCallBack = rednet.receive()
  10.     io.write(tostring(serverCallBack))
  11. end
  12.  
  13. while true do
  14.     sendRequest()
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement