From fc9e303c0c6f15666fba4e63bd34e4541387ebe1 Mon Sep 17 00:00:00 2001 From: Duane Date: Sun, 26 Jun 2016 03:23:06 -0500 Subject: [PATCH] Modify goblin digging. --- goblin.lua | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/goblin.lua b/goblin.lua index c9f85af..cd0aef4 100644 --- a/goblin.lua +++ b/goblin.lua @@ -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")