Posted 01 January 2015 - 04:34 PM
Hey there!
Today i wanted to make a program for my farming turtle.
It's already pretty good, but i wanted to make it better (of course).
So i tried to use turtle.getItemDetail() and tried in a "Test" program how to use it.
My text is this:
When i run the program the computer writes an error:
I wrote a 'then' so i don't understand the mistake.
Maybe you can help me…
Today i wanted to make a program for my farming turtle.
It's already pretty good, but i wanted to make it better (of course).
So i tried to use turtle.getItemDetail() and tried in a "Test" program how to use it.
My text is this:
data = turtle.getItemDetail()
if data.name = minecraft:wheat_seeds then
write("There are seeds!\n")
end
When i run the program the computer writes an error:
bios:366: [string "Test"]:3: 'then' expected
I wrote a 'then' so i don't understand the mistake.
Maybe you can help me…