1
0
Fork 0

Generated mob spawners generate mobs in darkness (except silverfish)

This commit is contained in:
Wuzzy 2018-01-08 00:41:57 +01:00
parent fa51fdbdb5
commit a818995d2a
3 changed files with 4 additions and 4 deletions

View File

@ -241,8 +241,8 @@ minetest.register_node("mcl_mobspawners:spawner", {
sunlight_propagates = true, sunlight_propagates = true,
walkable = true, walkable = true,
description = S("Mob Spawner"), 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_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 monter to spawn. Just place the item on the mob spawner."), _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}, groups = {pickaxey=1, material_stone=1, deco_block=1},
is_ground_content = false, is_ground_content = false,
drop = "", drop = "",

View File

@ -388,7 +388,7 @@ minetest.register_on_generated(function(minp, maxp)
} }
local spawner_mob = mobs[math.random(1, #mobs)] 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
end end

View File

@ -53,7 +53,7 @@ end
-- All spawners spawn cave spiders -- All spawners spawn cave spiders
function tsm_railcorridors.on_construct_spawner(pos) 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 end
-- MineClone 2's treasure function. Gets all treasures for a single chest. -- MineClone 2's treasure function. Gets all treasures for a single chest.