about summary refs log tree commit diff
path: root/users/sterni
diff options
context:
space:
mode:
Diffstat (limited to 'users/sterni')
-rw-r--r--users/sterni/machines/edwin/minecraft.nix14
-rw-r--r--users/sterni/modules/minecraft-fabric.nix11
2 files changed, 18 insertions, 7 deletions
diff --git a/users/sterni/machines/edwin/minecraft.nix b/users/sterni/machines/edwin/minecraft.nix
index 4e9a184d10a8..0ba0cda25451 100644
--- a/users/sterni/machines/edwin/minecraft.nix
+++ b/users/sterni/machines/edwin/minecraft.nix
@@ -2,13 +2,13 @@
 
 let
   carpet = pkgs.fetchurl {
-    url = "https://github.com/gnembon/fabric-carpet/releases/download/1.4.57/fabric-carpet-1.17.1-1.4.57+v220119.jar";
-    sha256 = "1q3mnhcrjcp0i573645lyb92ldb8n0jhpjl4ydi1fbk9wqckxzcs";
+    url = "https://github.com/gnembon/fabric-carpet/releases/download/1.4.56/fabric-carpet-1.18-1.4.56+v211130.jar";
+    sha256 = "0rvl2yb8xymla8c052j07gqkqfkz4h5pxf6aip2v9v0h8r84p9hf";
   };
 
   carpet-extra = pkgs.fetchurl {
-    url = "https://github.com/gnembon/carpet-extra/releases/download/1.4.57/carpet-extra-1.17.1-1.4.57.jar";
-    sha256 = "1bliqby1h5wm7rdfrx6z698qb9acfvm3d1sjcvlw2q55x982g7gb";
+    url = "https://github.com/gnembon/carpet-extra/releases/download/1.4.56/carpet-extra-1.18-1.4.56.jar";
+    sha256 = "16d8szz13wh5344d61sf0f3f7aj3qa35c6jrbd68krf3srpqfa4x";
   };
 
   userGroup = "minecraft";
@@ -37,6 +37,8 @@ let
   };
 in
 
+# TODO(sterni): regular backups of carpet world
+
 {
   imports = [
     ../../modules/minecraft-fabric.nix
@@ -65,7 +67,7 @@ in
     services.minecraft-fabric-server = {
       creative = {
         enable = true;
-        version = "1.17.1";
+        version = "1.18";
         mods = [
           carpet
           carpet-extra
@@ -91,7 +93,7 @@ in
 
       carpet = {
         enable = true;
-        version = "1.17.1";
+        version = "1.18";
         mods = [
           carpet
           carpet-extra
diff --git a/users/sterni/modules/minecraft-fabric.nix b/users/sterni/modules/minecraft-fabric.nix
index b8556ec3eb20..c599d6c04282 100644
--- a/users/sterni/modules/minecraft-fabric.nix
+++ b/users/sterni/modules/minecraft-fabric.nix
@@ -23,7 +23,7 @@
 #   * Op levels
 #
 # SPDX-License-Identifier: MIT
-# SPDX-FileCopyrightText: 2022 sterni <sternenseemann@systemli.org>
+# SPDX-FileCopyrightText: 2022-2023 sterni <sternenseemann@systemli.org>
 
 { lib, pkgs, config, depot, ... }:
 
@@ -98,6 +98,15 @@ let
         "-Dlog4j2.formatMsgNoLookups=true"
       ];
     };
+    "1.18" = fetchJar {
+      pname = "server";
+      version = "1.18";
+      url = "https://launcher.mojang.com/v1/objects/3cf24a8694aca6267883b17d934efacc5e44440d/server.jar";
+      sha256 = "0vvycjcfq96z7cl5dsrq98k9b7j7l4x0y9nflrcqmcvink7fs5w4";
+      passthru.baseJvmOpts = [
+        "-Dlog4j2.formatMsgNoLookups=true"
+      ];
+    };
   };
 
   #