-
Notifications
You must be signed in to change notification settings - Fork 15
IMC
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.