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

Lazy Nub Stair Builder

Started by LazyNub, 19 May 2013 - 06:56 PM
LazyNub #1
Posted 19 May 2013 - 08:56 PM
Lazy Nub Stairs v0.04

lava resistant blocks in slot 1 (optional)
fuel in slot 15 (coal, charcoal, lava bucket so on..)
torches in slot 16 (optional)

Will build downward, straight or spiral single width stair case.

It will place torches if you wish and at any
distance apart you specify.

Suggestion: Torches 7 apart.

Also will ensure there is always a step placed
but optionally will build 100% enclosed stair well
(unless random mob interrupts builder)
in order to traverse lava and water areas safely.

if you select secure building, place lava resistant
blocks in slot 1.

fuel required is 2 times stair depth for normal stairs
or 4 times stair depth for secure stairs.

Turtle will run a fuel level check before digging.
fuel slot is 15

Original Post located at: http://www.computerc...-stair-builder/

Original Video located at:
[media]http://www.youtube.com/watch?v=cLrrzgaqN9c[/media]

Updated Pastebin Located at: http://pastebin.com/iLgK1kFf

pastebin get iLgK1kFf lnsb

start with: lnsb

UPDATED VIDEO:
[media]http://youtu.be/vNGS3a5_qUE[/media]
unobtanium #2
Posted 21 May 2013 - 09:25 AM
Great work :D/>
Some pictures would be very nice.
LazyNub #3
Posted 23 May 2013 - 01:37 AM
Demo of latest version added.
unobtanium #4
Posted 23 May 2013 - 07:33 AM
Now add a refuel option for the user as well. So why let the player exit the program if there is not enough fuel in it? That is like punish him for not doing it earlier :D/> Simply say where the player should place the coal in and the turltle go and try to refuel from the given slot until it has enough.

Add a waiting timer after it dig out a block and detect once again if a block is above or in front Nevermind. 0.4 seconds should be enough :s

You also should be carefully by labeling multiple turtles/computers with the same name. I found out that they potentionally share their files/variables/programs ect after a restart.
theoriginalbit #5
Posted 23 May 2013 - 07:35 AM
Simply say where the player should place the coal in and the turltle go and try to refuel from the given slot until it has enough.
And in the new ComputerCraft you can use turtle.refuel(0) to confirm that what was added is a fuel source, and if it isn't you can yell at the user. :P/>
unobtanium #6
Posted 23 May 2013 - 07:37 AM
And in the new ComputerCraft you can use turtle.refuel(0) to confirm that what was added is a fuel source, and if it isn't you can yell at the user. :P/>

Oh wow. I looked for such an if statement <3 Never tought that it would be such easy xD Thank you!
theoriginalbit #7
Posted 23 May 2013 - 08:00 AM
Oh wow. I looked for such an if statement <3 Never tought that it would be such easy xD Thank you!
Same can be done with turtle.craft(0)
LazyNub #8
Posted 23 May 2013 - 08:39 PM
Okay added a fueling stage.. Happy stair climbing!

ToDo List:

Fix secure spiral building
Add optional turtle return to surface option
unobtanium #9
Posted 24 May 2013 - 06:20 AM
This program ist accually getting better and better. You should rewrite and organize your original post a bit, because it is very difficulty to read and see, what is important if i want to "this" or "that". For example some subtitles would be nice to have. You also can change the post main topic, buy clicking on "Use Full Editor" right next to the "Save Changes" button while you are editing your post. That will keep your version number running ;D
LazyNub #10
Posted 25 May 2013 - 12:38 AM
Cool, I was wondering how to edit the title. :)/>
LazyNub #11
Posted 02 June 2013 - 12:42 AM
Made some updates.. Here is a video just cause I like Zycraft Blocks. :)/>

http://youtu.be/vNGS3a5_qUE
unobtanium #12
Posted 02 June 2013 - 05:37 AM
Link above does not work for me :S
LazyNub #13
Posted 02 June 2013 - 06:16 AM
Link above does not work for me :S

Hope it clears up for you soon.. it's not that informative just showing off the spiral stairs with zycraft blocks :)/>
unobtanium #14
Posted 02 June 2013 - 06:39 AM
I mean the pastebin link…
Somehow i am getting linked to here if i click the link in the OP
LazyNub #15
Posted 02 June 2013 - 07:40 AM
Thanks, all fixed now.
gicon #16
Posted 23 October 2013 - 11:26 AM
http://i.imgur.com/G4KihpG.png

any idea on what I'm doing wrong mate?

NNNEEeVVVERRRMIND! Figured it out, was because there isn't a fuel requirement on my server.

Commented out lines 337 to 354 and all is well, thanks for this mate. :)/>