Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("'Put turtle in bottom left corner on the ground, facing to top left corner'")
- print("--------")
- print("| |")
- print("--------")
- print("Type anything to proceed")
- io.read()
- print("slot 1-2 = blocks 1stack+38")
- print("slots 3-10 = slabs 7stacks+28")
- print("slot 11-12 = blocks 1stack+4")
- print("Type anything to proceed")
- io.read()
- slot = 1
- function place()
- inventory()
- turtle.place()
- end
- function placeUp()
- inventory()
- turtle.placeUp()
- end
- function placeDown()
- inventory()
- turtle.placeDown()
- end
- function inventory()
- if turtle.getItemCount(slot) == 0 then
- slot = slot + 1
- end
- turtle.select(slot)
- end
- function buildBaseBlock()
- placeDown()
- placeUp()
- turtle.back()
- place()
- end
- function buildBaseSlab()
- placeDown()
- turtle.forward()
- end
- function base()
- turtle.select(1)
- turtle.up()
- turtle.turnLeft()
- turtle.back()
- for x=1, 13 do
- buildBaseBlock()
- end
- turtle.turnLeft()
- for x=1, 3 do
- buildBaseBlock()
- end
- turtle.turnLeft()
- for x=1, 14 do
- buildBaseBlock()
- end
- turtle.turnLeft()
- for x=1, 4 do
- buildBaseBlock()
- end
- turtle.up()
- turtle.up()
- turtle.up()
- turtle.forward()
- turtle.turnRight()
- turtle.forward()
- turtle.select(3)
- for x=1, 13 do
- buildBaseSlab()
- end
- turtle.turnLeft()
- for x=1, 3 do
- buildBaseSlab()
- end
- turtle.turnLeft()
- for x=1, 14 do
- buildBaseSlab()
- end
- turtle.turnLeft()
- for x=1, 4 do
- buildBaseSlab()
- end
- turtle.up()
- end
- function buildLayer()
- placeUp()
- turtle.forward()
- end
- function layer()
- turtle.back()
- turtle.turnLeft()
- turtle.forward()
- for x=1, 13 do
- buildLayer()
- end
- turtle.turnLeft()
- for x=1, 3 do
- buildLayer()
- end
- turtle.turnLeft()
- for x=1, 14 do
- buildLayer()
- end
- turtle.turnLeft()
- for x=1, 4 do
- buildLayer()
- end
- turtle.up()
- turtle.up()
- turtle.up()
- end
- function layers()
- for x=1, 13 do
- layer()
- end
- end
- function buildVines()
- placeDown()
- turtle.back()
- place()
- end
- function vines()
- turtle.select(11)
- turtle.up()
- turtle.up()
- turtle.back()
- turtle.turnRight()
- turtle.back()
- for x=1, 13 do
- buildVines()
- end
- turtle.turnLeft()
- for x=1, 3 do
- buildVines()
- end
- turtle.turnLeft()
- for x=1, 14 do
- buildVines()
- end
- turtle.turnLeft()
- for x=1, 4 do
- buildVines()
- end
- end
- base()
- layers()
- vines()
- for x=1, 47 do
- turtle.down()
- end
- print("Ender1 is done!")
- print("'Bring 26 buttons and 26 vines to finish the trap'")
- print("Start Ender2 to proceed")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement