Posted 15 October 2012 - 10:45 PM
hello, i need a house building program, it needs to build a max of two floors or one, and a simple roof. and any blocks even if i needs modified, i need something to work off of
tags so it's easier to read. Either that, or use pastebin.
-- wrong
build = yes
shutdown = no
-- right
build = "yes"
shutdown = "no"
The "yes" and "no" should be around quotes. In this case, I'm assuming you're going to be asking for "yes" or "no" from the player, yes meaning to build and no for shutting down.
turtle.placedown()
is not the same as
turtle.placeDown()
for i=1, 20 do
turtle.placeDown()
turtle.forward()
end
In this bit of code, it will repeat placing down and going forward 20 times. You can replace 20 with however many times you need to do this action.