1
Okay I was playing on FTB and was working w/ my mining turtle. to test what i learned so far w/ turtles i made a small program called towerUp.
you type towerUp and then how tall you want it. ex: towerUp 10
so I input towerUp 10 and let it run. It only places three blocks before quitting.
if you can help me, here's the code:
If you can succesfully resolve this issue I'll subscribe to you.
you type towerUp and then how tall you want it. ex: towerUp 10
so I input towerUp 10 and let it run. It only places three blocks before quitting.
if you can help me, here's the code:
local args = { ... }
local i = 0
while #args .= i do
turtle.place()
turtle.up()
i = i + 1
end
If you can succesfully resolve this issue I'll subscribe to you.
Create an account or sign in to comment.
3
Happy to help.
I say:
command:towerup <quantity> <widthxwidth>
towerUp()
function()
quantity(hieght)
width(widthxwidth)
check for blocks to do so, say "able", if not enough, say "unable, fill with blocks"
end.
turtle.goUp()
turtle.place(widthxwidth)
turtle.repeat(heght)
end.
end.
I say:
command:towerup <quantity> <widthxwidth>
towerUp()
function()
quantity(hieght)
width(widthxwidth)
check for blocks to do so, say "able", if not enough, say "unable, fill with blocks"
end.
turtle.goUp()
turtle.place(widthxwidth)
turtle.repeat(heght)
end.
end.
tricast01Okay I was playing on FTB and was working w/ my mining turtle. to test what i learned so far w/ turtles i made a small program called towerUp.
you type towerUp and then how tall you want it. ex: towerUp 10
so I input towerUp 10 and let it run. It only places three blocks before quitting.
if you can help me, here's the code:
local args = { ... }
local i = 0
while #args .= i do
turtle.place()
turtle.up()
i = i + 1
end
If you can succesfully resolve this issue I'll subscribe to you.
I tryed to handle this a lil differntly. Here is my code
turtle.select(1)
local Args = {...}
if #Args < 1 then -- Checks to make sure they supplied a valid number to go up
print("The correct syntax is towerUp [#]")
else
local i = 0
while i < tonumber(Args[1]) do -- Checks if i is less then the number supplied
turtle.place()
turtle.up()
i = i + 1
end
end
That code worked for me so I hope this helps
>:( No one can help me?