Skip to main content

Introduction

warning

Creating an addon requires that you have a good understanding of Java and creating Minecraft mods. The tutorials in this section will not cover basic topics like setting up development environments, and adding new items/blocks into the game. You should already understand that before proceeding.

MrCrayfish's Furniture Mod: Refurbished has been written from the ground up to modernise it's codebase and support the creation of addons. This section hopes to provide a clear understanding of the available features you can use to create your own addon. The mod currently supports the ability to add new computer applications, electricity blocks, TV channels, and generate recipe data.

🙋‍♂️ Getting Started

Add the following code to the repositories section in your build.gradle. You will need to provide a personal GitHub token to access the artifacts. You can do that by adding the properties gpr.user (GitHub username) and gpr.key (personal access token) into gradle.properties, which is located in your GRADLE_HOME directory. You can generate your GitHub token here.

If you are using CI build system, define the environment variables GPR_USER and GPR_KEY accordingly instead of gradle properties.

build.gradle
maven {
name = "MrCrayfish (GitHub)"
url = "https://maven.pkg.github.com/MrCrayfish/Maven"
credentials {
username = project.findProperty("gpr.user") ?: System.getenv("GPR_USER")
password = project.findProperty("gpr.key") ?: System.getenv("GPR_KEY")
}
content {
includeGroup "com.mrcrayfish"
}
}

Then add the following to the dependencies section in your build.gradle.

build.gradle
compileOnly fg.deobf("com.mrcrayfish:refurbished_furniture-common:<minecraft_version>-<mod_version>")
runtimeOnly fg.deobf("com.mrcrayfish:refurbished_furniture-forge:<minecraft_version>-<mod_version>")

✨ Congratulations

You are now ready to develop an addon. You can now proceed to one of the guides:

📦 Known Addons

These addon mods have been developed by our great community. Their source code is available to help you develop your own addon.

No listed mods. Submit PR on GitHub to get your mod listed here

<mod name> - [CurseForge](link)/[Modrinth](link) - [Source](link)