diff --git a/depends.txt b/depends.txt index e1de21e..f33b6c4 100644 --- a/depends.txt +++ b/depends.txt @@ -2,3 +2,6 @@ default flowers wool mobs +mobs_monster? +mobs_slimes? +mobs_creeper? diff --git a/goblin_coal.lua b/goblin_coal.lua index fa978f7..84a04d9 100644 --- a/goblin_coal.lua +++ b/goblin_coal.lua @@ -117,8 +117,8 @@ mobs:register_mob("fun_caves:goblin_coal", { }) mobs:register_egg("fun_caves:goblin_coal", "Goblin Egg (coal)", "default_mossycobble.png", 1) -mobs:register_spawn("fun_caves:goblin_coal", {"default:coalblock", "default:stone_with_coal"}, 100, 0, 1 * fun_caves.goblin_spawn_frequency, 3, -50) -mobs:register_spawn("fun_caves:goblin_coal", {"default:mossycobble", "fun_caves:hot_cobble"}, 100, 0, 1 * fun_caves.goblin_spawn_frequency, 3, -50) +mobs:register_spawn("fun_caves:goblin_coal", {"default:coalblock", "default:stone_with_coal"}, 100, 0, 1 * fun_caves.goblin_spawn_frequency, 3, 101) +mobs:register_spawn("fun_caves:goblin_coal", {"default:mossycobble", "fun_caves:hot_cobble"}, 100, 0, 1 * fun_caves.goblin_spawn_frequency, 3, 101) minetest.register_node("fun_caves:stone_with_coal_trap", { description = "Coal Trap", diff --git a/goblin_cobbler.lua b/goblin_cobbler.lua index c8757f8..c7bcc2d 100644 --- a/goblin_cobbler.lua +++ b/goblin_cobbler.lua @@ -113,15 +113,15 @@ mobs:register_mob("fun_caves:goblin_cobble", { do_custom = function(self) fun_caves.search_replace(self.object:getpos(), 5, {"default:torch"}, "air") - fun_caves.search_replace(self.object:getpos(), 5, {"default:stone"}, "default:mossycobble") + fun_caves.search_replace(self.object:getpos(), 5, {"default:stone", "default:desert_stone", "default:sandstone"}, "default:mossycobble") fun_caves.search_replace(self.object:getpos(), 50, {"default:mossycobble"}, "fun_caves:mossycobble_trap") fun_caves.surface_damage(self) end, }) mobs:register_egg("fun_caves:goblin_cobble", "Goblin Egg (cobble)", "default_mossycobble.png", 1) -mobs:register_spawn("fun_caves:goblin_cobble", {"group:stone"}, 100, 0, 10 * fun_caves.goblin_spawn_frequency, 3, -50) -mobs:register_spawn("fun_caves:goblin_cobble", {"default:mossycobble"}, 100, 0, 1 * fun_caves.goblin_spawn_frequency, 3, -50) +mobs:register_spawn("fun_caves:goblin_cobble", {"group:stone"}, 100, 0, 10 * fun_caves.goblin_spawn_frequency, 3, 101) +mobs:register_spawn("fun_caves:goblin_cobble", {"default:mossycobble"}, 100, 0, 1 * fun_caves.goblin_spawn_frequency, 3, 101) minetest.register_node("fun_caves:mossycobble_trap", { description = "Messy Gobblestone", diff --git a/goblin_copper.lua b/goblin_copper.lua index b10ad1a..b705394 100644 --- a/goblin_copper.lua +++ b/goblin_copper.lua @@ -116,8 +116,8 @@ mobs:register_mob("fun_caves:goblin_copper", { end, }) mobs:register_egg("fun_caves:goblin_copper", "Goblin Egg (copper)", "default_mossycobble.png", 1) -mobs:register_spawn("fun_caves:goblin_copper", {"default:stone_with_copper"}, 100, 0, 1 * fun_caves.goblin_spawn_frequency, 3, -50) -mobs:register_spawn("fun_caves:goblin_copper", {"default:mossycobble"}, 100, 0, 1 * fun_caves.goblin_spawn_frequency, 3, -50) +mobs:register_spawn("fun_caves:goblin_copper", {"default:stone_with_copper"}, 100, 0, 1 * fun_caves.goblin_spawn_frequency, 3, 101) +mobs:register_spawn("fun_caves:goblin_copper", {"default:mossycobble"}, 100, 0, 1 * fun_caves.goblin_spawn_frequency, 3, 101) minetest.register_node("fun_caves:stone_with_copper_trap", { description = "Copper Trap", diff --git a/goblin_diamond.lua b/goblin_diamond.lua index 46271bb..b39fb93 100644 --- a/goblin_diamond.lua +++ b/goblin_diamond.lua @@ -119,8 +119,8 @@ mobs:register_mob("fun_caves:goblin_diamond", { }) mobs:register_egg("fun_caves:goblin_diamond", "Goblin Egg (diamond)", "default_mossycobble.png", 1) -mobs:register_spawn("fun_caves:goblin_diamond", {"default:stone_with_diamond" }, 100, 0, 1 * fun_caves.goblin_spawn_frequency, 2, -50) -mobs:register_spawn("fun_caves:goblin_diamond", {"default:mossycobble", "fun_caves:hot_cobble"}, 100, 0, 2 * fun_caves.goblin_spawn_frequency, 3, -50) +mobs:register_spawn("fun_caves:goblin_diamond", {"default:stone_with_diamond" }, 100, 0, 1 * fun_caves.goblin_spawn_frequency, 2, 101) +mobs:register_spawn("fun_caves:goblin_diamond", {"default:mossycobble", "fun_caves:hot_cobble"}, 100, 0, 2 * fun_caves.goblin_spawn_frequency, 3, 101) minetest.register_node("fun_caves:stone_with_diamond_trap", { description = "Diamond Trap", diff --git a/goblin_digger.lua b/goblin_digger.lua index 937cf7f..8e6269a 100644 --- a/goblin_digger.lua +++ b/goblin_digger.lua @@ -206,7 +206,7 @@ mobs:register_mob("fun_caves:goblin_digger", { fun_caves.goblin_tunneling(self, "digger") fun_caves.search_replace(self.object:getpos(), 5, {"default:torch"}, "air") - fun_caves.search_replace(self.object:getpos(), 10, {"default:stone"}, "default:mossycobble") + fun_caves.search_replace(self.object:getpos(), 10, {"default:stone", "default:desert_stone", "default:sandstone"}, "default:mossycobble") fun_caves.search_replace(self.object:getpos(), 50, {"default:mossycobble"}, "fun_caves:mossycobble_trap") fun_caves.surface_damage(self) @@ -214,6 +214,6 @@ mobs:register_mob("fun_caves:goblin_digger", { }) mobs:register_egg("fun_caves:goblin_digger", "Goblin Egg (digger)", "default_mossycobble.png", 1) -mobs:register_spawn("fun_caves:goblin_digger", {"group:stone"}, 100, 0, 20 * fun_caves.goblin_spawn_frequency, 3, -50) -mobs:register_spawn("fun_caves:goblin_digger", {"default:mossycobble"}, 100, 0, 1 * fun_caves.goblin_spawn_frequency, 3, -50) +mobs:register_spawn("fun_caves:goblin_digger", {"group:stone"}, 100, 0, 20 * fun_caves.goblin_spawn_frequency, 3, 101) +mobs:register_spawn("fun_caves:goblin_digger", {"default:mossycobble"}, 100, 0, 1 * fun_caves.goblin_spawn_frequency, 3, 101) diff --git a/goblin_gold.lua b/goblin_gold.lua index 0bf1fb0..5928ff3 100644 --- a/goblin_gold.lua +++ b/goblin_gold.lua @@ -116,8 +116,8 @@ mobs:register_mob("fun_caves:goblin_gold", { end, }) mobs:register_egg("fun_caves:goblin_gold", "Goblin Egg (gold)", "default_mossycobble.png", 1) -mobs:register_spawn("fun_caves:goblin_gold", {"default:stone_with_gold" }, 100, 0, 1 * fun_caves.goblin_spawn_frequency, 2, -50) -mobs:register_spawn("fun_caves:goblin_gold", {"default:mossycobble", "fun_caves:hot_cobble"}, 100, 0, 2 * fun_caves.goblin_spawn_frequency, 3, -50) +mobs:register_spawn("fun_caves:goblin_gold", {"default:stone_with_gold" }, 100, 0, 1 * fun_caves.goblin_spawn_frequency, 2, 101) +mobs:register_spawn("fun_caves:goblin_gold", {"default:mossycobble", "fun_caves:hot_cobble"}, 100, 0, 2 * fun_caves.goblin_spawn_frequency, 3, 101) minetest.register_node("fun_caves:molten_gold_source", { description = "Molten Gold Source", diff --git a/goblin_ice.lua b/goblin_ice.lua index 0048b30..f36d343 100644 --- a/goblin_ice.lua +++ b/goblin_ice.lua @@ -116,7 +116,7 @@ mobs:register_mob("fun_caves:goblin_ice", { }) mobs:register_egg("fun_caves:goblin_ice", "Goblin Egg (ice)", "default_mossycobble.png", 1) -mobs:register_spawn("fun_caves:goblin_ice", {"default:ice"}, 100, 0, 5 * fun_caves.goblin_spawn_frequency, 3, -50) +mobs:register_spawn("fun_caves:goblin_ice", {"default:ice"}, 100, 0, 5 * fun_caves.goblin_spawn_frequency, 3, 101) minetest.register_node("fun_caves:ice_trap", { description = "Ice Trap", diff --git a/goblin_iron.lua b/goblin_iron.lua index 918b7c1..4b1b572 100644 --- a/goblin_iron.lua +++ b/goblin_iron.lua @@ -118,8 +118,8 @@ mobs:register_mob("fun_caves:goblin_iron", { end, }) mobs:register_egg("fun_caves:goblin_iron", "Goblin Egg (iron)", "default_mossycobble.png", 1) -mobs:register_spawn("fun_caves:goblin_iron", {"default:stone_with_iron"}, 100, 0, 1 * fun_caves.goblin_spawn_frequency, 3, -50) -mobs:register_spawn("fun_caves:goblin_iron", {"default:mossycobble", "fun_caves:hot_cobble"}, 100, 0, 2 * fun_caves.goblin_spawn_frequency, 3, -50) +mobs:register_spawn("fun_caves:goblin_iron", {"default:stone_with_iron"}, 100, 0, 1 * fun_caves.goblin_spawn_frequency, 3, 101) +mobs:register_spawn("fun_caves:goblin_iron", {"default:mossycobble", "fun_caves:hot_cobble"}, 100, 0, 2 * fun_caves.goblin_spawn_frequency, 3, 101) minetest.register_node("fun_caves:stone_with_iron_trap", { description = "Iron Trap", diff --git a/goblin_king.lua b/goblin_king.lua index e8e8256..0afd1e0 100644 --- a/goblin_king.lua +++ b/goblin_king.lua @@ -121,6 +121,6 @@ mobs:register_mob("fun_caves:goblin_king", { end, }) mobs:register_egg("fun_caves:goblin_king", "Goblin King Egg", "default_mossycobble.png", 1) -mobs:register_spawn("fun_caves:goblin_king", {"default:stone_with_mese"}, 100, 0, 1 * fun_caves.goblin_spawn_frequency, 1, -50) -mobs:register_spawn("fun_caves:goblin_king", {"default:mossycobble", "fun_caves:hot_cobble"}, 100, 0, 3 * fun_caves.goblin_spawn_frequency, 3, -50) +mobs:register_spawn("fun_caves:goblin_king", {"default:stone_with_mese"}, 100, 0, 1 * fun_caves.goblin_spawn_frequency, 1, 101) +mobs:register_spawn("fun_caves:goblin_king", {"default:mossycobble", "fun_caves:hot_cobble"}, 100, 0, 3 * fun_caves.goblin_spawn_frequency, 3, 101) diff --git a/mobs.lua b/mobs.lua index 408d15a..bd59e8b 100644 --- a/mobs.lua +++ b/mobs.lua @@ -54,10 +54,35 @@ dofile(fun_caves.path .. "/spider_ice.lua") --dofile(fun_caves.path .. "/dirt_monster.lua") dofile(fun_caves.path .. "/sand_monster.lua") ---if minetest.registered_entities["mobs_monster:dirt_monster"] then --- -- check this --- mobs:register_spawn("mobs_monster:dirt_monster", {"default:dirt"}, 7, 0, 7000, 1, -50, false) ---end +if minetest.registered_entities["mobs_monster:dirt_monster"] then + -- check this + mobs:register_spawn("mobs_monster:dirt_monster", {"default:dirt"}, 7, 0, 7000, 1, -50, false) +end +if minetest.registered_entities["mobs_slimes:green_big"] then + mobs:spawn_specific("mobs_slimes:green_big", + {"fun_caves:stone_with_moss", "fun_caves:stone_with_algae"}, + {"air"}, + 4, 20, 30, 30000, 1, -31000, 31000 + ) + mobs:spawn_specific("mobs_slimes:green_medium", + {"fun_caves:stone_with_moss", "fun_caves:stone_with_algae"}, + {"air"}, + 4, 20, 30, 30000, 2, -31000, 31000 + ) + mobs:spawn_specific("mobs_slimes:green_small", + {"default:dirt_with_grass", "default:junglegrass", "default:mossycobble", "ethereal:green_dirt_top"}, + {"air"}, + 4, 20, 30, 30000, 3, -31000, 31000 + ) +end +if minetest.registered_entities["mobs_creeper:creeper"] then + mobs:spawn_specific("mobs_creeper:creeper", + {"fun_caves:stone_with_moss"}, + {"air"}, + -1, 20, 30, 20000, 1, -31000, 31000 + ) +end + fun_caves.goblin_spawn_frequency = 150