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

Simple Programs with Turtle

Started by Runeslielo, 11 April 2013 - 07:37 AM
Runeslielo #1
Posted 11 April 2013 - 09:37 AM
I'm trying to make a customizable size for a cube that the turtle would dig out.
The issue is that it seems some of the turns the turtle does are flipped, and the turtle goes above the height given.

BTW: I dont know how to link my code any other way, Sorry.

http://pastebin.com/5reNYJnr
OmegaVest #2
Posted 11 April 2013 - 10:02 AM
Assuming the program just goes 1 above the maximum height, heig needs to be 1.

Also, though using modulous works, I find that using a boolean sometimes works more reliably, though that may just be too few samples. It might increase your code length, too.
Spongy141 #3
Posted 11 April 2013 - 01:08 PM
To link a link with text just highlight the text with your mouse, then click the "Link" option under the option for text sizes, then it will link the link with that text (SO MUCH LINKS)
Also you need to tell the turtle to go forward after turning, or it will do that 360 degree loop thingy.