Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- itemCount = 0
- f = 1
- 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 before it")
- print("")
- print("and place the enderChest in the one before that")
- print("")
- print("Press any key when ready")
- os.pullEvent("key")
- term.clear()
- term.setCursorPos(1,1)
- write("How long does one side of the quarry have to be? ")
- x = read()
- function enough()
- for i = 1, 12 do
- if turtle.getItemCount(i) > 0 then
- itemCount = itemCount + turtle.getItemCount(i)
- end
- end
- end
- enough()
- Opp = x^2
- if Opp > itemCount then
- print("You don't have enough fences")
- else
- for i = 1, 20 do
- turtle.up()
- end
- for e = 1, x do
- turtle.select(f)
- if turtle.getItemCount(f) == 0 then
- f = f + 1
- else
- turtle.placeDown()
- turtle.forward()
- end
- end
- turtle.turnLeft()
- turtle.forward()
- y = x - 1
- for e = 1, y do
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement