Advertisement
jdroid91

chunkListen

Jan 18th, 2024 (edited)
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.46 KB | None | 0 0
  1. rednet.open("left")
  2. local warper = peripheral.wrap("right")
  3.  
  4. while true do
  5.     id, message = rednet.receive()
  6.    
  7.     if (message == "Refuel")
  8.     then
  9.         local index = 1
  10.         while (index <= 16)
  11.         do
  12.             turtle.select(index)
  13.             turtle.drop()
  14.             index = index + 1
  15.         end
  16.        
  17.         rednet.send(48, "Continue Refuel")
  18.     elseif (message == "Finish Refuel")
  19.     then
  20.         shell.run("refuel")
  21.     end
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement