This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Jappards's profile picture

Hidden door program: mining turtle

Started by Jappards, 07 April 2013 - 07:08 AM
Jappards #1
Posted 07 April 2013 - 09:08 AM
if you ever needed a hidden 1x2 turtledoor, here is my hidden door program.
needed: blocks, at least a mining turtle.
code:

function TwoUp()
turtle.Up()
turtle.Up()
end
function RemoveDoor()
turtle.down()
turtle.dig()
turtle.down()
turtle.dig()
TwoUp()
end
function PlaceDoor()
turtle.down()
turtle.place()
turtle.down()
turtle.place()
TwoUp()
end
RemoveDoor()
sleep(20)
PlaceDoor()

tutorial:
  1. make a frame where a 1x2 (vertical) door fits in.
  2. place the turtle behind the frame on the upside facing the frame.
  3. place the blocks you wanted to be the door on a 1x2 (vertical) inside that frame.
Note: this program doesn`t respond to redstone or any wireless modems, you need to get a startup program to do this or you edit this program or the startup.
LuaEclipser #2
Posted 07 April 2013 - 09:45 AM
Lua is all about challenges. try to make it wireless and challenge your self!
Jappards #3
Posted 07 April 2013 - 08:33 PM
sure, i will try to make it wireless with the wireless modems. i am a little bit of a noob at coding.
believe it or not, but i learned lua from a Java tutorial.