Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print(" PLATFORM BITCH")
- print("choose your build?(choose between line,retangle, wall, cube, square, platform stair or tower)")
- local choise = io.read()
- if choise == "retangle" then
- print("what size horizontaly?")
- sleep(2)
- h = io.read()
- h = h-1
- h = tonumber(h)
- print("what size vertical?")
- v = io.read()
- v = tonumber(v)
- if h <= 0 then
- print("error it can not be 0")
- end
- if v <= 0 then
- print("error it can not be 0")
- end
- if turtle.detectDown()then
- turtle.up()
- end
- for i=1,v do
- print(i)
- turtle.placeDown()
- turtle.forward()
- end
- turtle.turnRight()
- for i=1,h do
- print(i)
- turtle.placeDown()
- turtle.forward()
- end
- turtle.turnRight()
- for i=1,v do
- print(i)
- turtle.placeDown()
- turtle.forward()
- end
- turtle.turnRight()
- for i=1,h do
- print(i)
- turtle.placeDown()
- turtle.forward()
- end
- if choise == "square" then
- print("how long does it need to be?")
- local s = io.read()
- local x = s-1
- s = tonumber(s)
- x = tonumber(x)
- if s <= 0 then
- print("error length can not be 0")
- sleep(2)
- end
- if turtle.detectDown()then
- turtle.up()
- end
- for i=1,s do
- print(i)
- turtle.placeDown()
- turtle.forward()
- end
- turtle.back()
- turtle.turnRight()
- for i=1,s do
- print(i)
- turtle.placeDown()
- turtle.forward()
- end
- turtle.back()
- turtle.turnRight()
- for i=1,s do
- print(i)
- turtle.placeDown()
- turtle.forward()
- end
- turtle.back()
- turtle.turnRight()
- for i=1,x do
- print(i)
- turtle.placeDown()
- turtle.forward()
- end
- os.shutdown()
- end
- end
- if choise == "line" then
- print("how long does the line need to be?")
- local ll = io.read()
- ll = tonumber(ll)
- if ll <= 0 then
- print("error length line can not be 0")
- os.shutdown()
- end
- if turtle.detectDown() then
- turtle.up()
- end
- for i=1, ll do
- print(i)
- turtle.placeDown()
- turtle.forward()
- end
- end
- if choise == "stair" then
- print("how long does it need to be?")
- local wl = io.read()
- wl = tonumber(wl)
- print("how high does it need to be?")
- local wh = io.read()
- wh = tonumber(wh)
- if wh <= 0 then
- print("error the higth can not be zero")
- sleep(1)
- os.shutdown()
- end
- if wl <= 0 then
- print("error the length can not be 0")
- sleep(1)
- os.shutdown()
- end
- if turtle.detectDown() then
- turtle.up()
- end
- turtle.turnRight()
- for i=1 , wh do
- for i=1 , wh do
- print(i)
- turtle.placeDown()
- turtle.up()
- turtle.forward()
- end
- for i=1 , wh do
- turtle.down()
- end
- end
- end
- if choise == "tower" then
- print("how long does it need to be?")
- local cl = io.read()
- cl = tonumber(cl)
- print("how high does it need to be?")
- local ch = io.read()
- ch = tonumber(ch)
- local clt = cl-1
- clt = tonumber(clt)
- local cltr = cl-2
- cltr = tonumber(cltr)
- if ch <= 0 then
- print("error the higth can not be 0")
- os.shutdown()
- end
- if cl <= 0 then
- print("error it can not 0")
- os.shutdown()
- end
- if turtle.detectDown() then
- turtle.up()
- end
- for i=1 , cl do
- for i=1, ch do
- turtle.placeDown()
- turtle.up()
- end
- turtle.forward()
- for i=1, ch do
- turtle.down()
- end
- end
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnRight()
- for i=1 , clt do
- for i=1, ch do
- turtle.placeDown()
- turtle.up()
- end
- turtle.forward()
- for i=1, ch do
- turtle.down()
- end
- end
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnRight()
- for i=1 , clt do
- for i=1, ch do
- turtle.placeDown()
- turtle.up()
- end
- turtle.forward()
- for i=1, ch do
- turtle.down()
- end
- end
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnRight()
- for i=1 , cltr do
- for i=1, ch do
- turtle.placeDown()
- turtle.up()
- end
- turtle.forward()
- turtle.forward()
- for i=1, ch do
- turtle.down()
- end
- end
- end
- if choise == "wall" then
- print("how long does it need to be?")
- local wl = io.read()
- wl = tonumber(wl)
- print("how high does it need to be?")
- local wh = io.read()
- wh = tonumber(wh)
- if wh <= 0 then
- print("error the higth can not be zero")
- sleep(1)
- os.shutdown()
- end
- if wl <= 0 then
- print("error the length can not be 0")
- sleep(1)
- os.shutdown()
- end
- if turtle.detectDown() then
- turtle.up()
- end
- turtle.turnRight()
- for i=1 , wh do
- for i=1 , wh do
- print(i)
- turtle.placeDown()
- turtle.up()
- end
- turtle.forward()
- for i=1 , wh do
- turtle.down()
- end
- end
- end
- if choise == "cube" then
- print("how long does it need to be?")
- local cl = io.read()
- cl = tonumber(cl)
- print("how high does it need to be?")
- local ch = io.read()
- ch = tonumber(ch)
- local clt = cl-1
- clt = tonumber(clt)
- local cltr = cl-2
- cltr = tonumber(cltr)
- if ch <= 0 then
- print("error the higth can not be 0")
- os.shutdown()
- end
- if cl <= 0 then
- print("error it can not 0")
- os.shutdown()
- end
- if turtle.detectDown() then
- turtle.up()
- end
- for i=1 , cl do
- for i=1, ch do
- turtle.placeDown()
- turtle.up()
- end
- turtle.forward()
- for i=1, ch do
- turtle.down()
- end
- end
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnRight()
- for i=1 , clt do
- for i=1, ch do
- turtle.placeDown()
- turtle.up()
- end
- turtle.forward()
- for i=1, ch do
- turtle.down()
- end
- end
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnRight()
- for i=1 , clt do
- for i=1, ch do
- turtle.placeDown()
- turtle.up()
- end
- turtle.forward()
- for i=1, ch do
- turtle.down()
- end
- end
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnRight()
- for i=1 , cltr do
- for i=1, ch do
- turtle.placeDown()
- turtle.up()
- end
- turtle.forward()
- turtle.forward()
- for i=1, ch do
- turtle.down()
- end
- end
- end
- if choise == "platform" then
- if turtle.detectDown() then
- turtle.up()
- end
- term.clear()
- term.setCursorPos(1,1)
- print("how Long?")
- a=tonumber(read())
- term.setCursorPos(1,3)
- term.clearLine()
- print("how Wide?")
- b=tonumber(read())
- turtle.placeDown()
- x=1
- y=0
- s=1
- print("using slot " ..s)
- while y<b do
- y=y+1
- while x<a do
- x=x+1
- turtle.forward()
- turtle.placeDown()
- if turtle.getItemCount(s)==0 then
- s=s+1
- print("now using slot " ..s)
- turtle.select(s)
- end
- end
- x=1
- q=tonumber(y)
- if q%2==1 then
- turtle.turnRight()
- turtle.forward()
- turtle.placeDown()
- turtle.turnRight()
- elseif q%2==0 then
- turtle.turnLeft()
- turtle.forward()
- turtle.placeDown()
- turtle.turnLeft()
- end
- end
- term.clear()
- term.setCursorPos(1,1)
- print("done")
- end
Advertisement
Add Comment
Please, Sign In to add comment