Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function inventory()
- for i = 1,16 do
- if turtle.getItemCount(i) > 0 then
- turtle.select(i)
- details = turtle.getItemDetail(i)
- if details.name == "minecraft:egg" then
- n = turtle.getItemCount(i)
- turtle.dropDown()
- throwEggs(n)
- else
- turtle.drop()
- end
- end
- end
- end
- function throwEggs(n)
- for i = 1,n do
- os.sleep(0.1)
- redstone.setOutput("bottom", true)
- os.sleep(0.1)
- redstone.setOutput("bottom", false)
- end
- end
- print("Now running eggbot 2000")
- while 1 do
- inventory()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement