Skip to content
Jasmine Iwanek edited this page Dec 21, 2016 · 1 revision

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.