Advertisement
Guest User

Untitled

a guest
Mar 3rd, 2015
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.08 KB | None | 0 0
  1. // LBCNetherWarts.txt
  2.  
  3. &deposit_crop = nether_wart;
  4.  
  5. &do_repairing = false;
  6. &repair_tool = gold_hoe;
  7.  
  8. &do_harvesting = true;
  9. &harvest_tool = diamond_pickaxe;
  10.  
  11. &do_planting = true;
  12. &replant_crop = nether_wart;
  13.  
  14. &heading_direction = "north"
  15. #heading_direction_num = 61;
  16.  
  17. &stepping_direction = "west";
  18. #stepping_direction_num = 2;
  19. //22
  20.  
  21. &do_checkinv = true;
  22. #chest_x = 8536;
  23. #chest_z = -3024;
  24.  
  25. #num_levels = 2;
  26.  
  27. #field_start_x = %XPOS%;
  28. #field_start_z = %ZPOS%;
  29.  
  30. for(#levelnum,1,%#num_levels%);
  31. // Process one tier/level
  32. exec(CropBotField.txt,"cropbotfield","%&do_repairing%","%&repair_tool%","%&do_harvesting%","%&harvest_tool%","%&do_planting%","%&replant_crop%","%&heading_direction%","%#heading_direction_num%","%&stepping_direction%","%#stepping_direction_num%","%&do_checkinv%", "%&deposit_crop%", "%#chest_x%", "%#chest_z%" );
  33. do; wait(); until(@cropbotfield_complete); unset(@cropbotfield_complete);
  34.  
  35. log("Walking to storage chest.");
  36. // Save last heading direction
  37. &heading_direction = %@&meesabot_heading_direction%;
  38.  
  39. // Save current location
  40. #return_x = %XPOS%;
  41. #return_z = %ZPOS%;
  42.  
  43. // Move to center column
  44. exec(WalkToX.txt,"walktox",8536);
  45. do; wait; until(@walktox_complete); unset(@walktox_complete);
  46.  
  47. // Move inside the building
  48. exec(WalkToZ.txt,"walktoz",-3024);
  49. do; wait; until(@walktoz_complete); unset(@walktoz_complete);
  50.  
  51. // Deposit crop
  52. log("Depositing %&deposit_crop% into storage chest.");
  53. look(180,235);
  54. wait(250ms);
  55. exec(EmptyItemToDoubleChest.txt,"emptyitemtodoublechest","%&deposit_crop%");
  56. do; wait; until(@emptyitemtodoublechest_complete); unset(@emptyitemtodoublechest_complete);
  57.  
  58. if(%#levelnum% < %#num_levels%);
  59. // Get one stack back
  60. log("Getting one stack of %&replant_crop% from chest.");
  61. look(180,235);
  62. wait(250ms);
  63. exec(GetStackOfCropFromChest.txt,"getstackofcropfromchest","%&replant_crop%");
  64. do; wait; until(@getstackofcropfromchest_complete); unset(@getstackofcropfromchest_complete);
  65. endif;
  66.  
  67. log("Moving back to saved location.");
  68. // Move back to saved z
  69. exec(WalkToZ.txt,"walktoz",%#return_z%);
  70. do; wait; until(@walktoz_complete); unset(@walktoz_complete);
  71.  
  72. // Move back to saved x
  73. exec(WalkToX.txt,"walktox",%#return_x%);
  74. do; wait; until(@walktox_complete); unset(@walktox_complete);
  75.  
  76. if(%#levelnum% < %#num_levels%);
  77. exec(ProcessLine.txt, "processline", "%&stepping_direction%", "0", "1", "");
  78. do; wait(); until(@processline_complete); unset(@processline_complete);
  79. exec(BotWalk.txt, "botwalk", "x,8536 z,-3029 x,8545 z,-3025 x,8534 z,-3028");
  80. do; wait(); until(@botwalk_complete); unset(@botwalk_complete);
  81. endif;
  82. next;
  83.  
  84. set(@cropbotmainauto_complete);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement