This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Danny's profile picture

[Turtles] Cobblestone Filter

Started by Danny, 26 July 2014 - 02:51 AM
Danny #1
Posted 26 July 2014 - 04:51 AM
I was wondering if there was any way to make a turtle get all of the cobblestone (cobblestone only) out of a chest and throw it in lava? I need this for my turtle quarries.
flaghacker #2
Posted 26 July 2014 - 08:29 AM
You have to use turtle.compare() because the turtle can't get the id from items. Place one cobblestone in the last inventory slot to compare to. Suck a stack of items, compare it to the cobblestone, if it is cobble, drop in the lava, else drop it in the output chest.

EDIT: Fixed typo
Edited on 26 July 2014 - 07:37 AM
hilburn #3
Posted 26 July 2014 - 09:05 AM
It's worth noting that all the pipe mods can do this type of filtered pulling: Buildcraft: Emerald transport pipe, TE3: Itemduct with pneumatic valve, EnderIO: Just does it, think it's also possible with Golems and Thaumcraft.

also it's turtle.compare()
flaghacker #4
Posted 26 July 2014 - 09:38 AM
It's worth noting that all the pipe mods can do this type of filtered pulling: Buildcraft: Emerald transport pipe, TE3: Itemduct with pneumatic valve, EnderIO: Just does it, think it's also possible with Golems and Thaumcraft.

also it's turtle.compare()

Thanks, fixed.
Also, it's pneumatic servo :P/>
hilburn #5
Posted 26 July 2014 - 12:19 PM
Dangit! isn't that just typical irony? I user enderio mostly anyway, got to love sending items, power, fluid and redstone all through one block and being able to insert and extract with the same connector