Skip to content
This repository has been archived by the owner on Oct 26, 2024. It is now read-only.

Commit

Permalink
Minecraft 1.20 support // Updated to ForgeGradle 6
Browse files Browse the repository at this point in the history
  • Loading branch information
ojaha065 committed Jul 27, 2023
1 parent 9854757 commit 91cf6e5
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
8 changes: 4 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
plugins {
id 'eclipse'
id 'net.minecraftforge.gradle' version '5.1.+'
id 'net.minecraftforge.gradle' version '[6.0,6.2)'
}

version = '1.19-1.1.0.1'
version = '1.20-1.1.0.2'
group = 'fi.kissakala'
base.archivesName = 'pishockmc'

java.toolchain.languageVersion = JavaLanguageVersion.of(17)

println "Java: ${System.getProperty 'java.version'}, JVM: ${System.getProperty 'java.vm.version'} (${System.getProperty 'java.vendor'}), Arch: ${System.getProperty 'os.arch'}"
minecraft {
mappings channel: 'official', version: '1.19.4'
mappings channel: 'official', version: '1.20.1'

runs {
client {
Expand All @@ -37,7 +37,7 @@ repositories {
}

dependencies {
minecraft 'net.minecraftforge:forge:1.19.4-45.1.0'
minecraft 'net.minecraftforge:forge:1.20.1-47.1.0'
}

jar {
Expand Down
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.5.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
5 changes: 4 additions & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
pluginManagement {
repositories {
gradlePluginPortal()
maven { url = 'https://maven.minecraftforge.net/' }
maven {
name = 'MinecraftForge'
url = 'https://maven.minecraftforge.net/'
}
}
}
4 changes: 2 additions & 2 deletions src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ issueTrackerURL="https://github.com/ojaha065/PiShockForMC/issues"

[[mods]]
modId="pishockmc"
version="1.19-1.1.0.1"
version="1.20-1.1.0.2"
displayName="PiShock for Minecraft"

#updateJSONURL="https://change.me.example.invalid/updates.json" # TODO
Expand Down Expand Up @@ -38,6 +38,6 @@ displayTest="IGNORE_ALL_VERSION" # This is a client-only mod
[[dependencies.pishockmc]]
modId="minecraft"
mandatory=true
versionRange="[1.19,1.20)"
versionRange="[1.19,1.21)"
ordering="AFTER"
side="BOTH"

0 comments on commit 91cf6e5

Please sign in to comment.