Added the /chatulator
command which allows the user to customize the calculator's output:
enableScientificNotation <enable>
: Enables or disables scientific notation output. <enable>
is a boolean value; true
will enable and false
will disable.
enableRounding <enable>
: Same as enableScientificNotation
, but for the rounding output.
configScientificNotation <bound> <magnitude>
: Sets either the upper or lower limit for activating the scientific notation output, as an order of magnitude. bound
is either upper
or lower
, and magnitude
is an integer representing the order of magnitude at which scientific notation will be enabled (e. g. setting the upper limit to 7 will trigger sci. not. for numbers >= 10000000). Default upper limit is 6 and lower limit is -4.
configRounding <digits>
: Sets the number of digits to round to for the output. Default is 4; recommended that this not be set any less than the positive value of the lower limit for scientific notation to avoid non-zero results being displayed as zero.
restoreDefaults
: Sets all settings to default values.
listSettings
: Prints the current active values of all settings. Note that for the boolean toggles, 1
is equivalent to true
and 0
is equivalent to false
.
Settings are stored after each change as per-player app data in the /scripts
folder of each world. This means that the settings persist across app reloads and server restarts, but are not shared between singleplayer worlds without manually copying the chatulator.data.nbt
file. Settings are read from the file on app load, unless no such file exists, in which case the default settings are loaded and stored in a newly-created data file.
Full Changelog: v1.1.1...v1.2.0