Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local t = turtle
- function macro(str)
- for i = 1, #str do
- local c = str:sub(i,i)
- if c == "m" then
- t.dig()
- elseif c == "b" then
- t.back()
- elseif c == "d" then
- t.down()
- elseif c == "D" then
- t.placeDown()
- elseif c == "f" then
- t.forward()
- elseif c == "l" then
- t.turnLeft()
- elseif c == "p" then
- t.place()
- elseif c == "r" then
- t.turnRight()
- elseif c == "u" then
- t.up()
- elseif c == "#" then
- t.refuel(32)
- else
- t.select(tonumber(c))
- end
- end
- end
- while true do
- while true do
- t.select(1)
- if t.getItemCount() > 3 then
- t.select(2)
- if t.getItemCount() > 4 then
- break
- end
- end
- sleep(10)
- end
- print "Go!"
- -- go into spawner
- macro("6#lfluumff")
- -- place wither
- macro("ddl2pufpbpuDf1pbprbp")
- -- go to idle position
- macro("b5pddlfl")
- sleep(20)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement