Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local wither_item_count = ""
- local modem = peripheral.wrap("right")
- modem.open(1)
- print("modem open?")
- while true do
- turtle.select(1)
- local fuel_level = turtle.getFuelLevel()
- if fuel_level < 1000 then
- turtle.select(16)
- while fuel_level < 1000 do
- modem.transmit(1,1,"fuel level is below limit please put coal into slot 16 ${fuel_limit}")
- turtle.refuel()
- fuel_level = turtle.getFuelLevel()
- end
- end
- turtle.turnLeft()
- turtle.suck(3)
- wither_item_count = turtle.getItemCount(1)
- print(wither_item_count)
- if wither_item_count < 3 then
- modem.transmit(1,1, "there are not enough wither Skulls")
- while wither_item_count < 3 do
- turtle.suck(1)
- wither_item_count = turtle.getItemCount(1)
- end
- end
- modem.transmit(1,1,"everything is going to plan i've got the skulls")
- --Grabbed skulls turning to soulsand chest
- turtle.turnRight()
- turtle.turnRight()
- --Facing soulsand chest
- turtle.suck(4)
- soulsand_item_count = turtle.getItemCount(2)
- if soulsand_item_count < 4 then
- modem.transmit(1,1, "There is not enough soul sand")
- while soulsand_item_count < 4 do
- turtle.suck(1)
- soulsand_item_count = turtle.getItemCount(2)
- end
- end
- --collected the soul sand and facing forwards
- modem.transmit(1,1,"everything is going to plan i've got the soulsand")
- turtle.turnLeft()
- --time to move down to spawner
- modem.transmit(1,1,"trying to move to spawner")
- turtle.forward()
- turtle.forward()
- local y = 0
- while y < 65 do
- turtle.down()
- y = y + 1
- end
- turtle.turnRight()
- local forward = 0
- while forward < 23 do
- turtle.forward()
- forward = forward + 1
- end
- turtle.turnLeft()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- modem.transmit(1,1,"made it to the skull chest")
- turtle.turnLeft()
- turtle.select(1)
- turtle.drop()
- modem.transmit(1,1,"dropped off Skulls")
- turtle.turnRight()
- turtle.forward()
- turtle.forward()
- turtle.turnLeft()
- modem.transmit(1,1,"made it to the soulsand chest")
- turtle.select(2)
- turtle.drop()
- modem.transmit(1,1,"dropped off soulsand")
- turtle.turnRight()
- modem.transmit(1,1,"returning to base")
- turtle.forward()
- turtle.turnLeft()
- local forward2 = 0
- while forward2 < 23 do
- turtle.forward()
- forward2 = forward2 + 1
- end
- turtle.turnLeft()
- local forward3 = 0
- while forward3 < 7 do
- turtle.forward()
- forward3 = forward3 + 1
- end
- local up = 0
- while up < 65 do
- turtle.up()
- up = up + 1
- end
- turtle.forward()
- turtle.forward()
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.select(1)
- modem.transmit(1,1,"i'm back and ready for more work")
- end
Add Comment
Please, Sign In to add comment