Mineuniverse
Log in Register
Mods

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.
by _nArUTo_
Download Claim this project
435 downloads
0 likes
Updated Jul 6, 2026
0 hypes
Adventure and RPG Server Utility

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

staynight-1.20.1-1.0.0.jar
MC Client, 1.20.1, Forge, Server
Release 2025-07-06 Get

More from _nArUTo_

ServerTickReforged
93,265
Starks
918
Rage Mod
9,134
EmptiableBoxes
91
Camel Extend
906
PeaceCampfire
904

You Might Also Like

AstikorCarts Redux
Horse powered carts and plows, now for 1.20+!
9,976,693
mxTune
Adds musical instruments that allow you to play music in MML format.
994,306
JoJo No Kimyou Na Bouken: JoJoCraft
This is a jojos Mod Nothing more
99,649
Middle-earth
Join the legendary world of Tolkien's universe from The Lord of The Rings to the Hobbit and more!
99,467
Pure Discs - Tricky Trials (Fabric/Forge)
Adds nine new discs from songs that were added in the 1.21 Tricky Trials update!
99,442
Reverse Eon
Reverse Eon adds a persistent, player-owned island dimension to Minecraft. Enter your personal world through the Timekeeper Suitcase and manage it with the Computer Suitcase, giving you full control over island settings, portals, visitors, and more.
9,980