Advertisement
Risk_exe

bot.lua

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