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.
Quick answer
Which StayNight release should I use?
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.
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.
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.
- 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.
- 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.
- 03
Put it on the correct side
The project page does not say whether this file belongs on the client, dedicated server, or both.
- 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)
- World data (
- 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:
- Override time setters
@ModifyVariable(method = "setDayTime", at = @At("HEAD"), argsOnly = true) private long stayNight(long dayTime) { return 18000L; // Always force midnight } - Hijack time getters
@Inject(method = "getDayTime", at = @At("HEAD"), cancellable = true) private void stayNight(CallbackInfoReturnable<Long> cir) { cir.setReturnValue(18000L); // Always report midnight } - Patch network synchronization
ManipulatesClientboundSetTimePacketto 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.
1.19.2
1 loader build1.18.2
1 loader build1.16.5
1 loader buildCheck the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
StayNight versions and loaders
staynight-1.20.1-1.0.0.jar
6 Jul 2025
staynight-1.19.2-1.0.0.jar
6 Jul 2025
staynight-1.18.2-1.0.0.jar
6 Jul 2025
staynight-1.16.5-1.0.0.jar
6 Jul 2025
Looking for an older file? The official CurseForge project page is in Resources.