Skip to content
DigitalPear edited this page Jan 6, 2025 · 6 revisions

Adding new sheep variants

Adding new sheep variants is similar to the vanilla wolf variants, however there is some extended functionality. We will go over all of it here.

Where the files go

First you will need to make a file that defines the variant. The file will go in "data/[MOD_ID]/sheep_variant/[VARIANT_NAME].json". Some of the parameters that should be included are:

Texture paths

Much like wolf variants, you define what the sheep variant looks like by including the texture paths.

  • Texture: Path to the texture of the sheep's body (example: "texture": "armored_wool:textures/entity/sheep/barn").
  • Wool Texture: Path to the wool texture of the sheep (example: "wool_texture": "armored_wool:textures/entity/sheep/barn_fur").
  • Inner Wool Texture: This mod adds the ability for sheep to have the bits of wool on their body be colored just like the main wool parts. However if you wish to remove the inner layer regardless of the config you can simply add "has_inner_wool": false to the file (example: "inner_wool_texture": "armored_wool:textures/entity/sheep/barn_inner_fur").

Not including one of the textures will result in the texture using the vanilla sheep texture.

Wool Colors

Each sheep variant has a weighted list of different colors that it can naturally spawn with. The format for this list is as seen here: "wool_colors": [ { "color": "black", "weight": 5 }, { "color": "gray", "weight": 5 }, { "color": "light_gray", "weight": 5 }, { "color": "brown", "weight": 3 }, { "color": "pink", "weight": 1 }, { "color": "white", "weight": 481 } ]

Above you can see the weighted list for the vanilla sheep colors (Not including the parameter will default to those colors, so you will not have to enter them if you want it to use the vanilla system). Entering the parameter but leaving it empty will cause the color of the sheep to always default to white.

Biomes

This is very simple, it is a list of the biomes that this variant of sheep will spawn in. This will not cause sheep to actually spawn in this biome if they did not before, but if they are somehow spawned in this biome for any reason, they will have a chance to be this variant. There are three ways to enter this parameter:

  • Tag: "biomes": "#minecraft:is_overworld" (Will include all biomes in this tag).
  • Biome ID: "biomes": "minecraft:snowy_taiga" (Will include specifically this biome).
  • Biome ID list: "biomes": [ "minecraft:snowy_taiga", "minecraft:basalt_deltas", "minecraft:end_highlands" ] (Will include all listed biomes). If this parameter is not included, the sheep will not have any valid biomes and such can only be seen if you use commands to create one.

Possible issues

If you cannot put the sheep armor on a type of modded sheep

I'm really sorry, but due to incompatibility with some mods, the types of sheep that can accept armor is controlled by a tag (Tag is called "armor_compatible_sheep").

If you know that a type of modded sheep can have armor without issue, please let me know so I can add it to the tag, otherwise this is a measure to avoid broken behavior with other mods where compatibility is currently considered impossible.