mirror of
https://codeberg.org/tenplus1/mobs_monster.git
synced 2024-12-23 01:10:26 +01:00
Added compatibility with older mobs already spawned
This commit is contained in:
parent
e468946194
commit
55b0599cfe
@ -52,4 +52,5 @@ mobs:register_spawn("mobs_monster:dirt_monster",
|
||||
|
||||
mobs:register_egg("mobs_monster:dirt_monster", "Dirt Monster", "default_dirt.png", 1)
|
||||
|
||||
minetest.register_alias("mobs:dirt_monster", "mobs_monster:dirt_monster")
|
||||
-- compatibility
|
||||
mobs:alias_mob("mobs:dirt_monster", "mobs_monster:dirt_monster")
|
||||
|
@ -56,7 +56,8 @@ mobs:register_spawn("mobs_monster:dungeon_master", {"default:stone"}, 7, 0, 7000
|
||||
|
||||
mobs:register_egg("mobs_monster:dungeon_master", "Dungeon Master", "fire_basic_flame.png", 1, true)
|
||||
|
||||
minetest.register_alias("mobs:dungeon_master", "mobs_monster:dungeon_master")
|
||||
-- compatibility
|
||||
mobs:alias_mob("mobs:dungeon_master", "mobs_monster:dungeon_master")
|
||||
|
||||
-- fireball (weapon)
|
||||
mobs:register_arrow("mobs_monster:fireball", {
|
||||
|
@ -56,7 +56,8 @@ mobs:register_spawn("mobs_monster:lava_flan", {"default:lava_source"}, 15, 0, 10
|
||||
|
||||
mobs:register_egg("mobs_monster:lava_flan", "Lava Flan", "default_lava.png", 1)
|
||||
|
||||
minetest.register_alias("mobs:lava_flan", "mobs_monster:lava_flan")
|
||||
-- compatibility
|
||||
mobs:alias_mob("mobs:lava_flan", "mobs_monster:lava_flan")
|
||||
|
||||
-- lava orb
|
||||
minetest.register_craftitem(":mobs:lava_orb", {
|
||||
|
@ -56,7 +56,8 @@ mobs:register_spawn("mobs_monster:mese_monster", {"default:stone"}, 7, 0, 5000,
|
||||
|
||||
mobs:register_egg("mobs_monster:mese_monster", "Mese Monster", "default_mese_block.png", 1)
|
||||
|
||||
minetest.register_alias("mobs:mese_monster", "mobs_monster:mese_monster")
|
||||
-- compatibility
|
||||
mobs:alias_mob("mobs:mese_monster", "mobs_monster:mese_monster")
|
||||
|
||||
-- mese arrow (weapon)
|
||||
mobs:register_arrow("mobs_monster:mese_arrow", {
|
||||
|
@ -59,4 +59,5 @@ mobs:register_spawn("mobs_monster:oerkki", {"default:stone"}, 7, 0, 7000, 1, -10
|
||||
|
||||
mobs:register_egg("mobs_monster:oerkki", "Oerkki", "default_obsidian.png", 1)
|
||||
|
||||
minetest.register_alias("mobs:oerkki", "mobs_monster:oerkki")
|
||||
-- compatibility
|
||||
mobs:alias_mob("mobs:oerkki", "mobs_monster:oerkki")
|
||||
|
@ -51,4 +51,5 @@ mobs:register_spawn("mobs_monster:sand_monster", {"default:desert_sand"}, 20, 0,
|
||||
|
||||
mobs:register_egg("mobs_monster:sand_monster", "Sand Monster", "default_desert_sand.png", 1)
|
||||
|
||||
minetest.register_alias("mobs:sand_monster", "mobs_monster:sand_monster")
|
||||
-- compatibility
|
||||
mobs:alias_mob("mobs:sand_monster", "mobs_monster:sand_monster")
|
||||
|
@ -54,7 +54,8 @@ mobs:register_spawn("mobs_monster:spider",
|
||||
|
||||
mobs:register_egg("mobs_monster:spider", "Spider", "mobs_cobweb.png", 1)
|
||||
|
||||
minetest.register_alias("mobs:spider", "mobs_monster:spider")
|
||||
-- compatibility
|
||||
mobs:alias_mob("mobs:spider", "mobs_monster:spider")
|
||||
|
||||
-- ethereal crystal spike compatibility
|
||||
if not minetest.get_modpath("ethereal") then
|
||||
|
@ -53,4 +53,5 @@ mobs:register_spawn("mobs_monster:stone_monster", {"default:stone", "default:des
|
||||
|
||||
mobs:register_egg("mobs_monster:stone_monster", "Stone Monster", "default_stone.png", 1)
|
||||
|
||||
minetest.register_alias("mobs:stone_monster", "mobs_monster:stone_monster")
|
||||
-- compatibility
|
||||
mobs:alias_mob("mobs:stone_monster", "mobs_monster:stone_monster")
|
||||
|
@ -31,8 +31,8 @@ mobs:register_mob("mobs_monster:tree_monster", {
|
||||
{name = "ethereal:jungle_tree_sapling", chance = 3, min = 1, max = 2},
|
||||
{name = "default:apple", chance = 2, min = 1, max=3},
|
||||
},
|
||||
water_damage = 1,
|
||||
lava_damage = 5,
|
||||
water_damage = 2,
|
||||
lava_damage = 0,
|
||||
light_damage = 2,
|
||||
fall_damage = 0,
|
||||
animation = {
|
||||
@ -54,7 +54,8 @@ mobs:register_spawn("mobs_monster:tree_monster",
|
||||
|
||||
mobs:register_egg("mobs_monster:tree_monster", "Tree Monster", "default_tree_top.png", 1)
|
||||
|
||||
minetest.register_alias("mobs:tree_monster", "mobs_monster:tree_monster")
|
||||
-- compatibility
|
||||
mobs:alias_mob("mobs:tree_monster", "mobs_monster:tree_monster")
|
||||
|
||||
-- ethereal sapling compatibility
|
||||
if not minetest.get_modpath("ethereal") then
|
||||
|
Loading…
Reference in New Issue
Block a user