1
0
mirror of https://codeberg.org/tenplus1/mobs_monster.git synced 2024-12-23 09:20:26 +01:00

using mobs:spawn to spawn monsters

This commit is contained in:
TenPlus1 2016-10-29 16:48:04 +01:00
parent 38d8c555a7
commit 17c6e27e44
9 changed files with 72 additions and 12 deletions

View File

@ -49,8 +49,16 @@ mobs:register_mob("mobs_monster:dirt_monster", {
}, },
}) })
mobs:register_spawn("mobs_monster:dirt_monster", mobs:spawn({
{"default:dirt_with_grass", "ethereal:gray_dirt"}, 7, 0, 7000, 2, 31000, false) name = "mobs_monster:dirt_monster",
nodes = {"default:dirt_with_grass", "ethereal:gray_dirt"},
min_light = 0,
max_light = 7,
chance = 7000,
active_object_count = 2,
min_height = 0,
day_toggle = false,
})
mobs:register_egg("mobs_monster:dirt_monster", S("Dirt Monster"), "default_dirt.png", 1) mobs:register_egg("mobs_monster:dirt_monster", S("Dirt Monster"), "default_dirt.png", 1)

View File

@ -58,7 +58,14 @@ mobs:register_mob("mobs_monster:dungeon_master", {
}, },
}) })
mobs:register_spawn("mobs_monster:dungeon_master", {"default:stone"}, 7, 0, 7000, 1, -70) mobs:spawn({
name = "mobs_monster:dungeon_master",
nodes = {"default:stone"},
max_light = 7,
chance = 7000,
active_object_count = 1,
max_height = -70,
})
mobs:register_egg("mobs_monster:dungeon_master", S("Dungeon Master"), "fire_basic_flame.png", 1, true) mobs:register_egg("mobs_monster:dungeon_master", S("Dungeon Master"), "fire_basic_flame.png", 1, true)

View File

@ -56,7 +56,13 @@ mobs:register_mob("mobs_monster:lava_flan", {
end, end,
}) })
mobs:register_spawn("mobs_monster:lava_flan", {"default:lava_source"}, 15, 0, 1000, 2, 0) mobs:spawn({
name = "mobs_monster:lava_flan",
nodes = {"default:lava_source"},
chance = 1000,
active_object_count = 2,
max_height = 0,
})
mobs:register_egg("mobs_monster:lava_flan", S("Lava Flan"), "default_lava.png", 1) mobs:register_egg("mobs_monster:lava_flan", S("Lava Flan"), "default_lava.png", 1)

View File

@ -54,7 +54,14 @@ mobs:register_mob("mobs_monster:mese_monster", {
}, },
}) })
mobs:register_spawn("mobs_monster:mese_monster", {"default:stone"}, 7, 0, 5000, 1, -20) mobs:spawn({
name = "mobs_monster:mese_monster",
nodes = {"default:stone"},
max_light = 7,
chance = 5000,
active_object_count = 1,
max_height = -20,
})
mobs:register_egg("mobs_monster:mese_monster", S("Mese Monster"), "default_mese_block.png", 1) mobs:register_egg("mobs_monster:mese_monster", S("Mese Monster"), "default_mese_block.png", 1)

View File

@ -57,7 +57,13 @@ mobs:register_mob("mobs_monster:oerkki", {
}, },
}) })
mobs:register_spawn("mobs_monster:oerkki", {"default:stone"}, 7, 0, 7000, 1, -10) mobs:spawn({
name = "mobs_monster:oerkki",
nodes = {"default:stone"},
max_light = 7,
chance = 7000,
max_height = -10,
})
mobs:register_egg("mobs_monster:oerkki", S("Oerkki"), "default_obsidian.png", 1) mobs:register_egg("mobs_monster:oerkki", S("Oerkki"), "default_obsidian.png", 1)

View File

@ -55,7 +55,13 @@ mobs:register_mob("mobs_monster:sand_monster", {
]] ]]
}) })
mobs:register_spawn("mobs_monster:sand_monster", {"default:desert_sand"}, 20, 0, 7000, 2, 31000) mobs:spawn({
name = "mobs_monster:sand_monster",
nodes = {"default:desert_sand"},
chance = 7000,
active_object_count = 2,
min_height = 0,
})
mobs:register_egg("mobs_monster:sand_monster", S("Sand Monster"), "default_desert_sand.png", 1) mobs:register_egg("mobs_monster:sand_monster", S("Sand Monster"), "default_desert_sand.png", 1)

View File

@ -52,8 +52,16 @@ mobs:register_mob("mobs_monster:spider", {
}, },
}) })
mobs:register_spawn("mobs_monster:spider", mobs:spawn({
{"default:desert_stone", "ethereal:crystal_dirt"}, 13, 0, 7000, 1, 71) name = "mobs_monster:spider",
nodes = {"default:desert_stone", "ethereal:crystal_dirt"},
min_light = 0,
max_light = 12,
chance = 7000,
active_object_count = 1,
min_height = -50,
max_height = 31000,
})
mobs:register_egg("mobs_monster:spider", S("Spider"), "mobs_cobweb.png", 1) mobs:register_egg("mobs_monster:spider", S("Spider"), "mobs_cobweb.png", 1)

View File

@ -51,7 +51,13 @@ mobs:register_mob("mobs_monster:stone_monster", {
}, },
}) })
mobs:register_spawn("mobs_monster:stone_monster", {"default:stone", "default:desert_stone"}, 7, 0, 7000, 1, 0) mobs:spawn({
name = "mobs_monster:stone_monster",
nodes = {"default:stone", "default:desert_stone"},
max_light = 7,
chance = 7000,
max_height = 0,
})
mobs:register_egg("mobs_monster:stone_monster", S("Stone Monster"), "default_stone.png", 1) mobs:register_egg("mobs_monster:stone_monster", S("Stone Monster"), "default_stone.png", 1)

View File

@ -53,8 +53,14 @@ mobs:register_mob("mobs_monster:tree_monster", {
}, },
}) })
mobs:register_spawn("mobs_monster:tree_monster", mobs:spawn({
{"default:leaves", "default:jungleleaves"}, 7, 0, 7000, 1, 31000, false) name = "mobs_monster:tree_monster",
nodes = {"default:leaves", "default:jungleleaves"},
max_light = 7,
chance = 7000,
min_height = 0,
day_toggle = false,
})
mobs:register_egg("mobs_monster:tree_monster", S("Tree Monster"), "default_tree_top.png", 1) mobs:register_egg("mobs_monster:tree_monster", S("Tree Monster"), "default_tree_top.png", 1)