Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- dig a hole and put water at bottom
- local args = {...}
- if not (#args == 2) then
- print("Usage: hole [depth] [water height]")
- else
- print("Place items as follows...")
- print("-------------------------")
- print("| Water bucket in 1")
- print("| Sign in 2")
- while (turtle.getItemCount(1)==0) and (turtle.getItemCount(2)==0) do
- os.sleep(0.1)
- end
- for i=args[2],args[1] do
- turtle.digDown()
- turtle.down()
- end
- turtle.select(1)
- turtle.placeUp()
- for i=1,args[2]
- turtle.digDown()
- turtle.down()
- end
- turtle.select(2)
- turtle.placeUp()
- turtle.digDown()
- turtle.down()
- end
Advertisement
Add Comment
Please, Sign In to add comment