Skip to content

How to start

Bogdan T edited this page Jan 27, 2024 · 3 revisions
  1. Get the AtumModCore.jar file from here

  2. Add it as a dependency to your mod project and to the mods folder

  3. Create the main mod class and make it extends AtumMod

Then, implement required methods.

For modId and modName use the same as you use in @Mod annotation above your class

For packagePath, just use the path that will cover all the classes of your mod

  1. Add listeners for all FMLEvents and call the method: notifyModServices(event). If you wont do that, some features may not work correctly.

For example:

@Mod.EventHandler
public void construct(FMLConstructionEvent event) {
    notifyModServices(event);
}

@Mod.EventHandler
public void preInit(FMLPreInitializationEvent event) {
    notifyModServices(event);
}

@Mod.EventHandler
public void init(FMLInitializationEvent event) {
    notifyModServices(event);
}

@Mod.EventHandler
public void postInit(FMLPostInitializationEvent event) {
    notifyModServices(event);
}

@Mod.EventHandler
public void loadComplete(FMLLoadCompleteEvent event) {
    notifyModServices(event);
}

@Mod.EventHandler
public void serverStarting(FMLServerStartingEvent event) {
    notifyModServices(event);
}

@Mod.EventHandler
public void serverStarted(FMLServerStartedEvent event) {
    notifyModServices(event);
}

Thats it! You ready to test the mod

Clone this wiki locally