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

Insomnia Notifier

Shows phantom risk — as a vanilla effect icon.

6K загрузок10 подписчиковMITfabric

Обновлён 3 января 2026 г. · опубликован 17 апреля 2025 г.

A tiny client-side icon warns when phantoms can spawn — triggered after 3 days without using a bed. No sounds, no HUD clutter, no server changes.

Icon in inventory
Subtle warning appears in the status effect area.

How It Works

  • Tracks Time Since Last Rest.
  • Resets on bed use or death.
  • Fully client-side — works on any server.
  • Only shown in the Overworld.

Pro Tip

No need to sleep.
Lie down on a bed for a split moment — that's enough to avoid phantoms for 3 more days.

Known Notes

  • Does not sync with doInsomnia gamerule.
  • No skylight or height checks.

Future Ideas

  • Actual phantom spawning also requires overhead skylight and Y > 64.
    Add a separate icon for general insomnia; keep the current red-eye icon for when all spawn conditions are met.

More lightweight, modular, UX-centered mods: artginzburg on Modrinth

Версии

ВерсияКаналИграЗагрузчикиДатаСкачать
1.0.1Релиз1.21.5, 1.21.6, 1.21.7, 1.21.8fabric3 января 2026 г..jar (32 КБ)
1.0.0Релиз1.21.5, 1.21.6, 1.21.7, 1.21.8fabric18 апреля 2025 г..jar (31 КБ)

Ченджлог

1.0.1Релиз1.21.6, 1.21.7, 1.21.8 · 3 января 2026 г.

New features

  • Distinction between just Insomnia and actual Phantom Spawning
    • Insomnia means the player hasn't slept for 3 days
    • Phantom Spawning is actually the same effect but with a cyan border that usually appears on Beacon-produced effects. It is shown when all conditions for spawning phantoms are met.
1.0.0Релиз1.21.6, 1.21.7, 1.21.8 · 18 апреля 2025 г.

Initial release of Insomnia Notifier!

Features

  • Adds a custom purple status effect "Insomnia" that appears when the player hasn't lied in a bed for >3 Minecraft days.
  • Works in both singleplayer and multiplayer environments
  • Client-side only - no server installation required
  • Persists sleep tracking data in a local file:
    • Located in .minecraft/cache/insomnia-tracker/
    • Uses JSON format for data storage
    • Survives game restarts
    • Separate tracking per world/server
    • Automatically creates and manages data files
  • Tracks time since last rest accurately across:
    • Regular sleep
    • Death events
    • World/server changes
    • Respawn events
    • Dimension changes
  • Only shows the effect in dimensions where beds work (like the Overworld)
  • Follows vanilla Minecraft phantom spawn rules:
    • Appears after 72000 ticks (60 minutes) without sleep
    • Updates in real-time

Полная история изменений — на Modrinth.

Комментарии

Загружаем…