Skip to content

Developing

Autovw edited this page Sep 11, 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>
// 2.4.0-1.17.1: 3403863
// 2.4.0-1.16.5: 3403862 (Uses Official Mojang Mappings)
// 1.6.0-1.16.4: 3336591 (Uses MCP Mappings)
// 1.7.0-1.15.2: 3401819
// 1.7.0-1.14.4: 3401818
// 1.7.0-1.12.2: 3401816

dependencies {
    // 1.12.X - 1.16.X (ForgeGradle 3 / 4)
    compile fg.deobf('curse.maven:burgermod-483758:<file_id>')
    // 1.17.X+ (ForgeGradle 5+)
    implementation fg.deobf('curse.maven:burgermod-483758:<file_id>')
}

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

A full list of Burger Mod versions 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="[2.3.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