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.
介绍
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
常见问题
StayNight 支持哪些 Minecraft 版本?
StayNight 支持 Minecraft Java 版 1.16.5–1.20.1,共 4 个版本,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。
StayNight 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。
_nArUTo_ 的其他作品
查看全部 →Redirector [Modern]
重定向代码中 Enum#values() 的内存分配,提升游戏性能。
Dimensional Sync Fixes
修复玩家切换维度时药水/经验同步问题。
Sparse Structures Reforged
让所有结构分布得更分散(本质上就是让它们更稀有),使探索更具挑战性、减少重复感。
DespawnTweaker
更好的 Let Me Despawn 优化 | 不允许刷怪笼生成的生物消失
评论
登录后评论和评分