Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 1.39 KB

File metadata and controls

23 lines (16 loc) · 1.39 KB

Using this template

This guide assumes that you've used this template, and created your own repository based on it.

Let's now get started with your extension!

  1. Locate the gradle.properties file, and change the id, name, and author fields there. Those will also be applied to the extension when that's being built. Note: The id must be lowercase, cannot start with a number, and cannot contain whitespaces. It may contain underscores (_).
    The name may contain uppercase and lowercase characters, dots, underscores, and dashes.

  2. Rename the org.geyser.extension.exampleid package to something more unique. For example, net.myname.extension.customapples would work.

  3. Locate the ExampleExtension class, which should be located in your new package (you should also rename it :p). You'll notice that it implements the Extension interface - that is required in order for Geyser to load your extension properly. For more info on how to proceed, take a look at the code in that class, or at our extension documentation.

  4. After changing your main class, don't forget to update the main class property in the extensions.yml file.

  5. To build your extension: Run the gradle build command. The built extension will be located in the build/libs/ folder.

Do you have further questions? Ask in the Geyser discord for help (#extensions channel)!