Back to mods
StayNight project artwork

CurseForge · Minecraft mod

StayNight

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

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which StayNight release should I use?

Updated 1 year ago
Latest stable file staynight-1.20.1-1.0.0.jar
Game version 1.20.1
Loader Forge

staynight-1.20.1-1.0.0.jar targets 1.20.1 with Forge. The project page does not say whether this file belongs on the client, dedicated server, or both. No extra mods listed for this file.

Where it goes

Is StayNight required on the client, server, or both?

The project page does not say whether this file belongs on the client, dedicated server, or both.

Client Source doesn’t say
Dedicated server Source doesn’t say
Loader for this release Forge
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

The source does not explicitly classify this release as client-only or server-only.

What else does staynight-1.20.1-1.0.0.jar need?

staynight-1.20.1-1.0.0.jar. Change the file and its required mods may change too.

No extra mods listed for this file

This file does not list any required mods. Do not add a library just because a different file uses it.

This file does not list any required or optional mods.

Before you install it

Add StayNight without breaking your instance.

Built for staynight-1.20.1-1.0.0.jar. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use staynight-1.20.1-1.0.0.jar. It targets 1.20.1 with Forge; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    This file does not list any required mods. Do not add a library just because a different file uses it.

  3. 03

    Put it on the correct side

    The project page does not say whether this file belongs on the client, dedicated server, or both.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside staynight-1.20.1-1.0.0.jar. It opens that exact file at the source.

About this project

What does StayNight add?

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

  • Forces all worlds to remain at 18000 ticks (midnight) regardless of time commands, sleep attempts, or natural cycles.
  • Works in both singleplayer and multiplayer environments.

🛡️ Comprehensive Time Control

  • Intercepts time-setting logic in:
    • World data (PrimaryLevelData, DerivedLevelData)
    • Client/Server level handlers (ClientLevel, ServerLevel)
    • Network time-sync packets (ClientboundSetTimePacket)
  • Blocks all attempts to modify the time of day

⚡ 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

  • Horror/adventure maps requiring permanent darkness
  • Vampire/fantasy roleplay servers
  • Atmospheric builds showcasing night lighting
  • Gameplay challenges without daylight cycles

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

Project description from CurseForge.

Pick your setup

StayNight by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

4 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

StayNight versions and loaders

4 of 4 releases match

Looking for an older file? The official CurseForge project page is in Resources.