Advertisement
heerenp

simple botania MC turtle script

Oct 2nd, 2015
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.68 KB | None | 0 0
  1. local args = { ... }
  2. stopcode = false
  3. botslot = 1
  4. stoneslot = 2
  5.  
  6. if #args ~= 1 then
  7.   print( "Usage: botania <param1>" )
  8.   print( "-----------------------" )
  9.   print( "Harvests the param1 number of blocks" )
  10.   print( "Sourceblocks (stone or wood) go on top (barrel, DSU, chest)" )
  11.   print( "Resulting Botania blocks go in front store (barrel, DSU, chest)")
  12.   print( "Place 1 result block in my inventory slot 1 ")
  13.   return
  14. else
  15.   times = tonumber(args[1])
  16. end
  17.  
  18.  
  19.  
  20.  
  21. for i=1,times  do
  22.     turtle.select(stoneslot)
  23.     turtle.suckUp(1)
  24.     turtle.placeDown()
  25.    
  26.     turtle.select(botslot)
  27.     while not turtle.compareDown() do sleep (2) end
  28.     turtle.digDown()
  29.     turtle.drop(1)
  30.    
  31. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement