Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("began")
- local num = ...
- print("1")
- local count = tonumber(num)
- print("2")
- local halfCrafts = count/6
- print("3")
- local halfPlanks = halfCrafts*3
- print("4")
- local chestPlanks = count*7
- print("5")
- local totalPlanks = halfPlanks+chestPlanks
- print("6")
- local totalWood = math.ceil(totalPlanks/4)
- print("blah")
- print("you will need ")
- print(tostring(totalWood+count*7))
- print(" wood. Do you have it? y/n")
- if "y" == "y" then
- turtle.select(16)
- turtle.turnLeft()
- turtle.suck(totalWood)
- turtle.turnRight()
- turtle.craft()
- turtle.transferTo(1,count)
- turtle.transferTo(2,count)
- turtle.transferTo(3,count)
- turtle.transferTo(5,count)
- turtle.transferTo(7.count)
- turtle.transferTo(9,count)
- turtle.transferTo(10,count)
- turtle.transferTo(11,count)
- turtle.turnRight()
- turtle.drop()
- turtle.turnLeft()
- turtle.select(1)
- turtle.craft()
- turtle.dropUp()
- turtle.select(16)
- turtle.turnRight()
- turtle.suck()
- turtle.turnLeft()
- turtle.transferTo(1,math.ceil(halfCrafts))
- turtle.transferTo(2,math.ceil(halfCrafts))
- turtle.transferTo(3,math.ceil(halfCrafts))
- turtle.dropUp()
- turtle.select(1)
- turtle.craft()
- turtle.dropUp()
- turtle.turnLeft()
- turtle.suck(count*7)
- turtle.dropUp()
- turtle.turnRight()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement