#How to properly update a mod project

20 messages · Page 1 of 1 (latest)

hidden pine
#

you still have to:

  1. manually fix all mixins
  2. add/remove/change code to align with what mojang has done
#

it all depends on what minecraft code your mod touches

hidden pine
#

what exactly do you mean by this?

late lintel
#

I take it they're generating a new project and copying the code over rather than editing the properties in-place

hidden pine
hidden pine
#

you generally need to change
gradle.properties
build.gradle (lib versions, if any to match)
fabric.mod.json

#

and of course the code after that

slow crane
#

personnaly, i just create a new gh branch for the old(current version, then i continue to work for the latest on master

drowsy osprey
#

!versions can be helpful

worn pewterBOT
#

@drowsy osprey: Invalid command syntax: Missing or invalid parameters, usage: [latest | latestStable | <mcVersion>]

#
1.21.7 Fabric versions

build.gradle (constants inside the build script)

    minecraft "com.mojang:minecraft:1.21.7"
    mappings "net.fabricmc:yarn:1.21.7+build.1:v2"
    modImplementation "net.fabricmc:fabric-loader:0.16.14"

    // Fabric API
    modImplementation "net.fabricmc.fabric-api:fabric-api:0.128.1+1.21.7"
}```
**gradle.properties** (constants in a separate file, as with Example Mod)
```minecraft_version=1.21.7
yarn_mappings=1.21.7+build.1
loader_version=0.16.14

# Fabric API
fabric_version=0.128.1+1.21.7```
**Mappings Migration** ([more info](https://fabricmc.net/wiki/tutorial:migratemappings))
```gradlew migrateMappings --mappings "1.21.7+build.1"```
Note that the Fabric API version is usually only correct for the latest minor MC release (e.g. 1.16.5 or 1.15.2) due to implementation limitations. Check [CurseForge](https://minecraft.curseforge.com/projects/fabric/files) for a more precise listing.
torn juniper
#

!version latestStable

worn pewterBOT
#
1.21.7 Fabric versions

build.gradle (constants inside the build script)

    minecraft "com.mojang:minecraft:1.21.7"
    mappings "net.fabricmc:yarn:1.21.7+build.1:v2"
    modImplementation "net.fabricmc:fabric-loader:0.16.14"

    // Fabric API
    modImplementation "net.fabricmc.fabric-api:fabric-api:0.128.1+1.21.7"
}```
**gradle.properties** (constants in a separate file, as with Example Mod)
```minecraft_version=1.21.7
yarn_mappings=1.21.7+build.1
loader_version=0.16.14

# Fabric API
fabric_version=0.128.1+1.21.7```
**Mappings Migration** ([more info](https://fabricmc.net/wiki/tutorial:migratemappings))
```gradlew migrateMappings --mappings "1.21.7+build.1"```
Note that the Fabric API version is usually only correct for the latest minor MC release (e.g. 1.16.5 or 1.15.2) due to implementation limitations. Check [CurseForge](https://minecraft.curseforge.com/projects/fabric/files) for a more precise listing.
torn juniper
#

!version 1.21.6

worn pewterBOT
#
1.21.6 Fabric versions

build.gradle (constants inside the build script)

    minecraft "com.mojang:minecraft:1.21.6"
    mappings "net.fabricmc:yarn:1.21.6+build.1:v2"
    modImplementation "net.fabricmc:fabric-loader:0.16.14"

    // Fabric API
    modImplementation "net.fabricmc.fabric-api:fabric-api:0.128.1+1.21.6"
}```
**gradle.properties** (constants in a separate file, as with Example Mod)
```minecraft_version=1.21.6
yarn_mappings=1.21.6+build.1
loader_version=0.16.14

# Fabric API
fabric_version=0.128.1+1.21.6```
**Mappings Migration** ([more info](https://fabricmc.net/wiki/tutorial:migratemappings))
```gradlew migrateMappings --mappings "1.21.6+build.1"```
Note that the Fabric API version is usually only correct for the latest minor MC release (e.g. 1.16.5 or 1.15.2) due to implementation limitations. Check [CurseForge](https://minecraft.curseforge.com/projects/fabric/files) for a more precise listing.
drowsy osprey
torn juniper
#

sorry

drowsy osprey
toxic cliff
#

That's just the beginning. You need to compile, and resolve any issues, then test. Someone recommended making a branch in github for the old version then keep working in master or another branch if working on something major.

toxic cliff