Advertisement
Guest User

build4

a guest
Nov 25th, 2014
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.52 KB | None | 0 0
  1. local go = { ... }
  2. local height = 1
  3. local length1 = 0
  4. local length2 = 0
  5. if #go == 1 then
  6.   length1 = tonumber(go[1])
  7.   length2 = tonumber(go[1])
  8. elseif #go == 2 then
  9.   length1 = tonumber(go[1])
  10.   length2 = tonumber(go[2])
  11. elseif #go == 3 then
  12.   length1 = tonumber(go[1])
  13.   length2 = tonumber(go[2])
  14.   height = tonumber(go[3])
  15. else
  16.   print ("Usage: length,width,height(optional)")
  17.   return
  18. end
  19. print("Length:",length1," Width:",length2," Height:",height)
  20.  
  21. turtle.up()
  22. turtle.down()
  23.  
  24. local function build()
  25.  
  26. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement