Modify goblin digging.
This commit is contained in:
parent
394b046bed
commit
fc9e303c0c
1 changed files with 8 additions and 3 deletions
11
goblin.lua
11
goblin.lua
|
@ -7,10 +7,13 @@ local dig_freq = 5 -- 5
|
||||||
local trap_freq = 25 -- 25
|
local trap_freq = 25 -- 25
|
||||||
local torch_freq = 2 -- 2
|
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" }
|
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'}
|
||||||
--{"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 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 = {
|
local traps = {
|
||||||
'fun_caves:mossycobble_trap',
|
'fun_caves:mossycobble_trap',
|
||||||
'fun_caves:stone_with_coal_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')
|
fun_caves.search_replace(pos, dig_freq, diggable, 'air')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
fun_caves.search_replace(pos, dig_freq * 2, burnable, 'fire:basic_flame')
|
||||||
|
|
||||||
-- steal torches
|
-- steal torches
|
||||||
fun_caves.search_replace(self.object:getpos(), torch_freq, {"default:torch"}, "air")
|
fun_caves.search_replace(self.object:getpos(), torch_freq, {"default:torch"}, "air")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue