Advertisement
Risk_exe

bot.lua

Feb 3rd, 2023
604
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.44 KB | None | 0 0
  1.  
  2. args = {...};
  3. orientation = 1; -- 1: N, 2: E, 3: S, 4: W
  4. local pos = vector.new(gps.locate());
  5.  
  6. -- function forward()
  7.  
  8. -- end
  9.  
  10. -- if pos.z == nil then
  11. --   print("please present arguments");
  12. --   return;
  13. -- end
  14.  
  15. local success, data = turtle.inspectDown();
  16.  
  17. if success then
  18.   print("Block name: ", data.name);
  19.   print("Block metadata: ", data.metadata);
  20. end
  21.  
  22. print("x: ", pos.x);
  23. print("y: ", pos.y);
  24. print("z: ", pos.z);
  25.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement