Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- t=turtle
- rs=redstone
- function check1()
- if t.getItemCount(1) < 4 do
- t.write("Put SoulSand in slot 1")
- end
- function check2()
- if t.getItemCount(2) < 3 do
- t.write("Put your skull in slot 2")
- end
- function check3()
- if t.getItemCount(3) < 64 do
- t.write("Put coal in slot 3")
- function refuel1()
- if t.getFuelLevel() < 50 do
- t.select(3)
- t.refuel(20)
- end
- function wither()
- if rs.getInput("right",true) do
- t.write("ATTENTION!Do not start turtle while server going to restart!")
- t.digDown()
- t.down()
- t.down()
- t.turnLeft()
- t.select(2)
- t.place()
- t.down()
- t.select(1)
- t.place()
- t.placeDown()
- t.turnRight()
- t.turnRight()
- t.place()
- t.up()
- t.placeDown()
- t.select(2)
- t.place()
- t.turnLeft()
- t.up()
- t.placeDown()
- t.select(4)
- t.up()
- t.placeDown()
- end
- while true do
- check1()
- check2()
- check3()
- refuel1()
- wither()
- t.sleep(180)
- end
Advertisement
Add Comment
Please, Sign In to add comment