Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Seeds in slot 1
- -- bone meal in slot 2
- -- Call the program by the name of the program, space, and the number of items in the smallest stack
- -- Works with all crops except corn and cacti.
- -- requires Farming Turtle, block of dirt in front of and one block down from the turtle, and a
- -- jungle wood log two blocks in front of the turtle for coco beans.
- local plants = {...}
- if plants[1] > turtle.getItemCount(2) then
- print("Not enough bone meal in slot 2")
- return
- elseif plants[1] > turtle.getItemCount(1) then
- print("not enough seeds in slot 1")
- return
- end
- for i=1,plants[1] do
- turtle.dig()
- turtle.select(1)
- turtle.place()
- turtle.select(2)
- turtle.place()
- turtle.up()
- turtle.dig()
- turtle.down()
- turtle.dig()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement