Update 'Turtle/Wheat.lua'
This commit is contained in:
parent
f0e0650089
commit
49c685b02f
@ -7,7 +7,19 @@ function Wheat:getStatusDown()
|
|||||||
if(data.state.age == nil) then
|
if(data.state.age == nil) then
|
||||||
return -1
|
return -1
|
||||||
end
|
end
|
||||||
|
return data.state.age
|
||||||
end
|
end
|
||||||
|
if(turtle.digDown() == true) then
|
||||||
|
return -2
|
||||||
|
end
|
||||||
|
if(self:selectPlantable(true)) then
|
||||||
|
if(turtle.placeDown() == true) then
|
||||||
|
turtle.digDown()
|
||||||
|
return -2
|
||||||
|
end
|
||||||
|
return -1
|
||||||
|
end
|
||||||
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
function Wheat:isPlantable(slot, update)
|
function Wheat:isPlantable(slot, update)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user