This commit is contained in:
parent
bafa2723c2
commit
9c9f759ab5
16
README.md
16
README.md
@ -52,14 +52,22 @@ Both ```fabric.mod.json``` and ```build.gradle``` must be modified to opt-in to
|
|||||||
```
|
```
|
||||||
|
|
||||||
### ```build.gradle```
|
### ```build.gradle```
|
||||||
|
To properly detect the version of a file, the Minecraft version must be appended to the file name.
|
||||||
|
|
||||||
Replace:
|
Replace:
|
||||||
```gradle
|
```gradle
|
||||||
version = project.mod_version
|
version = project.mod_version
|
||||||
```
|
```
|
||||||
with this:
|
with your preferred format's code from the table below:
|
||||||
```gradle
|
|
||||||
version = "${project.mod_version}+${project.minecraft_version}"
|
| Format | Example | Code |
|
||||||
```
|
| --- | --- | --- |
|
||||||
|
| ```<VERSION>+<MC-VERSION>``` (recommended) | ```thing-1.0.0+1.16.1.jar``` | ```version = "${project.mod_version}+${project.minecraft_version}"``` |
|
||||||
|
| ```<VERSION>-<MC-VERSION>``` | ```thing-1.0.0-1.16.1.jar``` | ```version = "${project.mod_version}-${project.minecraft_version}"``` |
|
||||||
|
| ```<VERSION>+<MC-MAJOR>``` | ```thing-1.0.0-1.16.jar``` | ```version = "${project.mod_version}+${project.minecraft_major_version}"``` |
|
||||||
|
| ```<VERSION>-<MC-MAJOR>``` | ```thing-1.0.0-1.16.jar``` | ```version = "${project.mod_version}-${project.minecraft_major_version}"``` |
|
||||||
|
|
||||||
|
When using a format using the Minecraft major version (specified as ```<MC-MAJOR>```), ```minecraft_mjaor_version``` must be specified in ```gradle.properties```, for instance ```minecraft_major_version = 1.16```.
|
||||||
|
|
||||||
## Changelog
|
## Changelog
|
||||||
[View Changelog](CHANGELOG.md)
|
[View Changelog](CHANGELOG.md)
|
||||||
|
Reference in New Issue
Block a user