Skip to content

Instantly share code, notes, and snippets.

@TheBunnyMan123
Created May 30, 2024 09:17
Show Gist options
  • Save TheBunnyMan123/1efad225e3f738cb0e9d1e382741498c to your computer and use it in GitHub Desktop.
Save TheBunnyMan123/1efad225e3f738cb0e9d1e382741498c to your computer and use it in GitHub Desktop.
Setup ComputerCraft GPS servers
print("X?")
x = tonumber(read())
print("Y?")
y = tonumber(read())
print("Z?")
z = tonumber(read())
file = fs.open("/startup.lua", "w")
file.write('shell.run("gps", "host", ' .. x .. ', ' .. y .. ', ' .. z .. ')')
file.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment