Advertisement
guitarplayer616

Turtle Rednet Miner

Dec 5th, 2015
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.28 KB | None | 0 0
  1. --turtle code
  2.  
  3. local h = fs.open("startup","w")
  4. h.write([[
  5. local modem
  6. for _,v in ipairs(peripheral.getNames()) do
  7.         if peripheral.getType(v)=="modem" then
  8.                 modem = peripheral.wrap(v)
  9.         modem.open(25565)
  10.         rednet.open(v)
  11.         end
  12. end
  13. ]])
  14. h.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement