Advertisement
Risk_exe

bot.lua

Feb 3rd, 2023
561
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.61 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. function backward()
  11.   if orientation == 1 then
  12. end
  13.  
  14. function up()
  15.   turtle.digUp();
  16.   turtle.up();
  17. end
  18.  
  19. function down()
  20.   turtle.digDown();
  21.   turtle.down();
  22. end
  23.  
  24. -- if pos.z == nil then
  25. --   print("please present arguments");
  26. --   return;
  27. -- end
  28.  
  29.  
  30. local success, data = turtle.inspectDown();
  31.  
  32. if success then
  33.   print("Block name: ", data.name);
  34.   print("Block metadata: ", data.metadata);
  35. end
  36.  
  37. print("x: ", pos.x);
  38. print("y: ", pos.y);
  39. print("z: ", pos.z);
  40.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement