Skip to content

Commit

Permalink
Merge pull request #4 from cool-mist/dev/1.17.x
Browse files Browse the repository at this point in the history
Port to 1.18
  • Loading branch information
cool-mist authored Dec 17, 2021
2 parents 821875d + 61e5975 commit 6e86a66
Show file tree
Hide file tree
Showing 6 changed files with 53 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
matrix:
# Use these Java versions
java: [
16, # Minimum supported by Minecraft
17, # Minimum supported by Minecraft
]
# and run on both Linux and Windows
os: [ubuntu-20.04, windows-latest]
Expand Down
47 changes: 36 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
--|--|--|--
1.16.5-1.1.0 |1.16.5|0.34.2+1.16+|1.16.9+
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.18.1-1.3.0**|1.18.x|0.44.0+1.18|3.0.0
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+

<hr/>

## Saving a new coordinate

- Press `H` to open menu to save a coordinate.
- You can manually enter the coordinates and change the dimension by clicking on the text below the current dimension icon.
- Provide a world name and some description.
- Select <img src="src/main/resources/assets/savecoords/textures/gui/ping.png" /> to ping the coordinate to other players.
- 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

## Usage
- Select `CONF` in any window to update configs.
- This is reachable through mod menu as well when available.

- Press `H` to open menu
- Press `B` to beam location
- Press `N` to lock beaming
- Select `SAVE` to save the coordinate
- Select `PING` to ping the coordinate to other players
- Select `LIST` to view saved coordinates
- Select `CONF` to update configs. Reachable through mod menu as well when available
<hr/>

## Discord

Expand Down
9 changes: 6 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
plugins {
id 'fabric-loom' version '0.8-SNAPSHOT'
id 'fabric-loom' version '0.10-SNAPSHOT'
id 'maven-publish'
}

sourceCompatibility = JavaVersion.VERSION_16
targetCompatibility = JavaVersion.VERSION_16
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17

archivesBaseName = project.archives_base_name
version = project.mod_version
Expand Down Expand Up @@ -55,6 +55,9 @@ tasks.withType(JavaCompile).configureEach {
// 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.
it.options.encoding = "UTF-8"

// Minecraft 1.18 (1.18-pre2) upwards uses Java 17.
it.options.release = 17
}

java {
Expand Down
14 changes: 7 additions & 7 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@ org.gradle.jvmargs=-Xmx1G

# Fabric Properties
# check these on https://fabricmc.net/use
minecraft_version=1.17.1
yarn_mappings=1.17.1+build.63
loader_version=0.11.7
minecraft_version=1.18.1
yarn_mappings=1.18.1+build.1
loader_version=0.12.12

# Mod Properties
mod_version = 1.17.1-1.2.1
mod_version = 1.18.1-1.3.0
maven_group = me.neophyte.mods.savecoords
archives_base_name = save-coordinates

# Dependencies
# 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
libgui_version=4.2.1+1.17.1
libgui_version=5.1.0+1.18

#https://maven.terraformersmc.com/releases/com/terraformersmc/modmenu/
modmenu_version=2.0.14
modmenu_version=3.0.0
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
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
zipStorePath=wrapper/dists
4 changes: 2 additions & 2 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"depends": {
"fabricloader": ">=0.11.3",
"fabric": "*",
"minecraft": "1.17.1",
"java": ">=16"
"minecraft": "1.18.x",
"java": ">=17"
},
"suggests": {
"another-mod": "modmenu"
Expand Down

0 comments on commit 6e86a66

Please sign in to comment.