Skip to content

Ecologics Configuration (Forge)

SameButDifferent edited this page Jun 24, 2022 · 1 revision

Nearly all features in Ecologics are configurable. Some features can be configured in a normal config file, but others must be configured in a datapack. Both of these options and when to use them are explained in the sections below. Since Vanilla Minecraft and Forge are using datapacks for more and more things, Ecologics must do the same thing. As always, if you need help with this, feel free to join our Discord server and ask a question: https://discord.gg/KZwDvzthmK

Config File

  • Some gameplay features can be configured in the ecologics-common.toml file found in your /configs directory, which is located in your Minecraft installation folder.
  • To edit this file you can just use a normal text editor.
  • Each option in the config file is commented with a description explaining what it does.

Datapack

  • To configure world generation features and most aspects of the mod, you will need to use a datapack. This may sound scary at first, but it is actually very simple.
  • If you aren't familiar, datapacks are a powerful Vanilla tool that allows players to change many aspects of the game through simple text (.json) files.
  • Making simple datapack is very easy. In short, you just need to create a folder and fill it up with text files in the right location.
  • Ecologics, like all mods, comes with its own datapack. To access this datapack, simply change the mod .jar file to a .zip file and open it. Navigate to the folder called data, from which you can create your own datapack.
  • For most people, the only important folder inside the data folder is the one titled ecologics. It contains most of the things you would want to edit.
  • However, note that the only files you should keep in your final datapack are the ones that you chose to edit. Any files that you did not edit should be deleted from the folder!

Next, I will explain the most popular data entries that you might want to use to make a datapack for the mod.

Biome Modifiers

  • In 1.19, Forge introduced the biome modifier system for adding and removing features to biomes. This includes mobs, trees, plants, etc. This system is highly customizable. These files are located in the /forge/biome_modifier folder. The name of each file explains what it does.
  • To completely disable a certain world generation feature, first open the .json file for that feature and delete everything in there. Then you must paste this:
{
  "type": "forge:none"
}
  • To increase the spawn rate of a certain mob, open the file for that mob and increase the number next to the "weight" entry.
  • It's really that simple! If you would like to learn more, a full explanation of Biome Modifiers can be found on this wiki page.

Placed Features

  • If you would like to control how often a certain feature spawns, you can do that with the files located in the /worldgen/placed_feature folder. To keep it simple, there are 2 types of "frequencies" in these files that work in opposite ways.
  • In the files that have "chance", changing it to a higher number means the feature will be less frequent.
  • In the files that have "count", a higher number means the feature will be more frequent.
  • If you would like more information about these files, this article on the official Minecraft wiki does a pretty good job of explaining it.

Tags

  • The mod contains many tags that control a lot of its features. They are located inside the /tags folder. You can use these mainly to control mob behavior, like which items are used to breed animals, or which fish the penguin will hunt.

Using the Datapack

  • Now that you are done making your changes and are ready to play, it is time to add the datapack to your world.
  • When you create a world, just click the Data Packs button and drag your data folder into there. If you want to do this in an already existing world, you can just click the edit button and add the datapack the same way.
  • Remember: the only files that should be in your data folder are the ones that you chose to edit. Any files that you did not edit should be deleted from the folder!
Clone this wiki locally