Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[ this program is for having a door in a wall eg.
- Cross section g=wall. t=turtle. b=button
- ggbgggg
- ggtgggg
- ]]--
- --[[ rename the program startup and put it on a mining turtle in
- The configuration above
- ]]--
- function waiting()
- os.pullEvent("redstone")
- openDoor()
- end
- function openDoor()
- turtle.dig()
- turtle.forward()
- turtle.dig()
- turtle.digUp()
- turtle.back()
- turtle.digUp()
- turtle.back()
- wait(5)
- closeDoor()
- end
- function closeDoor()
- turtle.forward()
- turtle.placeUp()
- turtle.forward()
- turtle.placeUp()
- turtle.back()
- turtle.place()
- turtle.back()
- turtle.place()
- waiting()
- end
- waiting()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement