Compatibility
Minecraft: Java Edition
Platforms
Supported environments
Links
Creators
Details
NightCore
Our multi-threaded processing allows you to get the best performance when using the mod.
Overview
• Records player actions (block breaking/placement, interactions, containers, etc.)
• Performs periodic backups of player inventories and chunks
• Allows for rollback/restore of chunks and inventories
• Has an interactive inspector (with pagination) for consulting history
• Uses background processing (multithreaded) to avoid lagging the server
• Stores data in SQLite (nightcore/nightcore.db file) and writes logs to disk (nightcore/logs)
Core Features
• Fast and efficient data logging for various categories (blocks, containers, interactions, chat, commands, etc.).
• Rollbacks and restores (player/chunk) via commands.
• Multi-threaded
• Logs in files by category → player → date: nightcore/logs/<category>/<player>/<dd-MM-yyyy>.log. Configurable via nightcore-server.toml (enable/disable logs, command filter, and thread count).
• Inspector with pagination and clickable buttons for navigation.
• Undo to revert the last rollback.
What does it log?
• The implemented log categories (FileLogger.java file) include — each log goes to nightcore/logs/<category>/<player>/<date>.log:
• block_break — block breaking by player
• block_place — block placement
• interactions — interactions with blocks/entities (right-click)
• containers — container opening with summarized content
• chat — chat messages
• commands — commands executed by players (filterable)
• sessions — player login/logout
• item_pickups — picking up items from the ground
• item_drops — dropped items (Event: EntityJoinLevel detects ItemEntity)
• item_transactions — (method exists in FileLogger; see note below)
• dimensions — dimension change
• game_mode — gamemode change • entity_death — entity death • entity_kills — entity killed by player
• console_commands — commands executed on the console
• server_events — server start/stop
• Observation: some logs are recorded with the player as "SERVER" or "CONSOLE" when applicable (e.g., entity_death records in entity_death/SERVER/<date>.log).
Commands
• /nc status — Shows mod status: queues, threads, latest backups, processing time, memory usage.
• /nc inspect — Toggles inspector mode: toggleInspect.
* Subcommands (while in /nc inspect mode):
* /nc inspect block <x> <y> <z> [page] — Inspects the block's history (actions + interactions).
* /nc inspect player <target> [page] — Player's action history.
• /nc player <player> — Displays the player's last backups.
• /nc chunk — Shows information about the current chunk (last backup, last players to enter, etc.).
• /nc backup all | player | chunks — Forces a backup.
• /nc rollback chunk <radius> <backup_number> — Restores the chunks in an area around the player to the state of the indicated backup number.
• /nc rollback player <player> <backup_number> — Restores the player's inventory (player must be online).
• /nc reload — Reloads the nightcore-server.toml configuration.
Future updates
• MySQL support
• Curios inventory support
Mod inspired by coreprotect!
Need help? Access Discord.
Use Discord to report bugs and problems.
If the mod is well received, I'll update it to the newer versions, in addition to fabric and forge.
The source code will be provided if the mod is well-received, thank you.



