
We've written a Superclass for an easier and more convenient way to develop addons. Just a bare class, you have to handle almost everything yourself (logic-wise) With a Superclass that handles the necessary stuff for you (this is what we used in the example).Now there are two ways to use this main class: That means without this file, LabyMod can't recognize your Addon, and thus it won't start. This annotation allows us to automatically generate the addon.json, basically the identifier of your Addon. The most important thing about the main addon class is the AddonMain annotation. You'll find some examples, starting with the main addon class: ExampleAddon. Head to core\src\main\java in your root project folder. minecraftVersion: the version combatibility of the addonĪfter you have changed these attributes, reload the Gradle project, and you're good to go.description: a description that fits your Addon.author: the name of your organization or you.displayName: the display name users will see when they view their installed addons.If you want to publish your Addon, we will check if this namespace is already taken by any other published addon, so nothing to worry about namespace: this attribute has to be unique for everything to work without complications.Now search for the addonInfo segment and edit the following fields: This allows us to generate important files to the right package. Inside this block is an assignment to the field defaultPackageName, change the assigned value to the main package you're using in all modules (for example ). Head inside the and search for the block called labyMod. Understanding the Example: you could start with coding stuff for your Addon, but we've written an example addon to show you the basics of how LabyMod 4 addons work.

Some information is crucial to guarantee a seamless experience Basic Information: not only those who will test your Addon would benefit from providing some information, but we do too.You should be able to start your Addon with LabyMod 4 right after you've imported the Gradle project, but there are a few things left that you shouldn't forget. All you need to do to start your Addon is done.
