Skip to content
JohnBraham edited this page Jul 29, 2026 · 2 revisions

Legacy OreSpawn 3 documentation for Minecraft 1.10/1.12. Open the OS3 documentation index or go to the current OreSpawn 4 documentation.

Create a class like:

public class BaseMetalsOreSpawn implements Function<OreSpawnAPI, SpawnLogic> {
	@Override
	public SpawnLogic apply(OreSpawnAPI api) {
	SpawnLogic logic = api.createSpawnLogic();

		logic.getDimension(OreSpawnAPI.DIMENSION_WILDCARD)
			.addOre(Blocks.COAL_ORE.getDefaultState(), 25, 12, 20, 0, 128)
		return logic;
	}
}

then put something like:

`FMLInterModComms.sendFunctionMessage("orespawn", "api", "mmd.orespawn.BaseMetalsOreSpawn"); `

in your FMLPreInitializationEvent

The class name and location is the third argument to the IMC call.

Clone this wiki locally