Intervals and Availability - jumpcutfindo/happy-holidays GitHub Wiki
DISCLAIMER: This section is for more advanced users!
Availabilty and Intervals are a set of new features in Happy Holidays that aims to provide more customisability over the content of the mod. Don’t like having Grinches spawning around your presents? Want to make Christmas only last during December? Then this new feature is just for you!
- Availability and Intervals work together to determine what content of the mod should be disabled, and can be controlled through the use of commands!
- If you’re not sure of how they work, you can try playing around with the commands; the settings can easily be reset to default!
- If you’re not sure of how this works, it’s fine! This won’t affect your gameplay of the mod in any way from previous times; it’s mainly for those who want to tweak some features of the mod to improve their own gameplay experience.
Intervals
Intervals determine the “active” period of the holiday: this means that between the two dates provided, the content of that holiday will be active and working. However, once this interval has been passed, some content of the mod will be disabled.
- The default interval set for all holidays is
all_year, meaning that all holidays will be active throughout the entire year - Players (with admin privileges / access to cheats) are able to tweak this by either using some presets, or defining their own intervals
- Example: using a preset:
/happyholidays christmas interval preset [all_year | seasonal] - Example: setting a specific interval:
/happyholidays christmas interval set MM-DD MM-DD
- Example: using a preset:
- Presets:
all_yearliterally means all year round, from 1st Jan to 31st Decseasonalis an interval which I have personally determined to fit the holiday itself; for example, theseasonalsetting for Christmas is from 1st Dec to 31st Dec
- Intervals are world-specific — they only affect the world that the changes have been made on
Availability1o
To further enhance customisability, we have Availability, which determines what content will be enabled or disabled! Availability determines whether a specific part of that holiday will be working, and this depends on the setting that has been applied to it.
- The default availability set for all content is
INTERVAL_ONLY, meaning that the content will only be active during the specified interval for that holiday. - Once again, players with admin privileges can change the availability:
- Example: disabling the spawning of the Grinch entirely:
/happyholidays christmas availability set canGrinchSpawn NEVER - Example: enabling the Christmas buffs to be always on (regardless of whether you’re in the interval specified for Christmas):
/happyholidays christmas availability set canStarGiveBuff ALWAYS
- Example: disabling the spawning of the Grinch entirely:
- Availability is also world-specific