Hello and thank you for using Craig's Seasons!


This plugin is my first Java Project and was made out of frustration due to another plugin not updating.


========

Commands

========


/craigsseasons (/cs)

/craigsseasons reload 

This reloads the plugin, most things can be reloaded automatically, but any group changes require two server restarts.

/craigsseasons setseason <season> <day number>

You can use the command to immediately switch seasons. You can just define the season name (Spring, Summer, Autumn, Winter), or the season name and which day of the season.
So if your seasons are seven days long, you could input "/craigsseasons setseason winter 6" to get to day 6 of winter.

/craigsseasons season

Tells you the current season, as well as which day of the season you are on.

/craigsseasons uninstall

You MUST run this command if you want to uninstall the plugin.

More details are in UNINSTALL.txt


============

Placeholders

============


The plugin has a few built in PlaceholderAPI placeholders, they are as follows:


%craigsseasons_season% - Tells you the current season

%craigsseasons_season_day% - Tells you the current day of the season

%craigsseasons_season_total_days% - Tells you the amount of days in a season

%craigsseasons_season_progress% - Percent of the season elapsed (e.g. 43)

%craigsseasons_day_of_year% - The current day of the year (a year is all four seasons)

%craigsseasons_year% - The current year number


============

Instructions

============


When you first install the plugin, the server must be fully restarted twice. The first time generates the datapack, the second time applies your biomes to their vanilla counterparts!

Additionally, you must restart the server twice each time you make a change to colormapping or settings of a group


==========
- GROUPS -
==========


NOTE: There is a folder labelled "default" in "plugins/CraigsSeasons/groups". You may change the color mappings within this section, as well as what biomes belong to this group. However, this folder must always exist, if you attempt to delete it, it will regenerate on load. The reason this group exists is to map undefined variables, so if you don't define a "sky.png" in a custom group, it will assume the default, this is so all groups always have something to fall back on.

Firstly, all biomes are assigned a "group" when the plugin loads. Biomes without a group are skipped and do not see seasonal events or changes.

For example, you will see a default folder in "plugins/CraigsSeasons/groups" labelled forest.

This is the forest group! All biomes belonging to the group are declared in biomes.yml inside of that folder.

Essentially, biomes.yml tells the plugin "Hey, a forest biome belongs to the forest group"

You can define multiple biomes under the same biomes.yml / group

So "minecraft:birch_forest" and "minecraft:forest" are both allowed to be added to the forest group, and they will experience the same seasonal changes.

If both of those are defined as forests, they will take on the same color maps for everything as well, it is valuable you keep that in mind as they may look different than the default color maps.


Luckily, if that bothers you, you could theoretically just separate them into a "birch_forest" and a "forest" group!


=================
- CUSTOM BIOMES -
=================


Some datapacks, mods, plugins, etc. have custom biomes! These are awesome and can make your world even more lively! The plugin fully supports custom biomes, you just need the namespacing!

You can check what a biome is called by going there in game. Next press F3 and F6 at the same time, this will allow you to edit what shows up in the debug menu, search for biome and enable it when F3 is pressed.

Next, press F3 by itself, look for the section labelled "biome:"

You should see something like "minecraft:forest", that is the namespacing! A custom one may look something like "terralith:moonlight_grove".

Specifically with Terralith, I use this Datapack on my own servers and in the future, I will have an addon for Terralith that can be loaded into your existing groups by default!


=================
- COLOR MAPPING -
=================


Okay! So color mapping, I have tried to make this an intuitive as I possibly could.

Every color map is defined with an image instead of with a config, this should make it far easier for you to customize them!

You will see multiple images in each group's folder, all labelled as different things. For example

- grass.png
- foliage.png
- dry_foliage.png

These examples don't include everything, they're just some basics, refer to the default group to know what values I allow you to change.

Each of these images is a 4x1 .png file. When the plugin loads, it will try to find these images in every group's folder.

The plugin is smart, it will read each pixel in the following order;

spring
summer
autumn
winter

So if your first pixel in grass.png in the forest group is the color "#ff0000" grass in forests during spring will be colored with "#ff0000".

After a server restart, color changes will be applied automatically! Feel free to change them to whatever your preference is!


===================================
- IMPORTING FROM ADVANCED SEASONS -
===================================


So, you are migrating from Advanced Seasons to my plugin?

Great! We have a built in support feature for this. Simply place your configs from Advanced Seasons into the "import" folder.

This will automatically create groups, settings, biomes list, and images based on exactly what you input into Advanced Seasons.

NOTE: Files contained within the "import" folder are automatically deleted after a successful import, it may be valuable to backup these files!



====================
- REAL-TIME SEASONS -
====================


Want the server to match the real world? Set season_source to "real_time" in config.yml.

The season then follows the real calendar: March-May is spring, June-August is summer,
September-November is autumn, and December-February is winter. If it's April 14th, the
server knows it's spring!

Set real_time_seasons.hemisphere to "south" to flip the seasons for the southern
hemisphere, and real_time_seasons.timezone to an IANA time zone (like "America/New_York")
if the server machine's clock is in a different time zone than your players.

In this mode, day counts are real days (e.g. day 45 of 92), season_length is ignored,
and /cs setseason is disabled - the calendar is in charge.


=================================
- SEASONAL SETTINGS AND CHANGES -
=================================


In the plugin's config.yml, you will see many settings you can enable or disable. The instructions as to how they function are already
written into the config. Thoroughly read everything before you change settings!




