Update 'Turtle/Wheat.lua'

This commit is contained in:
manuel 2023-01-08 14:48:00 +00:00
parent f0e0650089
commit 49c685b02f

View File

@ -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)