Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --turtle code
- local h = fs.open("startup","w")
- h.write([[
- local modem
- for _,v in ipairs(peripheral.getNames()) do
- if peripheral.getType(v)=="modem" then
- modem = peripheral.wrap(v)
- modem.open(25565)
- rednet.open(v)
- end
- end
- ]])
- h.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement