Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Program made by Keokix_
- --V1.0.0.0
- --Copyright by Zezior
- slot = 1
- function Menu()
- print("How many plots + garend you wanna build?")
- input = tonumber(io.read())
- Build(input)
- end
- function Build(amount)
- while(amount > 0)do
- BuildPlot()
- turtle.turnLeft()
- for i = 0, 32 do
- turtle.forward()
- end
- turtle.turnRight()
- BuildGarden()
- amount = amount - 1
- end
- end
- function BuildPlot()
- turtle.select(slot)
- for i = 0, 3 do
- if(turtle.getItemCount() < 20) then
- slot = slot + 1
- turtle.select(slot)
- end
- for j = 0, 32 do
- turtle.placeDown()
- turtle.forward()
- end
- turtle.turnLeft()
- end
- end
- function BuildGarden()
- turtle.select(slot)
- long = 2
- for i = 0, 3 do
- if(turtle.getItemCount() < 20) then
- slot = slot + 1
- turtle.select(slot)
- end
- if(long == 1) then
- for i = 0, 14 do
- turtle.placeDown()
- turtle.forward()
- end
- long = 2
- elseif(long == 2) then
- for j = 0, 32 do
- turtle.placeDown()
- turtle.forward()
- end
- long = 1
- end
- turtle.turnLeft()
- end
- end
- Menu()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement