Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- lasers = {}
- connected = peripheral.getNames()
- for i = 0, table.maxn(connected) do
- if peripheral.getType(connected[i]) == "warpcore" then
- table.insert(lasers, connected[i])
- end
- end
- for i = 0, table.maxn(lasers) do
- peripheral.call(lasers[i], "mine")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement