Posted 21 December 2015 - 07:41 PM
I am a beginner with turtles, and I don't know how to work them. I am trying to make a program where the turtle sucks up an item, and if it is a gold ingot, it runs some code. But if it is not, it runs different code. This is my attempt on how to do what I want, but it failed.
I would like some help ASAP.
Thank you! :D/>
rednet.open("left")
suck = turtle.suck()
gold = "minecraft:gold_ingot"
if suck == true then
count,name,damage = turtle.getItemDetail()
if name == gold then
print("YES!")
else
print("no!")
end
else
print("false")
end
I would like some help ASAP.
Thank you! :D/>
Edited on 21 December 2015 - 08:15 PM