Config - tristankechlo/RandomMobSizes GitHub Wiki
With the config you can configure which mobs can spawn in which sizes.
When a mob is not in the config it will spawn with no scaling.
After you changed the config you need to reload the config with the command /random_mob_sizes config reload or restart the game.
Location
The config can be found here ./minecraft/config/random_mob_sizes.json
You can edit the config with any text editor. One with syntax highlighting/checking for json is recommended.
You can check if the config has a valid json-syntax with this website.
Structure
The config is structured as a simple map. So only Key-Value pairs.
The key is always the id of the mob as a string. Format: namespace:entity_name
The value is the scaling factor. This can be either a number or an object.
Static Scaling
If the value is a number, all mobs with this id will spawn with this scaling factor applied.
Example for a number: "minecraft:cow": 0.75, this would cause all cows to spawn with a size of 75% of the default size.
Random Scaling
If the value is an object, the mob will spawn with a random scaling factor between the min and max scaling.
The object always needs to have these 3 keys:
min_scaling- The minimum scaling factor. This is a number between 0 and 10max_scaling- The maximum scaling factor. This is a number between 0 and 10type- The type of distribution. This is a string. The type can be eitheruniformorgaussian.uniformwill cause the scaling factor to be evenly distributed between the min and max scaling (random value between min and max)gaussianwill cause the scaling factor to be distributed according to a gaussian distribution. This causes that most mobs will spawn with a scaling factor close to the center of the min and max scaling. So the extreme large and small mobs will spawn less often.
Example for an object:
"minecraft:cow": {
"type": "uniform",
"min_scaling": 0.5,
"max_scaling": 1.5
}
This would cause all cows to spawn with a random size between 50% and 150% of the default size.
Default Config
the default config look like this
{
"minecraft:cow": {
"type": "uniform",
"min_scaling": 0.5,
"max_scaling": 1.5
},
"minecraft:pig": {
"type": "gaussian",
"min_scaling": 0.5,
"max_scaling": 1.5
},
"minecraft:chicken": {
"type": "gaussian",
"min_scaling": 0.5,
"max_scaling": 1.5
},
"minecraft:frog": {
"type": "gaussian",
"min_scaling": 0.5,
"max_scaling": 1.5
},
"minecraft:bat": 0.75,
"minecraft:sheep": {
"type": "gaussian",
"min_scaling": 0.5,
"max_scaling": 1.5
}
}