Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Quanto profonda vuoi fare la stanza?")
- print("")
- a = tonumber(read()-1)
- read()
- print("Quanto larga vuoi fare la stanza?")
- print("")
- b = tonumber(read()-1)
- read()
- print("Quanto alta vuoi fare la stanza?")
- print("")
- c = tonumber(read()-1)
- read()
- function up()
- turtle.dig()
- turtle.forward()
- for i=c,1,-1 do
- turtle.digUp()
- turtle.up()
- end
- end
- function deep()
- for i=a,1,-1 do
- turtle.dig()
- turtle.forward()
- end
- end
- function wide()
- turtle.turnRight()
- for i=b,1,-1 do
- turtle.dig()
- turtle.forward()
- end
- turtle.turnRight()
- end
- function pane()
- for i=a,1,-1 do
- turtle.dig()
- turtle.forward()
- end
- turtle.turnRight()
- turtle.dig()
- turtle.forward()
- turtle.turnRight()
- for i=a,1,-1 do
- turtle.dig()
- turtle.forward()
- end
- turtle.turnLeft()
- turtle.dig()
- turtle.forward()
- turtle.turnLeft()
- end
- function tall()
- for i=(a+1)/2,1,-1 do
- pane()
- end
- for i=a,1,-1 do
- turtle.dig()
- turtle.forward()
- end
- if turtle.detectDown() then
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- for i=a,1,-1 do
- turtle.dig()
- turtle.forward()
- end
- turtle.turnLeft()
- turtle.turnLeft()
- for i=a,1,-1 do
- turtle.dig()
- turtle.forward()
- end
- turtle.turnRight()
- turtle.turnRight()
- turtle.down()
- else
- turtle.down()
- turtle.turnRight()
- turtle.turnRight()
- end
- end
- up()
- for i=c,1,-1 do
- deep()
- wide()
- tall()
- end
- turtle.turnRight()
- turtle.turnRight()
- turtle.drop(all)
- turtle.select(2)
- turtle.drop(all)
- turtle.select(3)
- turtle.drop(all)
- turtle.select(4)
- turtle.drop(all)
- turtle.select(5)
- turtle.drop(all)
- turtle.select(6)
- turtle.drop(all)
- turtle.select(7)
- turtle.drop(all)
- turtle.select(8)
- turtle.drop(all)
- turtle.select(9)
- turtle.drop(all)
- turtle.select(10)
- turtle.drop(all)
- turtle.select(11)
- turtle.drop(all)
- turtle.select(12)
- turtle.drop(all)
- turtle.select(13)
- turtle.drop(all)
- turtle.select(14)
- turtle.drop(all)
- turtle.select(15)
- turtle.drop(all)
- turtle.select(16)
- turtle.drop(all)
- turtle.select(1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement