I have created a new mod for 1.12.2 and 1.16.5, mainly for personal use, but also posted to CurseForge. Time Shall Not Pass! is a server-side mod that essentially keeps the daylight cycle from progressing when no players are online. Something of which is possible to do with command blocks, I know, however with this mod the state of the gamerule only changes when players connect/disconnect. Thus is quite a bit more efficient than the command block counter-part, as well as not cluttering the server console/chat log and causing you to have to turn off command output.
I have recently started a personal server for some friends using a new modpack which includes Lycanites mobs and Serene Seasons, both of which are affected by the daylight cycle. So I wanted to make sure the daylight cycle is not on when no one is online, and wasn't happy about having command blocks under spawn to do this job. My mod also allows for certain players to be excluded based on UUID in the config, meaning that they will not cause the daylight cycle to toggle when logging in or out of a server. Thought it might be nice to allow certain accounts, like spectator accounts and such, to be capable of logging on without affecting things.
It may not be useful for most people, but I'm hoping there is some people out there that might find use for it. I used to run a vanilla SMP, this was before I really knew much about command blocks, and would always be upset that the day counter was in the thousands even though the server had plenty of time where no one was online (jobs, school, etc.). Maybe it's just me.
- Added ability to disable random ticks when no non-excluded players are online
- Added ability to disable tile entity ticks when no non-excluded players are online
- Control whether Time Shall Not Pass! disables daylight cycle, random ticks, and tile entity ticks through configuration and commands
- Add or remove players from the exclusions list with commands with ability to reload Time Shall Not Pass! instantly or defer the status of exclusion for the player until their next log-in
New 1.12.2 version released with backported features from the 1.16.5-1.1.0 version.
Changelog
- Added ability to disable random ticks when no non-excluded players are online
- Added ability to disable tile entity ticks when no non-excluded players are online
- Control whether Time Shall Not Pass! disables daylight cycle, random ticks, and tile entity ticks through configuration and commands
- Add or remove players from the exclusions list with commands with ability to reload Time Shall Not Pass! instantly or defer the status of exclusion for the player until their next log-in
- Lots of changes to the core of the mod, should make things work a lot smoother with much more potential in the future to expand
- Configuration updates - be sure to backup your configuration
- Excluded players list now includes the player name as well as the UUID, check the configuration file for an example of how to format. Or just use the in-game commands. If no name is given, write just the UUID as before. The mod will automatically update the name when that player comes online.
- Two new modules: Weather Cycle Module, Fire Ticks Module. Disable the weather cycle and fire ticks when no non-excluded players are online.
- Since there is a new game rule for the weather cycle, I hope this will be compatible with any mods that add/change weather
- New configuration option to do more verbose logging which gives you a break-down of what is happening in each of the modules. This could be useful to determine if anything isn't working correctly in the mod.
If you have any suggestions for a module that can be added, feel free.
I have created a new mod for 1.12.2 and 1.16.5, mainly for personal use, but also posted to CurseForge. Time Shall Not Pass! is a server-side mod that essentially keeps the daylight cycle from progressing when no players are online. Something of which is possible to do with command blocks, I know, however with this mod the state of the gamerule only changes when players connect/disconnect. Thus is quite a bit more efficient than the command block counter-part, as well as not cluttering the server console/chat log and causing you to have to turn off command output.
I have recently started a personal server for some friends using a new modpack which includes Lycanites mobs and Serene Seasons, both of which are affected by the daylight cycle. So I wanted to make sure the daylight cycle is not on when no one is online, and wasn't happy about having command blocks under spawn to do this job. My mod also allows for certain players to be excluded based on UUID in the config, meaning that they will not cause the daylight cycle to toggle when logging in or out of a server. Thought it might be nice to allow certain accounts, like spectator accounts and such, to be capable of logging on without affecting things.
It may not be useful for most people, but I'm hoping there is some people out there that might find use for it. I used to run a vanilla SMP, this was before I really knew much about command blocks, and would always be upset that the day counter was in the thousands even though the server had plenty of time where no one was online (jobs, school, etc.). Maybe it's just me.
You can check out the CurseForge page here: https://www.curseforge.com/minecraft/mc-mods/time-shall-not-pass
The mod has been updated to 1.16.5! I will support both versions.
New 1.16.5 version has been released.
Changelog
- Added ability to disable random ticks when no non-excluded players are online
- Added ability to disable tile entity ticks when no non-excluded players are online
- Control whether Time Shall Not Pass! disables daylight cycle, random ticks, and tile entity ticks through configuration and commands
- Add or remove players from the exclusions list with commands with ability to reload Time Shall Not Pass! instantly or defer the status of exclusion for the player until their next log-in
New 1.12.2 version released with backported features from the 1.16.5-1.1.0 version.
Changelog
- Added ability to disable random ticks when no non-excluded players are online
- Added ability to disable tile entity ticks when no non-excluded players are online
- Control whether Time Shall Not Pass! disables daylight cycle, random ticks, and tile entity ticks through configuration and commands
- Add or remove players from the exclusions list with commands with ability to reload Time Shall Not Pass! instantly or defer the status of exclusion for the player until their next log-in
New 1.16.5 version released
Changelog
- Lots of changes to the core of the mod, should make things work a lot smoother with much more potential in the future to expand
- Configuration updates - be sure to backup your configuration
- Excluded players list now includes the player name as well as the UUID, check the configuration file for an example of how to format. Or just use the in-game commands. If no name is given, write just the UUID as before. The mod will automatically update the name when that player comes online.
- Two new modules: Weather Cycle Module, Fire Ticks Module. Disable the weather cycle and fire ticks when no non-excluded players are online.
- Since there is a new game rule for the weather cycle, I hope this will be compatible with any mods that add/change weather
- New configuration option to do more verbose logging which gives you a break-down of what is happening in each of the modules. This could be useful to determine if anything isn't working correctly in the mod.
If you have any suggestions for a module that can be added, feel free.