Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ship = peripheral.find("warpdriveShipController")
- print("Press the 'M' key to show ship position")
- -- Loop to wait for key events
- while true do
- local event, key = os.pullEvent("key")
- if key == 50 then
- local mx, my, mz = ship.getLocalPosition()
- print("Jumping to X:" .. mx .. ", Z:" .. mz)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement