Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- s = 1 -- slot number
- cs = 0 -- number of small shards crafted
- num = 0 -- number of items in slot
- -- craft a single small shard
- while (true)
- do
- while (cs < 9)
- do
- while (s <= 11)
- do
- turtle.select(s)
- turtle.suck(1)
- num = turtle.getItemCount(s)
- if (num == 1)
- then
- if (s == 3 or s == 7)
- then
- s = s + 2
- else
- s = s + 1
- end
- else
- sleep(10)
- end
- end
- turtle.craft(1)
- turtle.dropDown(1)
- cs = cs + 1
- s = 1
- end
- while (s <= 11)
- do
- turtle.select(s)
- turtle.suckDown(1)
- if (s == 3 or s == 7)
- then
- s = s + 2
- else
- s = s + 1
- end
- end
- turtle.craft(1)
- turtle.dropUp(1)
- s = 1
- cs = 0
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement