Home›Java›Mods›StayNight
StayNight
ModsJava

StayNight

Java mod listed for Minecraft 1.16–1.20. Downloads from the MC Java Mods app on Android.

by _nArUTo_ · on CurseForge

Permanently locks your Minecraft world at midnight (tick 18000) with zero configuration, overriding all time mechanics client-side and server-side for…

Which Minecraft do you have?

Every version of the game needs its own build. Pick yours, then download — the wrong build installs fine and then does nothing in the game. This mod is built for Forge only.

⬇ Download for 1.20.1⬇ Download for 1.19.2⬇ Download for 1.18.2⬇ Download for 1.16.5
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.

Stay Night - Permanent Midnight Mod

Overview
Stay Night is a lightweight Minecraft mod that forever locks your world at midnight (tick 18000), creating a permanent night atmosphere perfect for horror maps, vampire roleplays, or players who prefer the mysterious ambiance of darkness. This mod seamlessly overrides time mechanics on both client and server sides to maintain eternal night.


Key Features

🌙 True Permanent Night

🛡️ Comprehensive Time Control

⚡ Zero Configuration
Instantly works upon installation - no configs or commands needed!

🧩 Compatibility
Compatible with most mods that don't directly alter time mechanics.


Technical Implementation

The mod uses bytecode manipulation to:

  1. Override time setters
    @ModifyVariable(method = "setDayTime", at = @At("HEAD"), argsOnly = true)
    private long stayNight(long dayTime) {
        return 18000L; // Always force midnight
    }
    
  2. Hijack time getters
    @Inject(method = "getDayTime", at = @At("HEAD"), cancellable = true)
    private void stayNight(CallbackInfoReturnable<Long> cir) {
        cir.setReturnValue(18000L); // Always report midnight
    }
    
  3. Patch network synchronization
    Manipulates ClientboundSetTimePacket to prevent servers from overriding the eternal night.

Use Cases

Logo generated by https://www.doubao.com/chat/, CC BY 4.0

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

File checked by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more