From 736323136156556d347bcf17fc1d59934c224fdf Mon Sep 17 00:00:00 2001 From: coolGi2007 Date: Mon, 21 Feb 2022 16:30:02 +1030 Subject: [PATCH] Updated fabric, core, readme and added a way to run jar --- Readme.md | 26 ++++++++++++++++---------- build.gradle | 8 ++++++++ core | 2 +- gradle.properties | 4 ++-- 4 files changed, 27 insertions(+), 13 deletions(-) diff --git a/Readme.md b/Readme.md index 49653d2c5..a4d676380 100644 --- a/Readme.md +++ b/Readme.md @@ -1,4 +1,9 @@ -# Distant Horizons +# Distant Horizons + +> A mod that adds a Level of Detail System to Minecraft + + +# What is Distant Horizons? This mod adds a Level Of Detail (LOD) system to Minecraft.\ This implementation renders simplified chunks outside the normal render distance\ @@ -11,18 +16,17 @@ If you want to see a quick demo, check out a video covering the mod here: Architectury version: 3.4-SNAPSHOT\ Forge version: 37.1.0\ -Fabric version: 0.12.6\ -Fabric API version: 0.37.1+1.17 +Fabric version: 0.13.2\ +Fabric API version: 0.46.1+1.17 -Modmenu version: 2.0.14\ -Sodium version: mc1.17.1-0.3.3 +Modmenu version: 2.0.14 Notes:\ This version has been confirmed to work in Eclipse and Retail Minecraft.\ (Retail running forge version 1.17.1-37.1.0 and fabric version 1.17.1-0.12.6) -## source code installation +## Source Code Installation See the Forge Documentation online for more detailed instructions:\ http://mcforge.readthedocs.io/en/latest/gettingstarted/ @@ -46,14 +50,16 @@ Side note: invalidate caches and restart if required ## Compiling **Using GUI** -1. Open a command line in the project folder -2. Run the command: `./gradlew build` -3. The compiled jar file will be in the folder `fabric/build/libs/` and `forge/build/libs/` +1. Download the zip of the project and extract it +2. Download the core from https://gitlab.com/jeseibel/distant-horizons-core and extract into a folder called `core` +3. Open a command line in the project folder +4. Run the command: `./gradlew assemble` +5. The compiled jar file will be in the folder `fabric/build/libs/` and `forge/build/libs/` **If in terminal:** 1. `git clone -b 1.17.1 --recurse-submodules https://gitlab.com/jeseibel/minecraft-lod-mod.git` 2. `cd minecraft-lod-mod` -3. `./gradlew assemble` or `./gradlew build` +3. `./gradlew assemble` or `./gradlew assemble` 4. The build should be in `fabric/build/libs/` and `forge/build/libs/` diff --git a/build.gradle b/build.gradle index a8c06bcc3..c88e79a67 100644 --- a/build.gradle +++ b/build.gradle @@ -50,6 +50,14 @@ subprojects { p -> shadowMe(project(":core")) { transitive false } } } + + jar { + manifest { + attributes 'Implementation-Title': rootProject.archives_base_name, + 'Implementation-Version': rootProject.mod_version, + 'Main-Class': 'com.seibel.lod.core.JarMain' + } + } } allprojects { diff --git a/core b/core index 401cbbd8e..0edca2402 160000 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit 401cbbd8ebc1a4bd5b683666c593a8fd6850d6c4 +Subproject commit 0edca2402d8ca75dd0dcbe2923a5d2133d3f48ae diff --git a/gradle.properties b/gradle.properties index 85ab13ba0..3c8eaee09 100644 --- a/gradle.properties +++ b/gradle.properties @@ -17,8 +17,8 @@ mod_issues=https://gitlab.com/jeseibel/minecraft-lod-mod/-/issues # Fabric loader -fabric_loader_version=0.12.6 -fabric_api_version=0.37.1+1.17 +fabric_loader_version=0.13.2 +fabric_api_version=0.46.1+1.17 # Fabric mod versions modmenu_version=2.0.14 starlight_version_fabric=3442770