17 Commits
Author SHA1 Message Date
AlexProgrammerDEandgithub-actions[bot] ff15da1b62 chore(release): bump version to 1.2.0 2026-05-17 13:05:38 +00:00
renovate[bot]GitHubrenovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
209f02c6cd chore(deps): update gradle/actions action to v6 (#25)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-05-17 15:05:08 +02:00
AlexProgrammerDE f64fb2dfdb feat: 26.1 2026-05-17 15:03:16 +02:00
renovate[bot]GitHubrenovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
213061f125 chore(deps): update plugin fabric-loom to v1.16.2 (#24)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-05-15 17:34:51 +00:00
renovate[bot]GitHubrenovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
6a6c92ea0a chore(deps): update gradle/actions action to v6 (#15)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-05-14 01:05:47 +02:00
renovate[bot]GitHubrenovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
61ec7e32cc chore(deps): update all non-major dependencies (#22)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-05-13 21:06:02 +00:00
renovate[bot]GitHubrenovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
5c1d513d35 chore(deps): update plugin dev.kikugie.stonecutter to v0.9.3 (#21)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-05-03 00:27:51 +00:00
renovate[bot]GitHubrenovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
7e3c9abbca chore(deps): update gradle to v9.5.0 (#20)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-04-30 04:29:14 +00:00
renovate[bot]GitHubrenovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1d3527b834 fix(deps): update dependency com.google.code.gson:gson to v2.14.0 (#19)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-04-25 05:44:01 +00:00
renovate[bot]GitHubrenovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
e102f65531 chore(deps): update plugin dev.kikugie.stonecutter to v0.9.2 (#18)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-04-20 19:53:13 +00:00
renovate[bot]GitHubrenovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
8ee4a0763c chore(deps): update plugin dev.kikugie.stonecutter to v0.9.1 (#17)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-04-18 04:28:13 +00:00
renovate[bot]GitHubrenovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
d985762d7a chore(deps): update plugin fabric-loom to v1.16.1 (#16)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-04-07 01:43:23 +00:00
renovate[bot]GitHubrenovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
493a15d34d chore(deps): update gradle to v9.4.1 (#14)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-20 21:54:29 +00:00
renovate[bot]GitHubrenovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
7ae7110f90 chore(deps): update plugin dev.kikugie.stonecutter to v0.9 (#13)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-18 21:54:36 +00:00
renovate[bot]GitHubrenovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
bba6fc3b3e chore(deps): update plugin fabric-loom to v1.15.5 (#12)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-15 01:43:47 +00:00
renovate[bot]GitHubrenovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
5d32b1a447 chore(deps): update gradle to v9.4.0 (#11)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-05 17:59:29 +00:00
AlexProgrammerDEandgithub-actions[bot] 026a1260f9 chore(release): bump version to 1.1.1-SNAPSHOT 2026-03-01 09:35:23 +00:00
18 changed files with 126 additions and 37 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ jobs:
distribution: temurin
java-version: 21
- uses: gradle/actions/setup-gradle@v5
- uses: gradle/actions/setup-gradle@v6
- run: ./gradlew chiseledBuild
+1 -1
View File
@@ -28,7 +28,7 @@ jobs:
ref: ${{ github.ref }}
- name: Set up Gradle
uses: gradle/actions/setup-gradle@v5
uses: gradle/actions/setup-gradle@v6
- name: Set up JDK 21
uses: actions/setup-java@v5
+3
View File
@@ -35,6 +35,9 @@
| 1.21.9 | `mc-1.21.9` |
| 1.21.10 | `mc-1.21.10` |
| 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
+2 -2
View File
@@ -1,5 +1,5 @@
plugins {
id("fabric-loom") version "1.15.4"
id("net.fabricmc.fabric-loom-remap") version "1.16.2"
id("maven-publish")
}
@@ -20,7 +20,7 @@ dependencies {
mappings(loom.officialMojangMappings())
modImplementation("net.fabricmc:fabric-loader:$loaderVersion")
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 {
+1 -1
View File
@@ -1,3 +1,3 @@
org.gradle.jvmargs=-Xmx1G
mod_version=1.1.0
mod_version=1.2.0
maven_group=net.blockhost
Binary file not shown.
+3 -1
View File
@@ -1,7 +1,9 @@
distributionBase=GRADLE_USER_HOME
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
retries=0
retryBackOffMs=500
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Vendored
+1 -1
View File
@@ -57,7 +57,7 @@
# Darwin, MinGW, and NonStop.
#
# (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.
#
# You can find Gradle at https://github.com/gradle/gradle/.
Vendored
+10 -21
View File
@@ -23,8 +23,8 @@
@rem
@rem ##########################################################################
@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal
@rem Set local scope for the variables, and ensure extensions are enabled
setlocal EnableExtensions
set DIRNAME=%~dp0
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 location of your Java installation. 1>&2
goto fail
"%COMSPEC%" /c exit 1
:findJavaFromJavaHome
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 location of your Java installation. 1>&2
goto fail
"%COMSPEC%" /c exit 1
:execute
@rem Setup the command line
@@ -73,21 +73,10 @@ goto fail
@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
@rem End local scope for the variables with windows NT shell
if %ERRORLEVEL% equ 0 goto mainEnd
: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
:exitWithErrorLevel
@rem Use "%COMSPEC%" /c exit to allow operators to work properly in scripts
"%COMSPEC%" /c exit %ERRORLEVEL%
+78
View File
@@ -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
View File
@@ -7,17 +7,21 @@ pluginManagement {
}
plugins {
id("dev.kikugie.stonecutter") version "0.8.3"
id("dev.kikugie.stonecutter") version "0.9.4"
}
stonecutter {
create(rootProject) {
versions(
val legacy = arrayOf(
"1.19.4", "1.20", "1.20.1", "1.20.2", "1.20.3", "1.20.4",
"1.20.5", "1.20.6",
"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.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
public void onInitializeClient() {
//? if >=1.20.5 {
PayloadTypeRegistry.playC2S().register(JoinPayload.TYPE, JoinPayload.CODEC);
//?}
//? if >=26.1 {
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) -> {
if (client.getCurrentServer() != null && Domains.contains(client.getCurrentServer().ip))
//? if <1.20.5 {
@@ -29,8 +29,7 @@ public class JoinPayload implements CustomPacketPayload {
public static final StreamCodec<FriendlyByteBuf, JoinPayload> CODEC =
StreamCodec.of(
(payload, buf) -> {
},
(buf, payload) -> {},
buf -> new JoinPayload()
);
+1 -1
View File
@@ -31,7 +31,7 @@
}
},
"depends": {
"fabric": "*",
"fabric-api": "*",
"fabricloader": ">=${loader_version}",
"minecraft": "${minecraft_version}",
"java": ">=${java_version}"
+1 -1
View File
@@ -2,7 +2,7 @@ plugins {
id("dev.kikugie.stonecutter")
}
stonecutter active "1.21.11"
stonecutter active "26.1.2"
tasks.register("chiseledBuild") {
group = "project"
+4
View File
@@ -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
+4
View File
@@ -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
+4
View File
@@ -0,0 +1,4 @@
minecraft_version=26.1
loader_version=0.19.2
fabric_api_version=0.145.1+26.1
java_version=25