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.
🌙 True Permanent Night
🛡️ Comprehensive Time Control
PrimaryLevelData, DerivedLevelData)ClientLevel, ServerLevel)ClientboundSetTimePacket)⚡ Zero Configuration
Instantly works upon installation - no configs or commands needed!
🧩 Compatibility
Compatible with most mods that don't directly alter time mechanics.
The mod uses bytecode manipulation to:
@ModifyVariable(method = "setDayTime", at = @At("HEAD"), argsOnly = true)
private long stayNight(long dayTime) {
return 18000L; // Always force midnight
}
@Inject(method = "getDayTime", at = @At("HEAD"), cancellable = true)
private void stayNight(CallbackInfoReturnable<Long> cir) {
cir.setReturnValue(18000L); // Always report midnight
}
ClientboundSetTimePacket to prevent servers from overriding the eternal night.Logo generated by https://www.doubao.com/chat/, CC BY 4.0