Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setCursorPos(1,1)
- print(" TREE CHOPPER v 5.5")
- print("-Made by KrafterKing")
- print("place any type of fuel in to refuel")
- while turtle.getFuelLevel() < 1 do
- turtle.refuel(5)
- end
- print("type b to start")
- local event, param1 = os.pullEvent ("char")
- if param1 == "b" then do
- turtle.detect()
- turtle.dig()
- turtle.forward()
- while turtle.detectUp() do
- turtle.digUp()
- turtle.up()
- end
- while not turtle.detectDown() do
- turtle.down()
- end
- term.clear()
- term.setCursorPos(1,1)
- print("hello, the job is done.")
- textutils.slowPrint("do you want to craft into planks? press Y for yes or N for no")
- local event, param2 = os.pullEvent ("char")
- local event, param3 = os.pullEvent ("char")
- if param2 == "y" then do
- turtle.craft(64)
- turtle.select(2)
- turtle.transferTo(12,64)
- textutils.slowPrint("crafted master, have a great day!")
- end
- else
- if param3 == "n" then do
- textutils.slowPrint("not crafting, you may take your wood now. Have a great day!")
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment