Adding Ores From Other Mods
The ores which are generated to look like the surrounding UB-stones can be configured through the JSON-files in the [minecraft_folder]/config/undergroundbiomes/ores-folder. Each JSON can have as many ores as it wants to, it is recommended to create a JSON-file for each mod, named after the mod without spaces and in lowercase. This will prevent crashes when updating to a new version which may add defaults for said mod. Beware that trying to register the same ore twice, will crash the game!
Genreal Information on JSON can be found on json.org or Wikipedia
An example of a simple json file with two ores:
[
{
"internalOreName": "minecraft:diamond_ore",
"meta": -1,
"overlay": "undergroundbiomes:blocks/overlays/minecraft/diamond",
"oreDirectories": ["oreTest", "someOre"],
"alphaOverlay": false,
"color": "#358b95"
},
{
"internalOreName": "minecraft:iron_ore",
"meta": -1,
"overlay": "undergroundbiomes:blocks/overlays/minecraft/iron",
"oreDirectories": ["oreIron"],
"alphaOverlay": false,
"lightValue": 0
}
]You can add as many of these {}-blocks as you want, beware that you need a , between them and none after the last block!
Each ore has the following attributes:
-
internalOreName: The name under wich the ore is registered with forge. -
metaoptional: The meta-value of the ore (needed if a mod registers multiple ores with the same registryname).-1means there is no need for meta-values and is generated with the deafult settinngs, but could as well be omitted. -
overlay: The texture to use for the ore. The part before the:is the name of the mod containing the texture, the part after the:is the path to the texture from the modstextures-folder. For Underground Biomes those textures can be found inblocks/overlays. -
oreDirectoriesoptional: A list of ore-directories to add the generated ores to. This depends on the context of mods you are using. The ore-directory-entries of the original ore should be copied to the generated ores, this might help if it fails (see #11). Can be removed if no additional ore-directory entry is needed. -
coloroptional: A hexadecimal representation of a color. The color will be "multiplied" (mixed) with the selected texture. If you want a clean color I provided some uncolored textures in thecustom-directory: every file starting with ore (colorless versions of the Minecraftores(ore2is lapis lazuli)) andgem.png(colorless emerald overlay). -
lightValueoptional: The light level emitted by the ore. Valid values are numbers between0(no light) and15(as bright as a torch or glowstone).-1is special and means "let the original ore handle it" (default). Needed for NuclearCraft ores. -
alphaOverlayoptional: If the overlay contains alpha (or semi-transparents) textures.trueif yes,falseif no. Most overlays should be usingfalse.