Merge pull request #4 from cool-mist/dev/1.17.x

Port to 1.18
This commit is contained in:
Surya Prakash 2021-12-17 17:00:45 +05:30 committed by GitHub
commit 6e86a669c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 53 additions and 25 deletions

View File

@ -12,7 +12,7 @@ jobs:
matrix: matrix:
# Use these Java versions # Use these Java versions
java: [ java: [
16, # Minimum supported by Minecraft 17, # Minimum supported by Minecraft
] ]
# and run on both Linux and Windows # and run on both Linux and Windows
os: [ubuntu-20.04, windows-latest] os: [ubuntu-20.04, windows-latest]

View File

@ -8,20 +8,45 @@
This mod|Minecraft|[Fabric API](https://www.curseforge.com/minecraft/mc-mods/fabric-api/files)|[Mod Menu](https://www.curseforge.com/minecraft/mc-mods/modmenu/files) (optional) This mod|Minecraft|[Fabric API](https://www.curseforge.com/minecraft/mc-mods/fabric-api/files)|[Mod Menu](https://www.curseforge.com/minecraft/mc-mods/modmenu/files) (optional)
--|--|--|-- --|--|--|--
1.16.5-1.1.0 |1.16.5|0.34.2+1.16+|1.16.9+ **1.18.1-1.3.0**|1.18.x|0.44.0+1.18|3.0.0
1.17-1.1.1 |1.17|0.34.9+1.17+|2.0.0-beta.7+
1.17-1.1.1 |1.17.1|0.34.9+1.17+|2.0.2
1.17.1-1.2.1|1.17.1|0.41.0+1.17|2.0.14 1.17.1-1.2.1|1.17.1|0.41.0+1.17|2.0.14
1.17-1.1.1 |1.17.1|0.34.9+1.17+|2.0.2
1.17-1.1.1 |1.17|0.34.9+1.17+|2.0.0-beta.7+
1.16.5-1.1.0 |1.16.5|0.34.2+1.16+|1.16.9+
## Usage <hr/>
- Press `H` to open menu ## Saving a new coordinate
- Press `B` to beam location
- Press `N` to lock beaming - Press `H` to open menu to save a coordinate.
- Select `SAVE` to save the coordinate - You can manually enter the coordinates and change the dimension by clicking on the text below the current dimension icon.
- Select `PING` to ping the coordinate to other players - Provide a world name and some description.
- Select `LIST` to view saved coordinates - Select <img src="src/main/resources/assets/savecoords/textures/gui/ping.png" /> to ping the coordinate to other players.
- Select `CONF` to update configs. Reachable through mod menu as well when available - Select `SAVE` to save the coordinate.
<hr/>
## Managing coordinates
- Press `J` or select `LIST` to open the list of coordinates.
- Select <img src="src/main/resources/assets/savecoords/textures/gui/ping.png" /> in list view to ping that coordinate to other players.
- Select <img src="src/main/resources/assets/savecoords/textures/gui/convert.png" /> to convert the coordinate to nether (or vice versa)
<hr/>
## Broadcasting current location
- Press `B` to broadcast current location
- Press `N` to lock broadcasting current location
<hr/>
## Configs
- Select `CONF` in any window to update configs.
- This is reachable through mod menu as well when available.
<hr/>
## Discord ## Discord

View File

@ -1,10 +1,10 @@
plugins { plugins {
id 'fabric-loom' version '0.8-SNAPSHOT' id 'fabric-loom' version '0.10-SNAPSHOT'
id 'maven-publish' id 'maven-publish'
} }
sourceCompatibility = JavaVersion.VERSION_16 sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_16 targetCompatibility = JavaVersion.VERSION_17
archivesBaseName = project.archives_base_name archivesBaseName = project.archives_base_name
version = project.mod_version version = project.mod_version
@ -55,6 +55,9 @@ tasks.withType(JavaCompile).configureEach {
// see http://yodaconditions.net/blog/fix-for-java-file-encoding-problems-with-gradle.html // see http://yodaconditions.net/blog/fix-for-java-file-encoding-problems-with-gradle.html
// If Javadoc is generated, this must be specified in that task too. // If Javadoc is generated, this must be specified in that task too.
it.options.encoding = "UTF-8" it.options.encoding = "UTF-8"
// Minecraft 1.18 (1.18-pre2) upwards uses Java 17.
it.options.release = 17
} }
java { java {

View File

@ -3,21 +3,21 @@ org.gradle.jvmargs=-Xmx1G
# Fabric Properties # Fabric Properties
# check these on https://fabricmc.net/use # check these on https://fabricmc.net/use
minecraft_version=1.17.1 minecraft_version=1.18.1
yarn_mappings=1.17.1+build.63 yarn_mappings=1.18.1+build.1
loader_version=0.11.7 loader_version=0.12.12
# Mod Properties # Mod Properties
mod_version = 1.17.1-1.2.1 mod_version = 1.18.1-1.3.0
maven_group = me.neophyte.mods.savecoords maven_group = me.neophyte.mods.savecoords
archives_base_name = save-coordinates archives_base_name = save-coordinates
# Dependencies # Dependencies
# currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api # currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api
fabric_version=0.41.0+1.17 fabric_version=0.44.0+1.18
# https://github.com/CottonMC/LibGui/wiki/Setup # https://github.com/CottonMC/LibGui/wiki/Setup
libgui_version=4.2.1+1.17.1 libgui_version=5.1.0+1.18
#https://maven.terraformersmc.com/releases/com/terraformersmc/modmenu/ #https://maven.terraformersmc.com/releases/com/terraformersmc/modmenu/
modmenu_version=2.0.14 modmenu_version=3.0.0

View File

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.1-bin.zip
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists

View File

@ -27,8 +27,8 @@
"depends": { "depends": {
"fabricloader": ">=0.11.3", "fabricloader": ">=0.11.3",
"fabric": "*", "fabric": "*",
"minecraft": "1.17.1", "minecraft": "1.18.x",
"java": ">=16" "java": ">=17"
}, },
"suggests": { "suggests": {
"another-mod": "modmenu" "another-mod": "modmenu"