Перейти к содержимому
Mineforgian

Calm Mornings

Despawns hostile mobs around the player upon waking up!

Загрузки
13K
Подписчики
32
Обновлён
4 июля 2026 г.
Лицензия
GPL-3.0-only

Опубликован 13 сентября 2024 г.

Calm Mornings will look for any Hostile mobs(with notible exceptions), within a specified radius around a player upon waking up, and despawn them. This was done to help "simulate" the movement of monsters during the night.

No more creepers waiting right outside your doors, making your morning strolls a little calmer.

Info:

This mod is highly configurable, and most aspects of what this mod does can be adjusted to suit your needs.

#General Settings
[general]
    #Use list instead of builtin rules for despawning?
    enableList = false
    #List of mobs to despawn. [Requires enableList]
    #Formatting: ["minecraft:zombie", "minecraft:*", "<modId>:<entityId>"]
    mobs = ["minecraft:zombie", "minecraft:skeleton", "minecraft:spider", "minecraft:creeper"]
    #Adds mobs to despawn group. Mobs in blacklisted are prevented from despawning.
    #Allowed Groups: boss, monster, villager, creature, ambient, construct, misc, blacklisted
    #Formatting: ["minecraft:villager:villager", "minecraft:*:creature", "<modId>:<entityId>:<group>"]
    groups = ["minecraft:ender_dragon:boss", "minecraft:wither:boss", "minecraft:warden:boss", "minecraft:villager:villager", "minecraft:wandering_trader:villager", "minecraft:iron_golem:construct", "minecraft:snow_golem:construct"]

#Range Settings
[range]
    #Should difficulty based range scaling be enabled?
    #Difficulty Scaling: EASY = base | NORMAL = base / 2 | HARD = base / 4
    enableScaling = true
    #Horizontal radius to check for mobs to despawn.
    #Range: 0 ~ 256
    horizontalRange = 64
    #Vertical radius to check for mobs to despawn.
    #Range: 0 ~ 64
    verticalRange = 16

#Conditional Checks
[checks]
    #Player must sleep before this time to allow despawning.
    #Allowed Values: MORNING_E, MORNING, MORNING_L, NOON_E, NOON, NOON_L, EVENING_E, EVENING, EVENING_L, NIGHT_E, NIGHT, NIGHT_L, DISABLED
    lateCheck = "NIGHT_L"
    #Latest time the player can wakeup to allow despawning.
    #Allowed Values: MORNING_E, MORNING, MORNING_L, NOON_E, NOON, NOON_L, EVENING_E, EVENING, EVENING_L, NIGHT_E, NIGHT, NIGHT_L, DISABLED
    morningCheck = "MORNING_E"
    #Should non-sleeping players prevent despawning around them?
    playerCheck = true

    #Group Checks [Disabled by enableList]
    [checks.group_checks]
        #Check boss group?
        bossCheck = false
        #Check monster group?
        monsterCheck = true
        #Check villager group?
        villagerCheck = false
        #Check creature group?
        creatureCheck = false
        #Check ambient group?
        ambientCheck = false
        #Check construct group?
        constructCheck = false
        #Check misc group?
        miscCheck = false
FAQ:

Q: How does this work with Persistent mobs?

A: If they are named, it ignores them; otherwise it will drop their equipment when despawning them.

Q: Where should I leave suggestions or feedback?

A: I would love to hear any suggestions or feedback you have! I only ask that you leave it as a new issue on the mods Github as it makes it easier for me to manage and track.

Q: Can I use this in my modpack?

A: Absolutely! I only ask that you give credit if you do. Other than that, feel free to include it and modify it however you see fit for your pack.

Q: What version(s) will be supported?

A: Only the latest major version will be supported. I may update older versions if there are any major bugs/oversights, but will not be backporting new features to them.

Q: Is this compatible with X mod?

A: I have gone out of my way to try and make this mod as compatible with as many mods as possible. If you experience any incompatibilities, please report the issue on the mods Github.

Ченджлог

4.1.0Релиз1.21, 1.21.1 · 4 июля 2026 г.
  • Stored player data is no longer persistent

This was never really needed, so it has now been removed. The data is still there and used, just never saved. It was already being reset on joining a world anyways.

  • Group and List based despawning are now mutually exclusive

When the list is not enabled, the mod will use the group based system to despawn entities. When list is enabled, the mod will only despawn entities on the list. Entities in the blacklisted group will still be disabled in both systems.

  • Built-in blacklist now only applies to Group based despawning
  • Fixed logic error for nearby awake player exclusions
  • Fixed Morning/Late checks not actually allowing despawning at any time

This fixes the issue when using Sleep Tight's hammock. Now if you disable both checks, you can sleep during the day and still despawn mobs on waking.

  • Reworked equipment drop logic
  • Fixed version range to only support up to 1.21.1

You can thank Mojang for breaking multiple functions in minor version releases.

  • Minor code optimizations
4.1.0Релиз1.20, 1.20.1 · 4 июля 2026 г.
  • Stored player data is no longer persistent

This was never really needed, so it has now been removed. The data is still there and used, just never saved. It was already being reset on joining a world anyways.

  • Group and List based despawning are now mutually exclusive

When the list is not enabled, the mod will use the group based system to despawn entities. When list is enabled, the mod will only despawn entities on the list. Entities in the blacklisted group will still be disabled in both systems.

  • Built-in blacklist now only applies to Group based despawning
  • Fixed logic error for nearby awake player exclusions
  • Fixed Morning/Late checks not actually allowing despawning at any time

This fixes the issue when using Sleep Tight's hammock. Now if you disable both checks, you can sleep during the day and still despawn mobs on waking.

  • Reworked equipment drop logic
  • Minor code optimizations
4.0.6Релиз1.20, 1.20.1 · 4 марта 2025 г.
  • minor refactoring
4.0.7Релиз1.19, 1.19.1, 1.19.2 · 4 марта 2025 г.
  • fixed rare crash related to null damage source
4.0.6Релиз1.18, 1.18.1, 1.18.2 · 4 марта 2025 г.
  • fixed rare crash related to null damage source
4.0.4Релиз1.21, 1.21.1 · 9 февраля 2025 г.
  • fixed rare crashes caused by null exceptions
4.0.5Релиз1.20, 1.20.1 · 9 февраля 2025 г.
  • fixed rare crashes caused by null exceptions
4.0.6Релиз1.19.3, 1.19.4 · 9 февраля 2025 г.
  • fixed rare crashes caused by null exceptions

Комментарии

Загружаем…