Posted 08 April 2013 - 01:51 AM
Hello everybody,
i saw some door programs lately and so i wanted to make my own program to open and close a path trough a wall. So here it is. It is tilable, so if you want you can make it 1x2 or even 30x2.
Download THD 1.0.0 Rednet
Turtle: Pin1vSRk
Computer: Dc2NKNms
How to set it up:
Download the programs with the pastebin code:
pastebin get <code> <name>
<code> are the combinations of latters and numbers above.
<name> shoud be 'startup' (without brackets)
To open and close the door from two sides you need two computers. Place them with the front on the wall and on the other side on that block a button. Place a modem on the back of the computer. Start the program with the name you gave it (i recommand using 'startup').
The turtle automatically realizes where it is. On the floor or the ceiling. Thatmeans you need the block which gets removed underneath the turtle or above the turtle. Set it up with destroy some blocks:
Spoiler
The blocks between are the blocks of the door. Have them placed before starting the turtle door program, otherwise the position wont get detected.
The turtles need one block space below or above depending if there are in the ceiling or the floor.
Start all programs, press the button and the door will open for you and after a brief time close.
Advanced coding stuff:
If you want to you can go into the code of the computer and change various variables:
time - How long the door should stay open.
side - Where te modem on the computer goes.
In the turtle's code you can change:
delay - How long the turtle waits before opening the door. If you have multiples doors (like a tresor) you can open them with a delay for a nice effect.
More programs made by myself:
Items Sorting Turtle — Set up a sorting layout with chests and let it sort items for you. Perfect for Quarries!
ULTIMATE WOOD CHOPPER — Set up a farm to chop wood or cut down single 1x1 or 2x2 trees.
Turtle Interactions - Simply naviagate the turtle with a menu
Two High Door - Opens one or more two high doors over rednet.
If there are any questions, suggestions, errors or bugs, feel free to leave a comment to improve this program pack.
Thank you for your attention.
UNOBTANIUM