Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local serverRack = peripheral.find("server_rack")
- print("Rack count: " .. serverRack.getRackCount())
- local positions = serverRack.getClusterPositions()
- for i, pos in ipairs(positions) do
- print("Rack " .. i .. ": x=" .. pos.x .. ", y=" .. pos.y .. ", z=" .. pos.z)
- end
Advertisement
Add Comment
Please, Sign In to add comment