#How to properly update a mod project
20 messages · Page 1 of 1 (latest)
what exactly do you mean by this?
I take it they're generating a new project and copying the code over rather than editing the properties in-place

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
personnaly, i just create a new gh branch for the old(current version, then i continue to work for the latest on master
!versions can be helpful
@drowsy osprey: Invalid command syntax: Missing or invalid parameters, usage: [latest | latestStable | <mcVersion>]
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.
!version latestStable
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.
!version 1.21.6
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.
-# maybe #bot-posting ?
sorry
-# tis okay
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.
They do: https://fabricmc.net/develop/template/
but as someone mentioned previously, you just need to change some of the properties in gradle.properties and fabric.mod.json files.
This page tells you what to update to: https://fabricmc.net/develop/ - just select the MC version you want and it give you the appropriate values.