Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("beeAPI") -- this imports the api
- function sort()
- if beeAPI.isAnalyzedBee() then -- checks if it is an analyzed bee (or a bee at all)
- print(beeAPI.getType()) -- prints type in chat for loging and debugging
- print(beeAPI.getPrimarySpecies() .. " - " .. beeAPI.getSecondarySpecies())-- prints species in
- -- chat for loging and debugging
- if beeAPI.isPure() then -- checks if it is a pure bee
- turtle.suckDown()
- turtle.turnLeft()
- turtle.drop()
- turtle.turnRight()
- else
- turtle.suckDown()
- turtle.turnRight()
- turtle.drop()
- turtle.turnLeft()
- end
- else
- turtle.suckDown()
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.drop()
- turtle.turnRight()
- turtle.turnRight()
- end
- end
- while true do
- if turtle.suck() then -- trys to pull an itemStack from the chest in front of it
- turtle.dropDown() -- drops bee in the bee analyzer
- sleep(0.25)
- sort() -- function above
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment