Advertisement
Oxolin

bot.lua

Apr 17th, 2024 (edited)
584
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local mv = require("/bot/move")
  2. local fr = require("/bot/fire")
  3. local modem = peripheral.find("modem")
  4. modem.open(43)
  5.  
  6. local ev,sd,cn,rcn,msg,dist
  7. repeat
  8.     ev,sd,cn,rcn,msg,dist=os.pullEvent("modem_message")
  9.     if msg == "fire" then
  10.         fr.fire()        
  11.     else
  12.         mv.move(msg)
  13.     end
  14. until false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement