Version 1.2.0
The goal of this update is to provide more customizability to players and a few more QoL things that were requested in the last few months.
- Added datapack support for custom pokemon sizes
- Added config option
biasSizeTowardAverage
- Added check size option to
pokesizer
command - Allow
pokesizer
command to be run by server
Datapack Support
Added support for defining pokemon or groups of pokemon with custom sizes. These sizes will be applied for the pokemon regardless of the sizer being used.
The files should be put under the following structure in your datapack:
data/cobblemonsizevariation/custom_sizes/
The custom size file is structured as follows:
example.json
{
"species": [
"bulbasaur",
"weedle"
],
"minSize": 0.1,
"maxSize": 10.0
}
- The species list can be as little as one pokemon or as many as you like.
- The min and max size can be lower and higher than the values defined in the other sizers. For example, the max size above is 10.0 instead of 2.0
- Currently the custom sizes won't work with the pokesizer command. A fix for this will come in the future.
BiasSizeTowardAverage config option
- Defaults to false
- If the config is set to false nothing will change
- If true, the sizes that are generated for each pokemon will always be closer to the average of the min and max values. This makes regular sized pokemon more common and tiny and huge pokemon more rare.
Check size with pokesizer command
Added a new parameter to the pokesizer
command that returns the actual size of the pokemon being queried.
eg: /pokesizer <player>|self Bulbasaur check
This will send a message in chat with the size of the pokemon you selected:
The size of your Bulbasaur is 1.00
Allow server to run pokesizer command
A small change that allows the server to run the pokesizer command.
This will not work with the self
parameter. You can only use it from the server when targeting another player on the server.
Release 1.1.0
- Added support for multiple sizing algorithms
- Added new sizing algorithm "gen9"
- Updated pokesizer command
Sizing Algorithms
Added support for multiple sizing algorithms to allow for future development of new algorithms.
- Renamed the old sizing to "basic" sizing algorithm
- Added a new sizing algorithm "gen9"
- Added a new configuration field
sizingAlgorithm
. At the moment, this accepts either "basic" or "gen9" as valid values - The default sizer used is "basic"
Basic sizing
This sizer will simply take a random value between the minimum and maximum size modifiers and sets that value to the scale of the Cobblemon.
This definition is found in sizes/basic.json
Gen9 sizing
This sizer attempts to replicate the sizing that's used in the 9th generation of Pokemon games.
The sizer will randomly choose a value between 0 and 255 and run it through the following formula to get the size for the Cobblemon:
minSizeModifier + (randomValue/255) * (maxSizeModifier - minSizeModifier) = chosenSizeValue
Thanks to WxAaRoNxW for this suggestion!
The definition is found in sizes/gen9.json
Both definitions have default values that can be modified.
Note: In the gen9 definition, the values defined must remain between 0 and 255.
New command functionality
Updated the pokesizer
command with additional functionality.
Command definition:
/pokesizer <player|self> [pokemon|slot] [size]
Command permutations
-
/pokesizer <player|self>
- Randomly resizes the entire team for the specified player or yourself if "self" is used
-
/pokesizer <player|self> [pokemon|slot]
- Resizes the specified pokemon or slot to a random size for the specified player or yourself if "self" is used
-
/pokesizer <player|self> [pokemon|slot] [size]
- Resizes the specified pokemon or slot to the specified size for the specified player or yourself if "self" is used
There are no permission changes in this version. You will still need the correct permissions to use these commands.
Extra notes
- The initial size definitions in the main configuration will not be automatically removed. This is so that if any changes were made to the file, they can be copied over to the new files. The old size definitions can be safely deleted at any time.
Release 1.0.1 Change log
-
Updated Cobblemon dependency to 1.6.1
- Added more ways for a Cobblemon to have its size changed
- Added size category to party screen and PC screen
- Added command to change a Cobblemon's size manually
Important Notes
-
The configuration file was changed to use the json format in this update and the previous configuration is now redundant. If you did not change anything in the configuration so far, you can ignore this. If you have, you will have to copy over any values from the old configuration. When that is done, you are free to then delete the old config file.
-
With the size category visuals on the party and PC screens, the mod must be installed on the client side too. The mod will still work only sever-side but none of the visuals will show for the player.
Cobblemon Size Changing
-
Starter Cobblemon will now have their size changed when chosen by a player.
-
When a fossil is revived, its size will be changed.
Size Category
Added a size category to the Cobblemon Party and PC screens. This will show just above the UI render of the Cobblemon. The default size categories that are defined are as follows:
Name | Size Range | Color |
---|---|---|
Tiny | 0.2 - 0.5 | #1b88cc |
Small | 0.51 - 0.9 | #1bcc9a |
Average | 0.91 - 1.2 | #ffffff |
Big | 1.21 - 1.6 | #e6ff2b |
Large | 1.61 - 1.9 | #f07426 |
Huge | 1.91 - 2.0 | #f21800 |
Name: The text that will be shown in the UI
Size Range: The size range that defines what text should be shown in the UI
Color: The color of the text in hexidecimal format
These are all entirely configurable via the mod config file and you can have as many or as few defined as you would like. The only condition is that the size range that you define for each category must fall inside the defined min and max size modifiers.
For example:
If minSizeMultiplier = 0.5
and maxSizeMultiplier = 1.2
then the smallest size category should have a low range of 0.5 and the biggest size category should have a high rage of 1.2.
Name | Size Range | Color |
---|---|---|
Small | 0.5 - 1 | #1b88cc |
Big | 1.01 - 1.2 | #1bcc9a |
Commands
Added a new command /pokesizer
to allow for manually changing the size of any Cobblemon in a party. The permission level values exist in the config. By default only admins can run the command. The arguments are defined as follows:
/pokesizer <Player> <PokemonPartyMemeber> <Size>
- Default permission level: 2
OR
/pokesizer self <PokemonPartyMemeber> <Size>
- Default permission level: 2
The self variant exists to allow for servers to let certain players change the size of only their own Cobblemon.
The permissions for these commands are cobblemonsizevariation.commmand.pokesizer
and for the self variant is cobblemonsizevariation.commmand.pokesizer.self
Release 1.0.1 Change log
- Updated Cobblemon dependency to 1.6.1
- Added more ways for a Cobblemon to have its size changed
- Added size category to party screen and PC screen
- Added command to change a Cobblemon's size manually
Important Notes
-
The configuration file was changed to use the json format in this update and the previous configuration is now redundant. If you did not change anything in the configuration so far, you can ignore this. If you have, you will have to copy over any values from the old configuration. When that is done, you are free to then delete the old config file.
-
With the size category visuals on the party and PC screens, the mod must be installed on the client side too. The mod will still work only sever-side but none of the visuals will show for the player.
Cobblemon Size Changing
-
Starter Cobblemon will now have their size changed when chosen by a player.
-
When a fossil is revived, its size will be changed.
Size Category
Added a size category to the Cobblemon Party and PC screens. This will show just above the UI render of the Cobblemon. The default size categories that are defined are as follows:
Name | Size Range | Color |
---|---|---|
Tiny | 0.2 - 0.5 | #1b88cc |
Small | 0.51 - 0.9 | #1bcc9a |
Average | 0.91 - 1.2 | #ffffff |
Big | 1.21 - 1.6 | #e6ff2b |
Large | 1.61 - 1.9 | #f07426 |
Huge | 1.91 - 2.0 | #f21800 |
Name: The text that will be shown in the UI
Size Range: The size range that defines what text should be shown in the UI
Color: The color of the text in hexidecimal format
These are all entirely configurable via the mod config file and you can have as many or as few defined as you would like. The only condition is that the size range that you define for each category must fall inside the defined min and max size modifiers.
For example:
If minSizeMultiplier = 0.5
and maxSizeMultiplier = 1.2
then the smallest size category should have a low range of 0.5 and the biggest size category should have a high rage of 1.2.
Name | Size Range | Color |
---|---|---|
Small | 0.5 - 1 | #1b88cc |
Big | 1.01 - 1.2 | #1bcc9a |
Commands
Added a new command /pokesizer
to allow for manually changing the size of any Cobblemon in a party. The permission level values exist in the config. By default only admins can run the command. The arguments are defined as follows:
/pokesizer <Player> <PokemonPartyMemeber> <Size>
- Default permission level: 2
OR
/pokesizer self <PokemonPartyMemeber> <Size>
- Default permission level: 2
The self variant exists to allow for servers to let certain players change the size of only their own Cobblemon.
The permissions for these commands are cobblemonsizevariation.commmand.pokesizer
and for the self variant is cobblemonsizevariation.commmand.pokesizer.self