Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local go = { ... }
- local height = 1
- local length1 = 0
- local length2 = 0
- if #go == 1 then
- length1 = tonumber(go[1])
- length2 = tonumber(go[1])
- elseif #go == 2 then
- length1 = tonumber(go[1])
- length2 = tonumber(go[2])
- elseif #go == 3 then
- length1 = tonumber(go[1])
- length2 = tonumber(go[2])
- height = tonumber(go[3])
- else
- print ("Usage: length,width,height(optional)")
- return
- end
- print("Length:",length1," Width:",length2," Height:",height)
- turtle.up()
- turtle.down()
- local function build()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement