Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- This is a startup program to help the felling turtlle sort out the collected resources
- "top" is the resources collected by the turtle and hoppers
- "front" is where the logs go
- Everything that isn't logs or saplings is trash
- ]]
- local top = peripheral.wrap("top")
- while true do
- for i = 1, top.size() do
- local data = top.getItemDetail(i)
- if data == nil then
- goto continue
- end
- if data.name ~= "minecraft:spruce_sapling" then
- top.pushItems("front", i)
- end
- ::continue::
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment