Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- nsp = require("nsp_core")
- local args = { ... }
- local location = {["x"] = 0,["z"] = 0,["y"] = 0,["f"] = "N", ["name"] = "name not set"}
- if #args == 4 then
- nsp_core.set_location(args[1],args[2],args[3],args[4])
- elseif #args == 5 then
- nsp_core.set_location(args[1],args[2],args[3],args[4],args[5])
- elseif #args == 1 then
- location = nsp_core.unserialize("turtle_location")
- if location == nil then
- print("error, no turtle location to set")
- else
- nsp_core.set_location(args[1],location["x"],location["z"],location["y"],location["f"])
- end
- end
Add Comment
Please, Sign In to add comment