Staxel
Sundial: Custom Day Length
Showing 1-1 of 1 entries
Update: 22 Jun, 2022 @ 5:37pm

What is Sundial?
Sundial is a universal mod that allows players to customize their world's day length.
Ever tried to chill and felt like the days were too short? Maybe you're a speed demon who feels they're too long? Whatever the case, Sundial has you covered. You can change day length at any time, to fit whatever mood you're in.

What does the mod add to Staxel?
Sundial adds two chat commands for players to use:

  • SetDayLength is an admin-only command that sets in-game day length to however many minutes you specify
  • CheckDayLength is a public command anyone can use to see how long days are

What is planned for the future?
As of right now, there aren't any plans. Perhaps the ability to increase day length and shorten night length, or vice-versa? Who knows? If you have an idea, do suggest it!

What does it mean to be a universal mod?
Unfortunately, due to how Staxel is set up, Sundial can't be a server-side only mod. This means that it's required on both, the client and server. If playing with friends, everyone who joins the server will be required to have the mod installed. Sundial will automatically synchronize clients who join with the server's current day length.



Sundial is a Moonbow-dependent mod. It will not function without the library installed.

This mod makes use of Moonbow's ModHelper utility class to be able to verify client-side installation of Sundial. Moonbow must be installed in order for it to make use of these utilities.

You can download Moonbow from its Steam Workshop listing.



Sundial is a code-based mod. You will receive a DLL warning when installing it.

After receiving such a warning, you might be wondering what a code-based mod[wiki.playstaxel.com] is.
In Staxel, there's two different kinds of mods: content and code-based. Content mods are ones that are created using Staxel's existing mod categories, such as clothing, tiles, crops, species, and even NPCs, among others. The game provides a user-friendly way to extend existing functionality to create your own content, often without touching even a single line of code.
Now, there comes a time when even the game's existing categories just don't meet your needs. This is where code-based mods come into play. Staxel provides a modding API, allowing users wanting to create new features to attach code to existing interfaces. With this, they can have the game perform different actions based on world information and events. This greatly expands what is capable with modding.
Why, then, is there a warning? The answer is simple: not all code can be trusted. Code-based mods are not limited to the game itself, as content mods are. They are capable of causing damage to your system if created with malicious intent. Be careful with what code you allow to run on your computer.
For safety and security purposes, Staxel only shares content-based mods when joining a modded server. Code-based mods are kept to the host's computer, and must be manually installed by the user. Server-side mods are able to provide new features to all players on the server, regardless if they have the mod installed or not.

So, where does that leave us? Is Sundial safe to use? Absolutely! It's open-source so you can take a look around its source code, as well as provide contributions, if you so wish. Check it out![github.com]
With all that said and done, be wary of which mods you install. Stay safe, stay positive, and keep on being awesome!