All Mods Resource Packs Data Packs Shaders Modpacks Plugins
Insomnia Notifier

Insomnia Notifier

by artginzburg • Downloads: 1 • Followers: 0
Description
Gallery
Changelog
Versions

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

How to Install Insomnia Notifier (Mod)

Insomnia Notifier by artginzburg is verified for Fabric across Minecraft versions 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8 (latest release: 1.0.1, file size: 32 KB). Follow the steps below to install it safely from ModCraft.tv:

  1. Click the Download button above and select your Minecraft version (1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8) and platform (Fabric).
  2. Make sure you have the compatible loader or environment installed for Fabric.
  3. Move the downloaded Insomnia Notifier file into your Minecraft .minecraft/mods folder and launch the game.

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
1.21.x
Fabric
10mo ago 1
1.21.x
Fabric
last yr. 1
[1.0.1] 1.0.1 by artginzburg on Jan 03, 2026
Download
## 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.0.0 by artginzburg on Apr 18, 2025
Download
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
Insomnia Notifier Icon
Download Insomnia Notifier
Select game version
Select platform