Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- itemCount = 0
- f = 1
- function enough()
- for i = 1, 12 do
- if turtle.getItemCount(i) > 0 then
- itemCount = itemCount + turtle.getItemCount(i)
- end
- end
- end
- function begin()
- for i = 1, x do
- if turtle.getItemCount(f) == 0 then
- f = f + 1
- turtle.select(f)
- turtle.forward()
- turtle.placeDown()
- else
- turtle.select(f)
- turtle.forward()
- turtle.placeDown()
- end
- end
- turtle.turnLeft()
- end
- function sides()
- for e = 1, 3 do
- for i = 1, y do
- if turtle.getItemCount(f) == 0 then
- f = f + 1
- turtle.select(f)
- turtle.forward()
- turtle.placeDown()
- else
- turtle.select(f)
- turtle.forward()
- turtle.placeDown()
- end
- end
- turtle.turnLeft()
- end
- end
- function quarryPlacement()
- turtle.digDown()
- turtle.select(16)
- turtle.placeDown()
- turtle.up()
- turtle.select(14)
- turtle.placeDown()
- turtle.turnRight()
- turtle.forward()
- turtle.down()
- turtle.select(15)
- turtle.placeDown()
- end
- term.clear()
- term.setCursorPos(1,1)
- print("Place fences in slots 1-12")
- print("")
- print("Place enderQuarry in last slot")
- print("")
- print("Place tesseract in the slot 15")
- print("")
- print("Place the enderChest in slot 14")
- print("")
- print("Press any key to continue")
- os.pullEvent("key")
- term.clear()
- term.setCursorPos(1,1)
- write("How long does one side of the quarry have to be? ")
- x = read()
- enough()
- Opp = x^2
- y = x - 1
- if Opp > itemCount then
- print("You don't have enough fences")
- else
- for i = 1, 20 do
- turtle.up()
- end
- begin()
- sides()
- quarryPlacement()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement