Use mobs redo api instead of replicating.
This commit is contained in:
parent
6f25d3c388
commit
a46641fcac
22 changed files with 120 additions and 3326 deletions
|
@ -111,11 +111,13 @@ mobs:register_mob("fun_caves:goblin_gold", {
|
|||
fun_caves.search_replace(self.object:getpos(), 5, 1, {"default:torch"}, "air")
|
||||
fun_caves.search_replace(self.object:getpos(), 20, 1, {"default:stone"}, "default:mossycobble")
|
||||
fun_caves.search_replace(self.object:getpos(), 50, 5, {"group:stone"}, "fun_caves:stone_with_gold_trap")
|
||||
|
||||
fun_caves.surface_damage(self)
|
||||
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, 31000)
|
||||
mobs:register_spawn("fun_caves:goblin_gold", {"default:mossycobble", "fun_caves:hot_cobble"}, 100, 0, 2 * fun_caves.goblin_spawn_frequency, 3, 31000)
|
||||
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)
|
||||
|
||||
minetest.register_node("fun_caves:molten_gold_source", {
|
||||
description = "Molten Gold Source",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue