@@ -35,14 +35,23 @@ A template to allow easy usage of the Meteor Addon API.
3535To update this template to a newer Minecraft version, follow these steps:
3636
37371 . Ensure a Meteor Client snapshot is available for the new Minecraft version.
38- 2 . Update ` gradle.properties ` :
39- - Set ` minecraft_version ` , ` yarn_mappings ` and ` loader_version ` to the new version.
40- - Update any additional dependencies accordingly.
38+ 2 . Update ` gradle/libs.versions.toml ` (the versions catalog):
39+ - Set the version entries to the new versions. Common keys to update are:
40+ - ` versions.minecraft ` - Minecraft version
41+ - ` versions.yarn-mappings ` - Yarn mappings
42+ - ` versions.fabric-loader ` - Fabric loader version
43+ - ` versions.meteor ` - Meteor Client snapshot version
44+ - If your addon depends on other libraries listed under the ` [libraries] ` section, update their versions there as
45+ needed.
46+ - After editing, refresh Gradle dependencies and rebuild your project in the IDE.
41473 . Update Loom:
42- - Change the ` loom_version ` in ` build.gradle.kts ` to the latest version compatible with the new Minecraft version.
48+ - Change the ` loom ` version in ` gradle/libs.versions.toml ` (the ` versions.loom ` entry) to the latest version
49+ compatible with the new Minecraft version.
43504 . Update the Gradle wrapper:
44- - You can find the latest Gradle version [ here] ( https://gradle.org/releases/ ) .
45- - Run the ` ./gradlew wrapper --gradle-version <version>; ./gradlew wrapper ` command to update the wrapper script.
51+ - Run the wrapper update command for your platform. Examples:
52+ - Unix / macOS / Windows (Powershell): ` ./gradlew wrapper --gradle-version <version> && ./gradlew wrapper `
53+ - Windows (cmd.exe): ` gradlew.bat wrapper --gradle-version <version> && gradlew.bat wrapper `
54+ - This updates and regenerates the Gradle Wrapper scripts (` gradlew ` , ` gradlew.bat ` , etc.) for the specified version.
46555 . Update your source code:
4756 - Adjust for Minecraft or Yarn mapping changes: method names, imports, mixins, etc.
4857 - Check for Meteor Client API changes that may affect your addon by comparing against the
@@ -60,6 +69,7 @@ To update this template to a newer Minecraft version, follow these steps:
6069│ │── dev_build.yml
6170│ ╰── pull_request.yml
6271│── gradle
72+ │ │── libs.versions.toml
6373│ ╰── wrapper
6474│ │── gradle-wrapper.jar
6575│ ╰── gradle-wrapper.properties
@@ -97,8 +107,10 @@ This is the default project structure. Each folder/file has a specific purpose.
97107Here is a brief explanation of the ones you might need to modify:
98108
99109- ` .github/workflows ` : Contains the GitHub Actions configuration files.
100- - ` gradle ` : Contains the Gradle wrapper files.
101- Edit the ` gradle.properties ` file to change the version of the Gradle wrapper.
110+ - ` gradle ` : Contains the Gradle wrapper files and the versions catalog.
111+ - ` libs.versions.toml ` : Defines version numbers for Minecraft, Loom, Meteor, and other dependencies.
112+ - ` wrapper ` : Contains the Gradle wrapper executable files.
113+ To update the Gradle wrapper executable itself, run the wrapper update command (examples are shown above).
102114- ` src/main/java/com/example/addon ` : Contains the main class of the addon.
103115 Here you can register your custom commands, modules, and HUDs.
104116 Edit the ` getPackage ` method to reflect the package of your addon.
@@ -115,8 +127,9 @@ Here is a brief explanation of the ones you might need to modify:
115127- ` build.gradle.kts ` : Contains the Gradle build script.
116128 You can manage the dependencies of the addon here.
117129 Remember to keep the ` fabric-loom ` version up-to-date.
118- - ` gradle.properties ` : Contains the properties of the Gradle build.
119- These will be used by the build script.
130+ - ` gradle.properties ` : Contains additional build properties used by the build script
131+ (for example ` maven_group ` and ` archives_base_name ` ).
132+ Dependency and platform version numbers are stored in ` gradle/libs.versions.toml ` .
120133- ` LICENSE ` : Contains the license of the addon.
121134 You can edit this file to change the license of your addon.
122135- ` README.md ` : Contains the documentation of the addon.
0 commit comments