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

Platform builder

Started by Kaikaku, 21 March 2015 - 06:19 AM
Kaikaku #1
Posted 21 March 2015 - 07:19 AM
Program tPlatform

Hi there! I just tidied up the code of my platform builder program and would like to share it with you.
I guess it's especially useful for sky island maps.

Features:
- builds any size of square platform (minimum is 3x1)
- turtle moves only within the space where the platform will be
- if turtle runs out of materials it just waits for resupplies
- turtle places half slabs spawnproof in the lower half (thx Robinn57)

Program:
http://pastebin.com/fbyxVzSX

Video:
[media]http://youtu.be/Pcf7pUeN020[/media]
Edited on 30 March 2015 - 06:07 AM
Robinn57 #2
Posted 28 March 2015 - 12:43 PM
This is a great program however I ran into a problem if I dont pick up my turtle to move it. For example the first run I did was a 30 x 20. then I told it to move over so it could do another mirrored vertion of the platform. So, after I got it in position with more mats I told it to go. It got though one stack. It was the stack the last run finised on. It then would not move on to the next stack. I found a way to fix this by putting after line 139, right above. for iY=1,userY,1 do, I put turtle.select(1). that way it acts as thought it had just been put down and is on the same slot number. I do hope this helps and it really is a great platform builder for moded skyblock since it puts half slabs down on the lower part..
Kaikaku #3
Posted 30 March 2015 - 08:05 AM
This is a great program however I ran into a problem if I dont pick up my turtle to move it. For example the first run I did was a 30 x 20. then I told it to move over so it could do another mirrored vertion of the platform. So, after I got it in position with more mats I told it to go. It got though one stack. It was the stack the last run finised on. It then would not move on to the next stack. I found a way to fix this by putting after line 139, right above. for iY=1,userY,1 do, I put turtle.select(1). that way it acts as thought it had just been put down and is on the same slot number. I do hope this helps and it really is a great platform builder for moded skyblock since it puts half slabs down on the lower part..

Well, on sky maps you really avoid picking up the turtle. That's the correct fix and it's very nice when users correct the bugs on their own ;)/>
Thank you, I updated the pastbin program.

With only air around, the turtle puts slabs in the upper half when placing down, and in the lower half when placing forward or up.
Well, I didn't plan the slabs beeing in the lower part. It's just because I pefer turtles moving within the space they build in.
Thanks for the info, I'll add it to the absolutly planned features :)/>
Deephallow #4
Posted 24 May 2015 - 09:27 PM
hello

Is it possible to add a function, put a torch every X block

thank you
Tooniis #5
Posted 10 June 2015 - 03:19 AM
Hi there! this is a useful application for multitasking in building, but I ran into a problem, when I tell the turtle about x and y , it starts building, then after building a bit, it gets stuck and reboot. I checked fuel and materials and they are available.

this is a screenshot (I destroyed the turtle after it got stuck):


Please help. :)/>