farm nether wart
This commit is contained in:
@@ -25,6 +25,8 @@ local crops = Util.readTable(CONFIG_FILE) or {
|
|||||||
{ seed = 'minecraft:potato', mature = 7, action = 'plant' },
|
{ seed = 'minecraft:potato', mature = 7, action = 'plant' },
|
||||||
['minecraft:beetroots'] =
|
['minecraft:beetroots'] =
|
||||||
{ seed = 'minecraft:beetroot_seeds', mature = 3, action = 'plant' },
|
{ seed = 'minecraft:beetroot_seeds', mature = 3, action = 'plant' },
|
||||||
|
['minecraft:nether_wart'] =
|
||||||
|
{ seed = 'minecraft:nether_wart', mature = 3, action = 'plant' },
|
||||||
['minecraft:cocoa'] =
|
['minecraft:cocoa'] =
|
||||||
{ seed = 'minecraft:dye:3', mature = 8, action = 'pick' },
|
{ seed = 'minecraft:dye:3', mature = 8, action = 'pick' },
|
||||||
['minecraft:reeds'] = { action = 'bash' },
|
['minecraft:reeds'] = { action = 'bash' },
|
||||||
@@ -145,21 +147,18 @@ local function harvest(blocks)
|
|||||||
|
|
||||||
dropped = true
|
dropped = true
|
||||||
turtle.condense()
|
turtle.condense()
|
||||||
turtle.select(1)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
elseif b.action == 'smash' then
|
elseif b.action == 'smash' then
|
||||||
if turtle.digDownAt(b) then
|
if turtle.digDownAt(b) then
|
||||||
if crops[b.name].seed then
|
if crops[b.name].seed then
|
||||||
turtle.placeDown(crops[b.name].seed)
|
turtle.placeDown(crops[b.name].seed)
|
||||||
turtle.select(1)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
elseif b.action == 'plant' then
|
elseif b.action == 'plant' then
|
||||||
if turtle.digDownAt(b) then
|
if turtle.digDownAt(b) then
|
||||||
turtle.placeDown(crops[b.name].seed)
|
turtle.placeDown(crops[b.name].seed)
|
||||||
turtle.select(1)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
elseif b.action == 'bump' then
|
elseif b.action == 'bump' then
|
||||||
@@ -182,7 +181,6 @@ local function harvest(blocks)
|
|||||||
Point.eachClosest(turtle.point, sensed, function(s)
|
Point.eachClosest(turtle.point, sensed, function(s)
|
||||||
turtle.suckDownAt(s)
|
turtle.suckDownAt(s)
|
||||||
end)
|
end)
|
||||||
turtle.select(1)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
elseif b.action == 'pick' then
|
elseif b.action == 'pick' then
|
||||||
|
|||||||
Reference in New Issue
Block a user