Mobs Love Sunlight
阳光不再是一片安全之地。
Mobs Love Sunlight 让你掌控哪些敌对生物会在白天生成,以及哪些生物会在阳光下燃烧。该模组保留了原版生成规则,仅移除了某些怪物必须在黑暗中生成的限制。
这意味着在不彻底改变 Minecraft 生成系统运作方式的前提下,白天也可以变得和夜晚一样危险。
此模组最初是为配合 Mob Control 而创建的。它旨在作为一个轻量级基础,用于打造你自己的白天生存体验。
不强制要求安装 Mob Control,但它与 Mobs Love Sunlight 搭配效果极佳,因为它允许逐步增加难度、自定义生成时机,并为白天和夜晚的生物设置不同的行为规则。
功能
- 允许选定的敌对生物在白天生成。
- 防止选定的生物在阳光下燃烧。
- 完全支持按实体类型进行配置。
- 可配置维度。
- 可配置怪物的方块光照上限。
- 保留原版的生物群系限制、生成权重和特殊生成规则。
工作原理
本模组不会创建新的生成位置或改变生物生成率。
相反,它修改了通常阻止敌对生物在白天出现的规则。
因此:
- 僵尸仍在原本会生成僵尸的地方生成。
- 尸壳仍需要沙漠环境。
- 史莱姆仍需要史莱姆区块或沼泽。
- 特定结构生成的生物仍然只在该结构中生成。
- 稀有生物依然罕见。
理解此模组的一个有用方式是:
如果某生物在夜间可以在该地点自然生成,那么它在白天也可以在该地点生成(如果在配置中启用)。
由于本模组保留了原版生成机制,仅移除了白天的限制,因此它通常能与修改生物属性、AI 或生成行为的模组良好兼容,包括 Mob Control。
配置
配置文件位于:
config/mobs-love-sunlight.json
示例
{
"noDaylightBurningEntityTypes": [
"minecraft:zombie",
"minecraft:skeleton"
],
"daytimeSpawningEntityTypes": [
"minecraft:zombie",
"minecraft:skeleton",
"minecraft:creeper",
"minecraft:spider"
],
"affectedDimensions": [
"minecraft:overworld"
],
"monsterSpawnBlockLightLimit": 0
}
默认配置
默认情况下,不允许任何敌对生物在白天生成。
默认配置仅为少数亡灵生物禁用了阳光燃烧效果。如果你希望生物在白天生成,必须将所需的实体类型显式添加到:
daytimeSpawningEntityTypes
选项
noDaylightBurningEntityTypes
不应再在阳光下燃烧的实体标识符列表。
示例:
[
"minecraft:zombie",
"minecraft:skeleton"
]
affectedDimensions
应应用本模组的维度列表。
示例:
[
"minecraft:overworld",
"aether:the_aether"
]
monsterSpawnBlockLightLimit
控制敌对生物可以生成的最大方块光照等级。
原版值:
0
允许范围:
0-15
daytimeSpawningEntityTypes
应在白天被允许生成的敌对生物列表。
示例:
[
"minecraft:zombie",
"minecraft:creeper",
"minecraft:spider"
]
难度警告
启用白天生成会极大地改变 Minecraft 的难度。
即使仅启用一种生物类型,也会使游戏初期的生存变得更加艰难。
启用一种生物类型与启用所有原版敌对生物之间的主要区别在于敌对生物上限填满的速度,而不是白天是否变得危险。
例如:
- 仅僵尸就能迅速布满地表,因为它们的生成权重较高。
- 骷髅使收集早期资源变得风险大增,因为它们可以从远处攻击。
- 苦力怕可以摧毁地形和早期的庇护所。
- 末影人相对较少,因为它们本身就很罕见。
由于保留了原版的生成权重和生成位置,具体难度很大程度上取决于你选择启用哪些生物。
如果你启用了所有原版敌对生物,请做好白天变成持续生存挑战而非安全探索期的准备。
启用所有原版敌对生物生成
此列表仅包含自然在主世界生成的生物。向此列表添加其他实体无害但不会产生效果。
"daytimeSpawningEntityTypes": [
"minecraft:bogged",
"minecraft:creeper",
"minecraft:drowned",
"minecraft:enderman",
"minecraft:skeleton",
"minecraft:spider",
"minecraft:stray",
"minecraft:witch",
"minecraft:zombie",
"minecraft:zombie_villager"
]
禁用所有原版亡灵生物的阳光燃烧
noDaylightBurningEntityTypes 仅影响那些在原版 Minecraft 中本就会在阳光下燃烧的生物。向此列表添加其他实体无害但不会产生效果。
幻翼被特意排除在外,因为它们拥有不同的生成和消失规则,如果不让它们在阳光下燃烧,它们会随着时间积累。如果你愿意,可以自由添加它们。
"noDaylightBurningEntityTypes": [
"minecraft:zombie",
"minecraft:zombie_villager",
"minecraft:skeleton",
"minecraft:stray",
"minecraft:bogged",
"minecraft:wither_skeleton"
]
推荐的 Mob Control 配置
此模组最初是与 Mob Control 一起设计的,后者可用于在前几个 Minecraft 天内逐步引入白天生成。
与其立即允许完整的白天生成,下面的示例配置会缓慢增加生成频率:
| 天数 |
预期体验 |
| Day 1 |
大部分时间较为和平,但在探索时会偶尔遭遇敌对生物。 |
| Days 2-3 |
预计会频繁遭遇敌对生物并经常发生战斗或逃跑,但仍会有偶尔的平静时刻。 |
| Day 4+ |
白天变得持续危险。在庇护所外停留长时间变得越来越困难。 |
这创造了一条更平滑的难度曲线,同时仍允许所有配置的生物在白天最终生成。
安装配置
- 安装 Mob Control。
- 运行一次 Minecraft 以生成默认配置。
- 打开:
config/mobcontrol.toml
- 将以下规则复制到配置文件中。
################################################################################
# Day 1
################################################################################
[[mob]]
name=["minecraft:bogged", "minecraft:creeper", "minecraft:enderman", "minecraft:husk", "minecraft:skeleton", "minecraft:spider", "minecraft:stray", "minecraft:witch", "minecraft:zombie", "minecraft:zombie_villager"]
[[mob.rule]]
name="day1Spawns"
type="natural"
dimension=["minecraft:overworld"]
day=0
time-of-day="<12000"
run=1
cool-down=[80,200]
spawn.count=1
################################################################################
# Day 2-3
################################################################################
[[mob.rule]]
name="day2And3Spawns"
type="natural"
dimension=["minecraft:overworld"]
day=[1,2]
time-of-day="<12000"
run=100
cool-down=[40,150]
################################################################################
# Day 4+
################################################################################
[[mob.rule]]
name="day4PlusSpawns"
type="natural"
dimension=["minecraft:overworld"]
day=">2"
time-of-day="<12000"
run=100
################################################################################
# Keep vanilla nighttime spawning
################################################################################
[[mob.rule]]
name="vanillaNight"
type="natural"
dimension=["minecraft:overworld"]
time-of-day=">12000"
run=100
################################################################################
# Keep non-natural spawning (spawn eggs, spawners, commands, etc.)
################################################################################
[[mob.rule]]
type="all"
示例:创建末日景象
这个模组最初是设计为与 Mob Control 配合使用,而不是替代它。
虽然 Mob Control 可以使用 type="control" 规则自行创建白天生成,但这样做会替换受影响生物的原版自然生成。每一个生成规则——包括生物群系限制、结构、生成权重和特殊情况——都必须手动重新创建。
Mobs Love Sunlight 采取了不同的方法。
它保留了原版的自然生成,只是移除了对日光(白天)的限制。这使得 Mob Control 的 type="natural" 规则能够修改现有的原版生成,而不是替换它们。
在实践中,这意味着你可以:
- 启用白天生成,同时保留原版的生成表;
- 在游戏中调整生成概率;
- 在特定天数禁用或抑制白天生成;
- 使用 Mob Control 更改生物行为或属性;
- 将该模组与生物群系和结构模组结合使用,而无需重建生成规则。
这使得在接近原版生成行为的同时,更容易创建基于进度的生存体验。
重要说明
生物仍然会燃烧
配置为白天生成的生物在阳光下仍会燃烧,除非它也被包含在:
noDaylightBurningEntityTypes
中。
生物可能不会在你期望的地方生成
该模组仅移除日光限制。
它不改变:
如果一种生物在夜间很少生成,那么它在白天也很少生成。
模组维度
默认情况下,只有主世界(Overworld)受到影响。
许多模组维度使用自定义生成系统,其行为可能会有所不同。
兼容性信息
此模组使用 mixins 修改原版生成。
以下系统被修改:
DimensionType.MonsterSettings
HostileEntity#getPathfindingFavor
MobEntity#isAffectedByDaylight
因此,可能会与以下模组发生冲突:
- 修改怪物光照要求的模组;
- 改变敌对生物生成检查的模组;
- 替换生物寻路偏好计算的模组;
- 完全重写生物生成的模组;
- 替换日光燃烧行为的模组。
潜在不兼容模组的示例包括:
- 白天生成模组;
- 自定义难度模组;
- 生成重制模组;
- 重写原版生物 AI 或生成的模组。
与仅修改生成表的数据包通常具有良好的兼容性。
给整合包作者的信息
此模组有意保留原版的生成规则和概率。
它旨在与以下模组良好配合:
- 生物群系模组;
- 结构模组;
- 生物属性模组;
- 生物行为模组;
- AI 重制模组;
- 更改生成列表的数据包。
如果另一个模组也修改了上述相同的 mixin 目标,加载顺序和兼容性可能会有所不同。
许可证
MIT — 欢迎将此模组包含在整合包中。
Mobs Love Sunlight
The sun is no longer a safe haven.
Mobs Love Sunlight puts you in charge of deciding which hostile mobs should spawn during the day and which mobs should burn in the sun. The mod keeps vanilla spawning rules intact and simply removes the requirement that certain monsters must spawn in darkness.
This means daytime can become just as dangerous as nighttime without completely changing how Minecraft's spawning system works.
This mod was originally created to complement Mob Control. It was made to be a lightweight foundation for creating your own daytime survival experience.
Mob Control is not required, but it pairs exceptionally well with Mobs Love Sunlight by allowing gradual difficulty scaling, custom spawn timing, and different behavior rules for daytime and nighttime mobs.
Features
- Allow selected hostile mobs to spawn during the day.
- Prevent selected mobs from burning in sunlight.
- Fully configurable per entity type.
- Configurable dimensions.
- Configurable monster block light limit.
- Preserves vanilla biome restrictions, spawn weights, and special spawning rules.
How It Works
This mod does not create new spawn locations or change mob spawn rates.
Instead, it changes the rules that normally prevent hostile mobs from appearing during daylight.
As a result:
- Zombies still spawn where zombies normally spawn.
- Husks still require deserts.
- Slimes still require slime chunks or swamps.
- Structure-specific spawns remain structure-specific.
- Rare mobs remain rare.
A useful way to think about the mod is:
If a mob could naturally spawn at this location during the night, it can also spawn there during the day (if enabled in the configuration).
Because this mod preserves vanilla spawning mechanics and only removes daylight restrictions, it should generally work well with mods that modify mob attributes, AI, or spawn behavior, including Mob Control.
Configuration
The configuration file is located in:
config/mobs-love-sunlight.json
Example
{
"noDaylightBurningEntityTypes": [
"minecraft:zombie",
"minecraft:skeleton"
],
"daytimeSpawningEntityTypes": [
"minecraft:zombie",
"minecraft:skeleton",
"minecraft:creeper",
"minecraft:spider"
],
"affectedDimensions": [
"minecraft:overworld"
],
"monsterSpawnBlockLightLimit": 0
}
Default Configuration
By default, no hostile mobs are allowed to spawn during the day.
The default configuration only disables sunlight burning for a few undead mobs. If you want daytime spawning, you must explicitly add the desired entity types to:
daytimeSpawningEntityTypes
Options
noDaylightBurningEntityTypes
A list of entity identifiers that should no longer burn in sunlight.
Example:
[
"minecraft:zombie",
"minecraft:skeleton"
]
affectedDimensions
A list of dimensions where the mod should apply.
Example:
[
"minecraft:overworld",
"aether:the_aether"
]
monsterSpawnBlockLightLimit
Controls the maximum block light level that hostile mobs may spawn in.
Vanilla value:
0
Allowed range:
0-15
daytimeSpawningEntityTypes
A list of hostile mobs that should be allowed to spawn during the day.
Example:
[
"minecraft:zombie",
"minecraft:creeper",
"minecraft:spider"
]
Difficulty Warning
Enabling daytime spawning dramatically changes Minecraft's difficulty.
Even enabling a single mob type can make surviving the early game considerably harder.
The difference between enabling one mob type and enabling every vanilla hostile mob is mostly how quickly the hostile mob cap fills up, not whether daytime becomes dangerous.
For example:
- Zombies alone can quickly populate the surface because they have a high spawn weight.
- Skeletons make gathering early resources much riskier because they can attack from a distance.
- Creepers can destroy terrain and early shelters.
- Endermen remain relatively uncommon because they are naturally rare.
Because vanilla spawn weights and spawn locations are preserved, the exact difficulty depends heavily on which mobs you choose to enable.
If you enable every vanilla hostile mob, expect daytime to become a constant survival challenge rather than a safe exploration period.
Enable all vanilla hostile mob spawns
This list only includes mobs that naturally spawn in the overworld. Adding other entities to this list is harmless but has no effect.
"daytimeSpawningEntityTypes": [
"minecraft:bogged",
"minecraft:creeper",
"minecraft:drowned",
"minecraft:enderman",
"minecraft:skeleton",
"minecraft:spider",
"minecraft:stray",
"minecraft:witch",
"minecraft:zombie",
"minecraft:zombie_villager"
]
Disable sunlight burning for all vanilla undead mobs
noDaylightBurningEntityTypes only affects mobs that already burn in sunlight in vanilla Minecraft. Adding other entities to this list is harmless but has no effect.
Phantoms are excluded on purpose because they have different spawn and despawn rules that cause them to accumulate over time if they don't burn in the sun. Feel free to add them if you want.
"noDaylightBurningEntityTypes": [
"minecraft:zombie",
"minecraft:zombie_villager",
"minecraft:skeleton",
"minecraft:stray",
"minecraft:bogged",
"minecraft:wither_skeleton"
]
Recommended Mob Control Configuration
This mod was originally designed alongside Mob Control, which can be used to gradually introduce daytime spawns over the first few Minecraft days.
Rather than immediately allowing full daytime spawning, the example configuration below slowly increases spawn frequency:
| Day |
Expected experience |
| Day 1 |
Mostly peaceful with occasional hostile encounters while exploring. |
| Days 2-3 |
Expect frequent encounters and regular fighting or fleeing, but still with occasional calm moments. |
| Day 4+ |
Daytime becomes consistently dangerous. Spending long periods outside shelter becomes increasingly difficult. |
This creates a smoother difficulty curve while still allowing every configured mob to eventually spawn during the day.
Installing the configuration
- Install Mob Control.
- Run Minecraft once to generate the default configuration.
- Open:
config/mobcontrol.toml
- Copy the following rules into the configuration file.
################################################################################
# Day 1
################################################################################
[[mob]]
name=["minecraft:bogged", "minecraft:creeper", "minecraft:enderman", "minecraft:husk", "minecraft:skeleton", "minecraft:spider", "minecraft:stray", "minecraft:witch", "minecraft:zombie", "minecraft:zombie_villager"]
[[mob.rule]]
name="day1Spawns"
type="natural"
dimension=["minecraft:overworld"]
day=0
time-of-day="<12000"
run=1
cool-down=[80,200]
spawn.count=1
################################################################################
# Day 2-3
################################################################################
[[mob.rule]]
name="day2And3Spawns"
type="natural"
dimension=["minecraft:overworld"]
day=[1,2]
time-of-day="<12000"
run=100
cool-down=[40,150]
################################################################################
# Day 4+
################################################################################
[[mob.rule]]
name="day4PlusSpawns"
type="natural"
dimension=["minecraft:overworld"]
day=">2"
time-of-day="<12000"
run=100
################################################################################
# Keep vanilla nighttime spawning
################################################################################
[[mob.rule]]
name="vanillaNight"
type="natural"
dimension=["minecraft:overworld"]
time-of-day=">12000"
run=100
################################################################################
# Keep non-natural spawning (spawn eggs, spawners, commands, etc.)
################################################################################
[[mob.rule]]
type="all"
Example: Creating an Apocalypse
This mod was originally written to work alongside Mob Control, rather than replace it.
While Mob Control can create daytime spawning on its own using type="control" rules, doing so replaces vanilla natural spawning for the affected mobs. Every spawn rule—including biome restrictions, structures, spawn weights, and special cases—must then be recreated manually.
Mobs Love Sunlight takes a different approach.
It leaves vanilla natural spawning intact and simply removes the daylight restriction. This allows Mob Control's type="natural" rules to modify existing vanilla spawns instead of replacing them.
In practice this means you can:
- enable daytime spawning while keeping vanilla spawn tables;
- adjust spawn probabilities throughout the game;
- disable or throttle daytime spawns on specific days;
- change mob behavior or attributes using Mob Control;
- combine the mod with biome and structure mods without rebuilding spawn rules.
This makes it much easier to create progression-based survival experiences while staying close to vanilla spawning behavior.
Important Notes
Mobs can still burn
A mob configured for daytime spawning will still burn in sunlight unless it is also included in:
noDaylightBurningEntityTypes
Mobs may not spawn where you expect
This mod only removes daylight restrictions.
It does not change:
- Biomes
- Spawn weights
- Structures
- Special spawn conditions
- Spawn probabilities
If a mob rarely spawns at night, it will also rarely spawn during the day.
Modded dimensions
By default only the Overworld is affected.
Many modded dimensions use custom spawning systems and may behave differently.
Compatibility Information
This mod modifies vanilla spawning using mixins.
The following systems are modified:
DimensionType.MonsterSettings
HostileEntity#getPathfindingFavor
MobEntity#isAffectedByDaylight
Because of this, conflicts may occur with mods that:
- modify monster light requirements;
- alter hostile mob spawn checks;
- replace mob pathfinding favor calculations;
- completely rewrite mob spawning;
- replace daylight burning behavior.
Examples of potentially incompatible mods include:
- daylight spawning mods;
- custom difficulty mods;
- spawn overhaul mods;
- mods that rewrite vanilla mob AI or spawning.
Compatibility with datapacks that only modify spawn tables is generally good.
For Modpack Authors
This mod intentionally preserves vanilla spawn rules and probabilities.
It is designed to work well alongside:
- biome mods;
- structure mods;
- mob attribute mods;
- mob behavior mods;
- AI overhaul mods;
- datapacks that change spawn lists.
If another mod also modifies the same mixin targets listed above, load order and compatibility may vary.
License
MIT — feel free to include this mod in modpacks.
评论 0
登录后参与评分
还没有评论,来抢沙发吧