The world generator configuration is specified by
.json files in the
cofh/world directory inside Minecraft Forge’s
config directory. The
directory is read recursively, so the files may be grouped in subfolders.
cofh/world directory contains one or more files by default:
00_minecraft.json, and the default files added by Thermal
Foundation if it is installed. Other mods may
also add files for their default world generation.
The files in the directory are read in alphabetical order. This can be used to make certain features generate before others.
00_minecraft.json is a special file that is not read by default. It contains
configuration for generating most of the features that Minecraft generates in
worlds by default, such as ores. Setting
in CoFH World’s mod configuration file disables much of Minecraft’s own feature
generation and makes it so that
00_minecraft.json is read instead. This allows
users to adjust or disable the generation of these features.
Each world generation file consists of a single object with the following values.
||Object||-||An object whose values each describe a feature to generate in the world (or: to ‘populate’ the world with). The page Feature format describes how to specify a feature.|
||Forge mod entry / array of Forge mod entries||(None)||The mod or mods that must be loaded in order for the file to be read. If any of the specified mods are not loaded, the entire file is skipped.|
Whether the file should be read at all. If set to
||The loading priority of the file. Files with a higher priority are read first.|
When specified, this string is prepended to the names of the
features described in
A Forge mod entry describes a mod, optionally with a specific version or range of versions. It is an object with the following values.
||String||-||The internal mod ID that the mod registers itself with.|
||String||(Any version)||The version of the mod. May be a specific version, or a Maven-compatible version range.|
A Forge mod entry may also be specified as a string. In that case, it is read as
/cofhworld reloadallows for reloading the configuration without restarting the game.