Uhm, yeah, that should work for a standard pyramid builder, in my case i just need to build a pyramid ( empty inside, sorry i've forgot to tell you that ) and the base is already flat, so it would be easier to just ask for the base, for example 100 in my case, and do a while untill it reaches 100 with turtle.place() and turtle.forward(), when it reachs the base number, turn right and do the same base -1, repeat 3 more times, then move up, turn right and start by base -2, then turn base -1 repeat 3… and so on, you know what i mean? So i get a hollow pyramid with the base i've told him, i'll try to work on a code and see if it works.
Really thanks for your help :)/>
Something like this should do a full square with the base i told him?
write("Specify base: ")
base = tonumber(read())
for i=1,base do
for i=1,base do
turtle.placeDown()
function selectNextSlot()
while turtle.getItemCount(sslot) == 0 and sslot = 0 do
sslot = sslot+1
end
turtle.select(sslot)
return turtle.getItemCount(sslot) end
turtle.forward()
end
if i%2 ~= 0 then
turtle.digDown()
turtle.turnRight()
turtle.placeDown()
turtle.forward()
end
end