Configuration
A & A Cooking uses a server/common configuration file for time, calendar, and climate behavior plus separate client settings for Recipe Book sound and Cutting Board preparation mode.
Main configuration file
Section titled “Main configuration file”The main file is:
config/aandacooking.json
When the file does not exist, A & A Cooking creates it with the defaults below.
{ "time": { "dayLength": "20m", "seasonalDaylight": true }, "calendar": { "preset": "GAMEPLAY", "startingYear": 1, "startingMonth": "MARCH", "startingDay": 1, "customDaysPerMonth": 10 }, "climate": { "temperatureUnit": "F", "latitude": 35.0 }}Time settings
Section titled “Time settings”time.dayLength
Section titled “time.dayLength”Default: 20m
Controls the real time length of one full 24,000 unit Minecraft solar day.
Accepted duration units are:
sfor secondsmfor minuteshfor hoursdfor dayswfor weeks
Decimals and combined values are accepted. Examples include 30m, 1.5h, and 1h30m.
The duration must be greater than zero.
time.seasonalDaylight
Section titled “time.seasonalDaylight”Default: true
When enabled, sunrise and sunset shift with the calendar season and configured latitude.
Calendar settings
Section titled “Calendar settings”calendar.preset
Section titled “calendar.preset”Default: GAMEPLAY
Accepted values:
GAMEPLAYREALISTICCUSTOM
GAMEPLAY uses 10 days per month, for a 120 day year.
REALISTIC uses real month lengths and Gregorian leap year rules.
CUSTOM uses the value from customDaysPerMonth for every month.
calendar.startingYear
Section titled “calendar.startingYear”Default: 1
Must be at least 1.
calendar.startingMonth
Section titled “calendar.startingMonth”Default: MARCH
Accepted values are the twelve English month names written as their enum names, such as JANUARY, MARCH, or DECEMBER.
calendar.startingDay
Section titled “calendar.startingDay”Default: 1
The value must be valid for the selected starting month, year, and calendar preset.
calendar.customDaysPerMonth
Section titled “calendar.customDaysPerMonth”Default: 10
Used by the CUSTOM preset. Accepted range: 1-365.
Climate settings
Section titled “Climate settings”climate.temperatureUnit
Section titled “climate.temperatureUnit”Default: F
Accepted values:
ForFAHRENHEITCorCELSIUS
The normalized configuration value is written as F or C.
climate.latitude
Section titled “climate.latitude”Default: 35.0
Accepted range: -90.0 to 90.0 degrees.
Latitude affects seasonal daylight and the climate temperature model.
Invalid configuration
Section titled “Invalid configuration”If the configuration cannot be parsed or fails validation, A & A Cooking logs the error and falls back to default configuration values for that launch.
Older or incomplete files are normalized when possible. Missing time, calendar, or climate sections and several missing values are restored automatically and written back to disk.
Applying changes
Section titled “Applying changes”The main configuration is loaded during mod initialization. The current v0.4.0-alpha.1 build does not expose a command that reloads aandacooking.json while the game is running, so restart the game or server after editing it.
Client configuration
Section titled “Client configuration”The Recipe Book client setting is stored separately at:
config/aandacooking-client.json
Default:
{ "recipeBookSounds": true}The speaker button on the Recipe Book toggles this setting and writes it immediately.
Verification commands
Section titled “Verification commands”| Command | Useful for checking |
|---|---|
/aacooking calendar |
Active calendar preset and current date |
/aacooking time |
Day length, solar rate, and seasonal daylight |
/aacooking daylight |
Latitude, declination, sunrise, sunset, and daylight duration |
/aacooking temperature |
Temperature unit and climate calculation |
/aacooking weather |
Local atmospheric state |
Related pages
Section titled “Related pages”Preparation interaction setting
Section titled “Preparation interaction setting”The client creates config/aandacooking-preparation-client.json to save the selected Cutting Board interaction mode. Its preparationInteraction field accepts SIMPLE or INTERACTIVE, with INTERACTIVE as the default. Press J in game to toggle the mode. See Cutting Board for the gameplay behavior.