Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- places soul sand, wither skulls, kills wither
- -- pastebin get 8FxdGgY2 tiewither
- -- soulsand in slot 1
- -- skulls in slot 2
- -- functions
- local function MoveLeft()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnRight()
- end
- local function MoveRight()
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- end
- -- select slot 2
- -- get count in 2
- -- divide by 3
- -- set i = to that count
- local tArgs = { ... }
- -- local function printUsage()
- if #tArgs < 1 then
- print("Usage: tiewither <x> ")
- print("Soul Sand in slot 1; Skulls in slot 2.")
- return
- end
- local x = tArgs[1]
- for i = 1,x do
- -- place the soulsand
- turtle.select(1)
- for i = 1, 10 do
- turtle.forward()
- end
- turtle.forward()
- turtle.placeDown()
- turtle.back()
- turtle.place()
- MoveLeft()
- turtle.place()
- MoveRight()
- MoveRight()
- turtle.place()
- -- place the wither skulls
- turtle.select(2)
- turtle.up()
- turtle.place()
- MoveLeft()
- turtle.place()
- MoveLeft()
- turtle.place()
- MoveRight()
- turtle.down()
- for i = 1,10 do
- turtle.back()
- end
- -- wait for Mob Grinder to kill wither
- os.sleep(10)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement