forked from MineClone5/MineClone5
Generated mob spawners generate mobs in darkness (except silverfish)
This commit is contained in:
parent
fa51fdbdb5
commit
a818995d2a
|
@ -241,8 +241,8 @@ minetest.register_node("mcl_mobspawners:spawner", {
|
|||
sunlight_propagates = true,
|
||||
walkable = true,
|
||||
description = S("Mob Spawner"),
|
||||
_doc_items_longdesc = S("A mob spawner regularily causes mobs to appear around it while a player is nearby. Mobs are spawned regardless of the light level."),
|
||||
_doc_items_usagehelp = S("If you have a spawn egg, you use it to change the monter to spawn. Just place the item on the mob spawner."),
|
||||
_doc_items_longdesc = S("A mob spawner regularily causes mobs to appear around it while a player is nearby."),
|
||||
_doc_items_usagehelp = S("If you have a spawn egg, you use it to change the mob to spawn. Just place the item on the mob spawner. Player-set mob spawners always spawn mobs regardless of the light level."),
|
||||
groups = {pickaxey=1, material_stone=1, deco_block=1},
|
||||
is_ground_content = false,
|
||||
drop = "",
|
||||
|
|
|
@ -388,7 +388,7 @@ minetest.register_on_generated(function(minp, maxp)
|
|||
}
|
||||
local spawner_mob = mobs[math.random(1, #mobs)]
|
||||
|
||||
mcl_mobspawners.setup_spawner(sp, spawner_mob)
|
||||
mcl_mobspawners.setup_spawner(sp, spawner_mob, 0, 7)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -53,7 +53,7 @@ end
|
|||
|
||||
-- All spawners spawn cave spiders
|
||||
function tsm_railcorridors.on_construct_spawner(pos)
|
||||
mcl_mobspawners.setup_spawner(pos, "mobs_mc:cave_spider")
|
||||
mcl_mobspawners.setup_spawner(pos, "mobs_mc:cave_spider", 0, 7)
|
||||
end
|
||||
|
||||
-- MineClone 2's treasure function. Gets all treasures for a single chest.
|
||||
|
|
Loading…
Reference in New Issue