superTreefarm
This commit is contained in:
@@ -63,6 +63,7 @@ local DIRT = 'minecraft:dirt:0'
|
|||||||
local FURNACE = 'minecraft:furnace:0'
|
local FURNACE = 'minecraft:furnace:0'
|
||||||
local MODEM = 'computercraft:peripheral:1'
|
local MODEM = 'computercraft:peripheral:1'
|
||||||
local LEAVES = 'minecraft:leaves'
|
local LEAVES = 'minecraft:leaves'
|
||||||
|
local LEAVES2 = 'minecraft:leaves2'
|
||||||
local LOG = 'minecraft:log'
|
local LOG = 'minecraft:log'
|
||||||
local LOG2 = 'minecraft:log2'
|
local LOG2 = 'minecraft:log2'
|
||||||
local OAK_LOG = 'minecraft:log:0'
|
local OAK_LOG = 'minecraft:log:0'
|
||||||
@@ -532,9 +533,11 @@ local function fellTrees(blocks)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local function fell()
|
local function fell()
|
||||||
local blocks = scan(HOME_PT, function(b)
|
local filter = function(b)
|
||||||
return b.y > 0 and (b.name == LEAVES or b.name == LOG or b.name == LOG2)
|
return b.y > 0 and (b.name == LEAVES or b.name == LEAVES2 or b.name == LOG or b.name == LOG2)
|
||||||
end)
|
end
|
||||||
|
|
||||||
|
local blocks = scan(HOME_PT, filter)
|
||||||
|
|
||||||
if #blocks > 0 then
|
if #blocks > 0 then
|
||||||
print('Chopping')
|
print('Chopping')
|
||||||
@@ -543,9 +546,7 @@ local function fell()
|
|||||||
|
|
||||||
fellTrees(blocks)
|
fellTrees(blocks)
|
||||||
|
|
||||||
blocks = scan(HIGH_PT, function(b)
|
blocks = scan(HIGH_PT, filter)
|
||||||
return b.y > 0 and (b.name == LEAVES or b.name == LOG or b.name == LOG2)
|
|
||||||
end)
|
|
||||||
|
|
||||||
fellTrees(blocks)
|
fellTrees(blocks)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user