Posted 07 May 2015 - 04:28 AM
I am writing a program that makes a 3x3 tunnel and I want it to drop the cobblestone, dirt and gravel it collects.
I made it so that it uses the turtle.getItemDetail() function to get the ID String of the items. However, it drops all items of its items instead of only the specified items.
Pastebin of full program >> http://pastebin.com/7gi79wWL
function dump()
if turtle.getItemDetail().name == "minecraft:cobblestone" or "minecraft:dirt" or "minecraft:gravel" then
turtle.dropDown()
end
end
Above is called by:
function full()
if layer == 5 then
for i = 1, 16 do
turtle.select(i)
if turtle.getItemCount() > 0 then
dump()
end
end
layer = 0
end
end
I made it so that it uses the turtle.getItemDetail() function to get the ID String of the items. However, it drops all items of its items instead of only the specified items.
Pastebin of full program >> http://pastebin.com/7gi79wWL