Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ff15da1b62 | ||
|
|
209f02c6cd | ||
|
|
f64fb2dfdb | ||
|
|
213061f125 | ||
|
|
6a6c92ea0a | ||
|
|
61ec7e32cc | ||
|
|
5c1d513d35 | ||
|
|
7e3c9abbca | ||
|
|
1d3527b834 | ||
|
|
e102f65531 | ||
|
|
8ee4a0763c | ||
|
|
d985762d7a | ||
|
|
493a15d34d | ||
|
|
7ae7110f90 | ||
|
|
bba6fc3b3e | ||
|
|
5d32b1a447 | ||
|
|
026a1260f9 |
@@ -16,7 +16,7 @@ jobs:
|
|||||||
distribution: temurin
|
distribution: temurin
|
||||||
java-version: 21
|
java-version: 21
|
||||||
|
|
||||||
- uses: gradle/actions/setup-gradle@v5
|
- uses: gradle/actions/setup-gradle@v6
|
||||||
|
|
||||||
- run: ./gradlew chiseledBuild
|
- run: ./gradlew chiseledBuild
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ jobs:
|
|||||||
ref: ${{ github.ref }}
|
ref: ${{ github.ref }}
|
||||||
|
|
||||||
- name: Set up Gradle
|
- name: Set up Gradle
|
||||||
uses: gradle/actions/setup-gradle@v5
|
uses: gradle/actions/setup-gradle@v6
|
||||||
|
|
||||||
- name: Set up JDK 21
|
- name: Set up JDK 21
|
||||||
uses: actions/setup-java@v5
|
uses: actions/setup-java@v5
|
||||||
|
|||||||
@@ -35,6 +35,9 @@
|
|||||||
| 1.21.9 | `mc-1.21.9` |
|
| 1.21.9 | `mc-1.21.9` |
|
||||||
| 1.21.10 | `mc-1.21.10` |
|
| 1.21.10 | `mc-1.21.10` |
|
||||||
| 1.21.11 | `mc-1.21.11` |
|
| 1.21.11 | `mc-1.21.11` |
|
||||||
|
| 26.1 | `mc-26.1` |
|
||||||
|
| 26.1.1 | `mc-26.1.1` |
|
||||||
|
| 26.1.2 | `mc-26.1.2` |
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -1,5 +1,5 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id("fabric-loom") version "1.15.4"
|
id("net.fabricmc.fabric-loom-remap") version "1.16.2"
|
||||||
id("maven-publish")
|
id("maven-publish")
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -20,7 +20,7 @@ dependencies {
|
|||||||
mappings(loom.officialMojangMappings())
|
mappings(loom.officialMojangMappings())
|
||||||
modImplementation("net.fabricmc:fabric-loader:$loaderVersion")
|
modImplementation("net.fabricmc:fabric-loader:$loaderVersion")
|
||||||
modImplementation("net.fabricmc.fabric-api:fabric-api:$fabricApiVersion")
|
modImplementation("net.fabricmc.fabric-api:fabric-api:$fabricApiVersion")
|
||||||
implementation("com.google.code.gson:gson:2.13.2")
|
implementation("com.google.code.gson:gson:2.14.0")
|
||||||
}
|
}
|
||||||
|
|
||||||
loom {
|
loom {
|
||||||
|
|||||||
+1
-1
@@ -1,3 +1,3 @@
|
|||||||
org.gradle.jvmargs=-Xmx1G
|
org.gradle.jvmargs=-Xmx1G
|
||||||
mod_version=1.1.0
|
mod_version=1.2.0
|
||||||
maven_group=net.blockhost
|
maven_group=net.blockhost
|
||||||
|
|||||||
Vendored
BIN
Binary file not shown.
+3
-1
@@ -1,7 +1,9 @@
|
|||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.1-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-9.5.0-bin.zip
|
||||||
networkTimeout=10000
|
networkTimeout=10000
|
||||||
|
retries=0
|
||||||
|
retryBackOffMs=500
|
||||||
validateDistributionUrl=true
|
validateDistributionUrl=true
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
|
|||||||
@@ -57,7 +57,7 @@
|
|||||||
# Darwin, MinGW, and NonStop.
|
# Darwin, MinGW, and NonStop.
|
||||||
#
|
#
|
||||||
# (3) This script is generated from the Groovy template
|
# (3) This script is generated from the Groovy template
|
||||||
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
|
# https://github.com/gradle/gradle/blob/3d91ce3b8caaf77ad09f381f43615b715b53f72c/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
|
||||||
# within the Gradle project.
|
# within the Gradle project.
|
||||||
#
|
#
|
||||||
# You can find Gradle at https://github.com/gradle/gradle/.
|
# You can find Gradle at https://github.com/gradle/gradle/.
|
||||||
|
|||||||
Vendored
+10
-21
@@ -23,8 +23,8 @@
|
|||||||
@rem
|
@rem
|
||||||
@rem ##########################################################################
|
@rem ##########################################################################
|
||||||
|
|
||||||
@rem Set local scope for the variables with windows NT shell
|
@rem Set local scope for the variables, and ensure extensions are enabled
|
||||||
if "%OS%"=="Windows_NT" setlocal
|
setlocal EnableExtensions
|
||||||
|
|
||||||
set DIRNAME=%~dp0
|
set DIRNAME=%~dp0
|
||||||
if "%DIRNAME%"=="" set DIRNAME=.
|
if "%DIRNAME%"=="" set DIRNAME=.
|
||||||
@@ -51,7 +51,7 @@ echo. 1>&2
|
|||||||
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
|
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
|
||||||
echo location of your Java installation. 1>&2
|
echo location of your Java installation. 1>&2
|
||||||
|
|
||||||
goto fail
|
"%COMSPEC%" /c exit 1
|
||||||
|
|
||||||
:findJavaFromJavaHome
|
:findJavaFromJavaHome
|
||||||
set JAVA_HOME=%JAVA_HOME:"=%
|
set JAVA_HOME=%JAVA_HOME:"=%
|
||||||
@@ -65,7 +65,7 @@ echo. 1>&2
|
|||||||
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
|
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
|
||||||
echo location of your Java installation. 1>&2
|
echo location of your Java installation. 1>&2
|
||||||
|
|
||||||
goto fail
|
"%COMSPEC%" /c exit 1
|
||||||
|
|
||||||
:execute
|
:execute
|
||||||
@rem Setup the command line
|
@rem Setup the command line
|
||||||
@@ -73,21 +73,10 @@ goto fail
|
|||||||
|
|
||||||
|
|
||||||
@rem Execute Gradle
|
@rem Execute Gradle
|
||||||
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
|
@rem endlocal doesn't take effect until after the line is parsed and variables are expanded
|
||||||
|
@rem which allows us to clear the local environment before executing the java command
|
||||||
|
endlocal & "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %* & call :exitWithErrorLevel
|
||||||
|
|
||||||
:end
|
:exitWithErrorLevel
|
||||||
@rem End local scope for the variables with windows NT shell
|
@rem Use "%COMSPEC%" /c exit to allow operators to work properly in scripts
|
||||||
if %ERRORLEVEL% equ 0 goto mainEnd
|
"%COMSPEC%" /c exit %ERRORLEVEL%
|
||||||
|
|
||||||
:fail
|
|
||||||
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
|
|
||||||
rem the _cmd.exe /c_ return code!
|
|
||||||
set EXIT_CODE=%ERRORLEVEL%
|
|
||||||
if %EXIT_CODE% equ 0 set EXIT_CODE=1
|
|
||||||
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
|
|
||||||
exit /b %EXIT_CODE%
|
|
||||||
|
|
||||||
:mainEnd
|
|
||||||
if "%OS%"=="Windows_NT" endlocal
|
|
||||||
|
|
||||||
:omega
|
|
||||||
|
|||||||
@@ -0,0 +1,78 @@
|
|||||||
|
plugins {
|
||||||
|
id("net.fabricmc.fabric-loom") version "1.16.2"
|
||||||
|
id("maven-publish")
|
||||||
|
}
|
||||||
|
|
||||||
|
val minecraftVersion = stonecutter.current.project
|
||||||
|
val loaderVersion = property("loader_version") as String
|
||||||
|
val fabricApiVersion = property("fabric_api_version") as String
|
||||||
|
val javaVersion = (property("java_version") as String).toInt()
|
||||||
|
|
||||||
|
version = property("mod_version")!!
|
||||||
|
group = property("maven_group")!!
|
||||||
|
|
||||||
|
base {
|
||||||
|
archivesName.set("anarchymod-mc-${minecraftVersion}")
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
minecraft("com.mojang:minecraft:$minecraftVersion")
|
||||||
|
implementation("net.fabricmc:fabric-loader:$loaderVersion")
|
||||||
|
implementation("net.fabricmc.fabric-api:fabric-api:$fabricApiVersion")
|
||||||
|
implementation("com.google.code.gson:gson:2.14.0")
|
||||||
|
}
|
||||||
|
|
||||||
|
loom {
|
||||||
|
runConfigs.all {
|
||||||
|
ideConfigGenerated(true)
|
||||||
|
runDir = "../../run"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.processResources {
|
||||||
|
inputs.property("version", project.version)
|
||||||
|
inputs.property("minecraft_version", minecraftVersion)
|
||||||
|
inputs.property("loader_version", loaderVersion)
|
||||||
|
inputs.property("java_version", javaVersion)
|
||||||
|
filteringCharset = "UTF-8"
|
||||||
|
|
||||||
|
filesMatching("fabric.mod.json") {
|
||||||
|
expand(
|
||||||
|
"version" to project.version,
|
||||||
|
"minecraft_version" to minecraftVersion,
|
||||||
|
"loader_version" to loaderVersion,
|
||||||
|
"java_version" to javaVersion
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
filesMatching("anarchymod.mixins.json") {
|
||||||
|
expand(
|
||||||
|
"java_version" to javaVersion
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.withType<JavaCompile>().configureEach {
|
||||||
|
options.encoding = "UTF-8"
|
||||||
|
options.release.set(javaVersion)
|
||||||
|
}
|
||||||
|
|
||||||
|
java {
|
||||||
|
toolchain.languageVersion.set(JavaLanguageVersion.of(javaVersion))
|
||||||
|
withSourcesJar()
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.jar {
|
||||||
|
from("LICENSE") {
|
||||||
|
rename { "${it}_${base.archivesName.get()}" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
publishing {
|
||||||
|
publications {
|
||||||
|
create<MavenPublication>("mavenJava") {
|
||||||
|
artifactId = base.archivesName.get()
|
||||||
|
from(components["java"])
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
+6
-2
@@ -7,17 +7,21 @@ pluginManagement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id("dev.kikugie.stonecutter") version "0.8.3"
|
id("dev.kikugie.stonecutter") version "0.9.4"
|
||||||
}
|
}
|
||||||
|
|
||||||
stonecutter {
|
stonecutter {
|
||||||
create(rootProject) {
|
create(rootProject) {
|
||||||
versions(
|
val legacy = arrayOf(
|
||||||
"1.19.4", "1.20", "1.20.1", "1.20.2", "1.20.3", "1.20.4",
|
"1.19.4", "1.20", "1.20.1", "1.20.2", "1.20.3", "1.20.4",
|
||||||
"1.20.5", "1.20.6",
|
"1.20.5", "1.20.6",
|
||||||
"1.21", "1.21.1", "1.21.2", "1.21.3", "1.21.4",
|
"1.21", "1.21.1", "1.21.2", "1.21.3", "1.21.4",
|
||||||
"1.21.5", "1.21.6", "1.21.7",
|
"1.21.5", "1.21.6", "1.21.7",
|
||||||
"1.21.8", "1.21.9", "1.21.10", "1.21.11"
|
"1.21.8", "1.21.9", "1.21.10", "1.21.11"
|
||||||
)
|
)
|
||||||
|
val modern = arrayOf("26.1", "26.1.1", "26.1.2")
|
||||||
|
|
||||||
|
versions(*legacy).buildscript("build.gradle.kts")
|
||||||
|
versions(*modern).buildscript("modern-build.gradle.kts")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,9 +14,11 @@ public class AnarchyMod implements ClientModInitializer {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onInitializeClient() {
|
public void onInitializeClient() {
|
||||||
//? if >=1.20.5 {
|
//? if >=26.1 {
|
||||||
PayloadTypeRegistry.playC2S().register(JoinPayload.TYPE, JoinPayload.CODEC);
|
PayloadTypeRegistry.serverboundPlay().register(JoinPayload.TYPE, JoinPayload.CODEC);
|
||||||
//?}
|
//?} else if >=1.20.5 {
|
||||||
|
/*PayloadTypeRegistry.playC2S().register(JoinPayload.TYPE, JoinPayload.CODEC);
|
||||||
|
*///?}
|
||||||
ClientPlayConnectionEvents.JOIN.register((listener, sender, client) -> {
|
ClientPlayConnectionEvents.JOIN.register((listener, sender, client) -> {
|
||||||
if (client.getCurrentServer() != null && Domains.contains(client.getCurrentServer().ip))
|
if (client.getCurrentServer() != null && Domains.contains(client.getCurrentServer().ip))
|
||||||
//? if <1.20.5 {
|
//? if <1.20.5 {
|
||||||
|
|||||||
@@ -29,8 +29,7 @@ public class JoinPayload implements CustomPacketPayload {
|
|||||||
|
|
||||||
public static final StreamCodec<FriendlyByteBuf, JoinPayload> CODEC =
|
public static final StreamCodec<FriendlyByteBuf, JoinPayload> CODEC =
|
||||||
StreamCodec.of(
|
StreamCodec.of(
|
||||||
(payload, buf) -> {
|
(buf, payload) -> {},
|
||||||
},
|
|
||||||
buf -> new JoinPayload()
|
buf -> new JoinPayload()
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"depends": {
|
"depends": {
|
||||||
"fabric": "*",
|
"fabric-api": "*",
|
||||||
"fabricloader": ">=${loader_version}",
|
"fabricloader": ">=${loader_version}",
|
||||||
"minecraft": "${minecraft_version}",
|
"minecraft": "${minecraft_version}",
|
||||||
"java": ">=${java_version}"
|
"java": ">=${java_version}"
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ plugins {
|
|||||||
id("dev.kikugie.stonecutter")
|
id("dev.kikugie.stonecutter")
|
||||||
}
|
}
|
||||||
|
|
||||||
stonecutter active "1.21.11"
|
stonecutter active "26.1.2"
|
||||||
|
|
||||||
tasks.register("chiseledBuild") {
|
tasks.register("chiseledBuild") {
|
||||||
group = "project"
|
group = "project"
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
minecraft_version=26.1.1
|
||||||
|
loader_version=0.19.2
|
||||||
|
fabric_api_version=0.145.4+26.1.1
|
||||||
|
java_version=25
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
minecraft_version=26.1.2
|
||||||
|
loader_version=0.19.2
|
||||||
|
fabric_api_version=0.148.2+26.1.2
|
||||||
|
java_version=25
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
minecraft_version=26.1
|
||||||
|
loader_version=0.19.2
|
||||||
|
fabric_api_version=0.145.1+26.1
|
||||||
|
java_version=25
|
||||||
Reference in New Issue
Block a user