Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local sides = peripheral.getNames()
- local data
- local shipcores = {}
- for _, side in pairs(sides) do
- if peripheral.getType(side) == "warpdriveShipController" then
- print("Wrapping " .. side)
- table.insert(shipcores, peripheral.wrap(side))
- table.sort(shipcores, function(a, b) return a.getShipSize > b.getShipSize end)
- end
- end
- for _, shipcore in pairs(shipcores) do
- print(shipcore.getShipSize)
- end
Add Comment
Please, Sign In to add comment