* canvas overhaul * editor 2.0 * more tweaks * more editor work * completions + refactor * cleanup + editor additions * cleanup + undo overhaul * editor recent/peripherals/redo + cleanup * editor path issues * cleanup * changes for deprecated ui methods - recolor milo - make turtle scripts run again - mob rancher improvements * can now use named colors
18 lines
310 B
Lua
18 lines
310 B
Lua
local turtle = _G.turtle
|
|
|
|
turtle.run(function()
|
|
_G.requireInjector(_ENV)
|
|
|
|
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)
|