17 lines
302 B
Lua
17 lines
302 B
Lua
require("Turtle")
|
|
Wheat = Turtle:new()
|
|
|
|
function Wheat:getStatusDown()
|
|
local bd, data = turtle.inspectDown()
|
|
if(bd == true) then
|
|
if(data.state.age == nil) then
|
|
return -1
|
|
end
|
|
end
|
|
end
|
|
|
|
function Wheat:isPlantable(slot, update)
|
|
self:assertInvUpdate(update)
|
|
|
|
|
|
end |