Modifying Frog Biomes - andrew0030/SwampierSwamps GitHub Wiki
This guide explains how to modify the biomes in which frogs can be obtained by editing the modโs biome tags via a data pack.
To modify frog biomes, you need to create a data pack that modifies the modโs default biome tags. Below is a simple guide to setting one up.
Your data pack should follow this structure:
Valid Structure โ๏ธ | Invalid Structure โ |
---|---|
๐ฆ example.zip โโ ๐ data โโ ๐ pack.mcmeta |
๐ฆ example.zip โโ ๐ example โโ ๐ data โโ ๐ pack.mcmeta |
โ Important: When zipping the pack, ensure the
data
folder andpack.mcmeta
file are at the root level. If they are inside another folder, Minecraft won't recognize them.
Inside your data pack, create a file called pack.mcmeta
with the following contents:
{
"pack": {
"pack_format": 15,
"description": "Custom Frog Biomes"
}
}
-
"pack_format"
โ A number used to describe what game versions a data pack is compatible with. -
"description"
โ A simple description for your data pack.
๐ Note: The
pack_format
number depends on your Minecraft version. Check the official Minecraft Wiki for the correct value.
Each frog variant has its own biome tag file. These are located in:
data/swampier_swamps/tags/worldgen/biome/frog_variants/
๐ Note: One can either open the mod's
.jar
to find the files, or look at them on githubโคด๏ธ
For example, the White Frog biomes are defined in:
data/swampier_swamps/tags/worldgen/biome/frog_variants/white_frog_biomes.json
To modify this, create a file at the same path inside your data pack with this format:
{
"replace": false,
"values": []
}
Now in order to add more biomes to the list you simply add them inside values
:
{
"replace": false,
"values": [
"minecraft:jungle",
"examplemod:special_biome",
"#examplemod:biomes_tag"
]
}
-
"replace": false
โ Keeps existing biomes while adding new ones. -
"values"
โ List of biomes or tags to include. -
"minecraft:jungle"
โ Adds the"Jungle"
vanilla biome. -
"examplemod:special_biome"
โ Adds the"Special Biome"
modded biome, added by"examplemod"
. -
"#examplemod:example_tag"
โ Adds all biomes inside theexamplemod:example_tag
tag.
๐ก Tip: You can also remove biomes by setting
"replace": true
, which replaces the default list with your own.
โ Important: In the example above we added the
"Jungle"
biome to the White Frog without using"replace": true
, this may cause issues if you don't modify subsequent frog tag files. So if your goal is to modify the existing biomes, please read Frog Variant System, to understand the limitations of the system.
-
Vanilla Minecraft biomes use
minecraft:biome_id
. -
Modded biomes use
modid:biome_id
(e.g.,examplemod:special_biome
). -
Biome tags use
#modid:tag_id
to include multiple biomes at once.
โ Important: For tags you have to add the
#
.
Once you've created your datapack:
- Place the zip file inside
saves/<your-world>/datapacks/
for a specific world. - Run
/reload
in-game or restart your world to apply the changes. - Or, select the zip file when creating a new world.
Data packs can do much more than modify biomes! Learn more at: