Skip to content

Developing

Autovw edited this page Jun 4, 2021 · 17 revisions

Developing with the Burger Mod.

This is a short guide for mod developers. For example: If you want to test compatibility, create an add-on etc.

First, we will need to add some code to the build.gradle

repositories {
    maven {
        url = "https://www.cursemaven.com"
    }
}

//file_id
//1.6.0-1.16.4: 3336591
//1.6.0-1.15.2: 3336589
//1.6.0-1.12.2: 3336587

dependencies {
    compile fg.deobf('curse.maven:burgermod-483758:<file_id>')
}

More information about adding a Cursemaven project to the build.gradle can be found here!

When creating an add-on for the Burger Mod you will also need to add some code to your mods.toml

[[dependencies.<your_mod_id>]]
    modId="burgermod"
    mandatory=true #or false
    #minimum and maximum version of the Burger Mod needed.
    versionRange="[1.6.0,)"
    #if you want the Burger Mod to be loaded before/after your mod change "NONE" to "BEFORE" or "AFTER"
    ordering="NONE"
    side="BOTH"

More information about the mods.toml can be found here!

Note: mods.toml files were introduced in 1.13, for 1.12 you'll need to use a mcmod.info file instead.

The source code of the mod can be viewed here!

Clone this wiki locally