Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Oxgon's Wither Boss Spawner
- -- First slot soul sand
- -- Second slot Wither Skulls
- function up()
- while(not turtle.up()) do sleep(1) end
- end
- function left()
- while(not turtle.turnLeft()) do sleep(1) end
- end
- function right()
- while(not turtle.turnRight()) do sleep(1) end
- end
- function back()
- while(not turtle.back()) do sleep(1) end
- end
- function forward()
- while(not turtle.forward()) do sleep(1) end
- end
- function down()
- while(not turtle.down()) do sleep(1) end
- end
- function place()
- while(not turtle.place()) do sleep(1) end
- end
- function placeDown()
- turtle.placeDown()
- if(not turtle.detectDown()) then placeDown() end
- end
- function getSoul() -- turtles have no soul
- turtle.select(16)
- turtle.suckDown()
- turtle.transferTo(1,4)
- turtle.dropDown()
- end
- function getSkull()
- turtle.select(16)
- left()
- turtle.suck()
- turtle.transferTo(2,3)
- turtle.drop()
- right()
- end
- function home()
- back()
- back()
- back()
- down()
- down()
- down()
- down()
- down()
- forward()
- forward()
- forward()
- forward()
- forward()
- right()
- back()
- end
- -- Program Start
- while (true) do
- while(not rs.getInput("right")) do sleep(3) end
- getSoul()
- getSkull()
- up()
- up()
- up()
- turtle.select(1)
- place()
- up()
- place()
- left()
- forward()
- right()
- place()
- up()
- up()
- forward()
- right()
- turtle.select(2)
- placeDown()
- forward()
- placeDown()
- forward()
- down()
- turtle.select(1)
- placeDown()
- up()
- forward()
- left()
- left()
- down()
- turtle.select(2)
- place()
- home()
- end
Advertisement
Add Comment
Please, Sign In to add comment