Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- --Check signal
- if rs.getInput("top") then
- print("Redstone signal is on")
- print("Toggle to enable spawns")
- sleep(3)
- else
- --Turtle Check has enough parts
- turtle.select(1)
- if turtle.getItemCount() > 9 then
- print("Turtle has ", turtle.getItemCount(), " heads")
- turtle.select(2)
- if turtle.getItemCount() > 12 then
- print("Turtle has ", turtle.getItemCount(), " Sand")
- turtle.select(3)
- if turtle.getItemCount() > 16 then
- print("Turtle has enough fuel, ", turtle.getFuelLevel())
- turtle.refuel(1)
- turtle.select(2)
- --has enough parts
- --Functions
- --Active starting here
- turtle.down(3)
- turtle.down()
- turtle.down()
- turtle.forward(1)
- turtle.up(1)
- sleep(.25)
- --sand top sides
- turtle.turnRight(1)
- turtle.select(2)
- turtle.place()
- turtle.turnLeft(2)
- turtle.turnLeft()
- turtle.place()
- sleep(.25)
- --heads sides sides
- turtle.up(1)
- turtle.select(1)
- turtle.place()
- turtle.turnRight(2)
- turtle.turnRight()
- turtle.place()
- sleep(.25)
- --center line
- turtle.turnLeft(1)
- turtle.back(1)
- turtle.down(3)
- turtle.down()
- turtle.down()
- sleep(.25)
- -- Reset position
- turtle.select(2)
- turtle.place()
- turtle.up(1)
- turtle.place()
- turtle.select(1)
- sleep(.25)
- -- Last head
- turtle.up()
- turtle.place()
- print("Wither Built")
- sleep(5)
- --Endings else's
- else -- Coal/Refuel
- print("Failed to Refuel")
- sleep(5)
- end
- else -- soul sand
- print("Not Enough Sand")
- sleep(5)
- end
- else -- Wither skulls
- print("Not Enough Skulls")
- sleep(5)
- end
- print("Spawning ended starting anew")
- sleep(1)
- end -- Redstone
- end -- while true doo doo
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement