Modify goblin digging.

This commit is contained in:
Duane 2016-06-26 03:23:06 -05:00
parent 394b046bed
commit fc9e303c0c

View file

@ -7,10 +7,13 @@ local dig_freq = 5 -- 5
local trap_freq = 25 -- 25
local torch_freq = 2 -- 2
--fun_caves.goblin_drops = { "default:pick_steel", "default:sword_steel", "default:shovel_steel", "farming:bread", "bucket:bucket_water", "default:pick_stone", "default:sword_stone" }
--{"group:stone"} = { "default:stone", "default:mossycobble", "default:sandstone", "default:desert_stone", "default:stone_with_coal", "default:stone_with_iron", "default:stone_with_copper", "default:stone_with_gold", "default:stone_with_diamond" }
local diggable = {"group:cracky", "group:crumbly", 'fun_caves:giant_mushroom_cap', 'fun_caves:huge_mushroom_cap', 'fun_caves:giant_mushroom_stem', 'flowers:mushroom_red', 'flowers:mushroom_brown'}
local burnable = {}
for i = 1, 4 do
burnable[#burnable+1] = "fun_caves:fungal_tree_leaves_"..i
end
local diggable = {"group:cracky", "group:snappy", "group:crumbly"}
local traps = {
'fun_caves:mossycobble_trap',
'fun_caves:stone_with_coal_trap',
@ -37,6 +40,8 @@ local function goblin_do(self)
fun_caves.search_replace(pos, dig_freq, diggable, 'air')
end
fun_caves.search_replace(pos, dig_freq * 2, burnable, 'fire:basic_flame')
-- steal torches
fun_caves.search_replace(self.object:getpos(), torch_freq, {"default:torch"}, "air")