Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("API/move")
- tArgs = {...}
- if type(tArgs[1]) == "number" then
- if tArgs[5] == nil then
- move.moveTo(tArgs[1], tArgs[2], tArgs[3], tArgs[4])
- else
- move.moveTo(tArgs[1], tArgs[2], tArgs[3], tArgs[4], "dig")
- end
- else
- data = fs.open("Locs/"..tArgs[1], "r")
- tgtx = tonumber(data.readLine())
- tgty = tonumber(data.readLine())
- tgtz = tonumber(data.readLine())
- tgth = tonumber(data.readLine())
- data.close()
- if tArgs[2] == nil then
- move.moveTo(tgtx, tgty, tgtz, tgth)
- else
- move.moveTo(tgtx, tgty, tgtz, tgth, "dig")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement