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

Flat surface builder

Started by ryanv09, 21 September 2012 - 03:10 AM
ryanv09 #1
Posted 21 September 2012 - 05:10 AM
I made a program called 'flat' which has the turtle build a flat surface, with the bounds of the surface defined by the arguments to the program.
You call it like this: "flat X Y", where X and Y are the length and width of the desired surface. The turtle will begin placing whatever blocks it has in its inventory (it pauses and waits for a refill when empty).

So, for example, if I want to build a flat surface that is 5 blocks by 5 blocks, I would call "flat 5 5".

There is a variable called 'slots' in the file. This represents how many inventory slots the turtle has (it checks the last slot to see if it has any materials left to place). The default value is 16. This can be changed to 9 to accommodate versions of the turtle which have 9 slots.

I find it quite useful for building floors of any building.

http://pastebin.com/C2NDUjd3


Any comments/criticisms?
ThePocketProductions #2
Posted 27 September 2012 - 12:09 AM
you should put "pastebin get C2NDUjd3 (Name Here)" on the post… makes it easy for newbies to get the program on the computer/turtle.
Ralnick #3
Posted 06 October 2012 - 04:52 PM
deleted
Edited on 25 October 2012 - 06:31 AM