Скачать Cobblemon Size Variations — Minecraft Моды — ModStock
Cobblemon Size Variations

Cobblemon Size Variations

Активный

Установок

0

Последнее обновление

5 дней назад

Версии

1.21.1
Сервер
Fabric
Neoforge
Игровые механики
Мобы
Генераторы мира
Аддоны

A Cobblemon addon that allows for Cobblemon to spawn in naturally in different sizes. The limit to how big or small the size change is can be configured in the mod config.

View the latest change log here

Configuration fields

sizeModificationChance  

This controls how often a cobblemon will change size when spawning

preventShoulderMountSize  

This field prevents a cobblemon from mounting on a shoulder when the scale of the cobblemon is larger than the specified value. This defaults to 1.5x scale. This is available to prevent very large cobblemon from being on shoulders because it is quite strange looking.

sizeAlgorithm

The size algorithm to use when sizing a Cobblemon. All available algorithms are available in the sizes/ directory.

permissions

The permissions levels needed to run the commands in the mod. See more below

biasSizeTowardAverage

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. Defaults to false

Sizers

There are currently 2 different method of sizing available in the mod:

  • Basic
  • Gen9

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.

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

Size Category

Note: This feature requires the mod to be installed on the client

There is a size category shown in the Cobblemon Party and PC screens. This will show just above the UI render of the Cobblemon. There are different definitions for the basic and gen9 sizers. The "basic" sizer 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 appropriate size algorithm 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 the basic sizer and between 0 and 255 for the gen9 sizer.

For example (Basic sizer):

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

Datapack Support

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.

Commands

/pokesizer : allows for manually changing Cobblemon sizes 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:

Command definition:

/pokesizer <player|self> [pokemon|slot] [size]|check

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]|check

    • Resizes the specified pokemon or slot to the specified size for the specified player or yourself if "self" is used. The check parameter is used to return the actual scale modifier the pokemon has.

The self variant exists to allow for servers to let certain players change the size of only their own Cobblemon. The permission level for the both player and self are by default permission level 2.

The permissions for these commands are cobblemonsizevariation.commmand.pokesizer and for the self variant is cobblemonsizevariation.commmand.pokesizer.self

Участники проекта
Cudzer

Cudzer

Разработчик