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

My Programs (Tunnel, HouseBuilder)

Started by JokerXXXX, 14 April 2012 - 09:31 PM
JokerXXXX #1
Posted 14 April 2012 - 11:31 PM
ComputerCraft: MiningTurtle Code


[left]Hey guys,[/left]
[left]I just started messing around with ComputerCraft, and I just threw this code together. It is a code (in Lua) that tells the turtle to make a 4 high (so you won't hit your head) tunnel/staircase that goes down. The turtle will also place down torches along the way in little "Pockets" so there'll be light! The turtle will go on until you stop it or it hits bedrock! If you find any glitches please tell me and give me suggestion on what next to code, but remember, I just started![/left]


[left]
Spoiler
[/left]
[left][/left]
[left]The GUI[/left]


[left][/left]
[left]The "Torch-Holes"[/left]


[left][/left]

[left]The Tunnel[/left]

[left][/left]


—————————————————————


ComputerCraft: HouseBuilder Program



[left]After having so much fun coding my first code, I decided to make another program! I invented this myself, with looking at anything, but I think there might be more out there! Well anyway, this code let's you command a turtle to build you a house. It does the frame and torches, but it doesn't do the door! I experimented around a little and figured out that turtles can't place doors. Well anyways, please tell me your opinion, and please give me suggestions![/left]


[left]Pics:[/left]
[left]
Spoiler[/left]
[left][/left]
[left]The inside[/left]


[left][/left]
[left]the house[/left]

[left]
[/left]
JokerXXXX #2
Posted 15 April 2012 - 03:13 PM
alright its fixed
Cherrie #3
Posted 18 April 2012 - 08:21 PM
Hey there nice job man, I'm a newb here too :)/>/> I like your mining prog. But the house prog - kinda messy ain't it? I bet you could just use functions instead if writing those turnpoints over and over… Made a house building prog myself, but never got to anything near 655 lines.
JokerXXXX #4
Posted 25 April 2012 - 11:18 PM
Hey there nice job man, I'm a newb here too :)/>/> I like your mining prog. But the house prog - kinda messy ain't it? I bet you could just use functions instead if writing those turnpoints over and over… Made a house building prog myself, but never got to anything near 655 lines.

thx! Yeah there is probably a function but I just experimented and this came out…
masterchief47 #5
Posted 09 May 2012 - 07:15 PM
Everytime i try to use your housebuilder program, i get this error;

housebuilder:233:atempt to index ? (a nil value)

i load up my turtle just like the program file says to. all i did different was rename the file to housebuilder. Would that have something to do with it?
et283 #6
Posted 17 August 2013 - 09:56 AM
would you mind if i used your housebuilder in youtube videos?? i will give credit to you clearly. I'm with some friends in a small youtube channel and this i thought would be a nice program to show them. Just for demonstration purposes