Files
opus-apps/common/etc/scripts/moveTo.lua
2020-05-11 17:26:43 -06:00

16 lines
280 B
Lua

local turtle = _G.turtle
turtle.run(function()
local GPS = require('opus.gps')
if not turtle.enableGPS() then
error('turtle: No GPS found')
end
local pt = {GPS}
if not turtle.pathfind(pt) then
error('Unable to go to location')
end
end)