Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local rednetSide = "right"
- local soulSand = 1
- local witherHead = 2
- local wireSide = "back"
- local block = 16
- ------------------------------------
- rednet.open(rednetSide)
- function forward(a)
- for i=a, 1, -1 do
- turtle.forward()
- end
- end
- function up(a)
- for i=a, 1, -1 do
- turtle.up()
- end
- end
- function wither()
- up(1)
- turtle.select(block)
- turtle.dig()
- turtle.select(soulSand)
- forward(5)
- up(1)
- turtle.placeDown()
- up(1)
- turtle.placeDown()
- turtle.turnLeft()
- forward(1)
- turtle.placeDown()
- turtle.back()
- turtle.back()
- turtle.placeDown()
- forward(1)
- turtle.select(witherHead)
- turtle.place()
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.place()
- turtle.turnLeft()
- turtle.back()
- turtle.place()
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.down()
- turtle.down()
- forward(4)
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.select(block)
- turtle.place()
- turtle.down()
- end
- function suck()
- turtle.turnLeft()
- turtle.select(soulSand)
- turtle.suck()
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.select(witherHead)
- turtle.suck()
- turtle.select(soulSand)
- turtle.turnLeft()
- end
- function kill()
- rs.setBundledOutput(wireSide, 1)
- sleep(1)
- rs.setBundledOutput(wireSide, 0)
- end
- while true do
- id, msg=rednet.receive()
- if msg == "go" then
- suck()
- wither()
- sleep(10)
- kill()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment