about summary refs log tree commit diff
path: root/users
diff options
context:
space:
mode:
Diffstat (limited to 'users')
-rw-r--r--users/sterni/machines/ingeborg/minecraft.nix14
-rw-r--r--users/sterni/modules/minecraft-fabric.nix15
2 files changed, 23 insertions, 6 deletions
diff --git a/users/sterni/machines/ingeborg/minecraft.nix b/users/sterni/machines/ingeborg/minecraft.nix
index 383fee8ca04c..062bb9ffaa57 100644
--- a/users/sterni/machines/ingeborg/minecraft.nix
+++ b/users/sterni/machines/ingeborg/minecraft.nix
@@ -2,13 +2,13 @@
 
 let
   carpet = pkgs.fetchurl {
-    url = "https://github.com/gnembon/fabric-carpet/releases/download/1.4.128/fabric-carpet-1.20.3-1.4.128+v231205.jar";
-    sha256 = "1jh2pb9pjwyfv1ianzykmja21nqlv175a8rg926xg3w4hhhwzrfq";
+    url = "https://github.com/gnembon/fabric-carpet/releases/download/1.4.147/fabric-carpet-1.21-1.4.147+v240613.jar";
+    sha256 = "1n8r1zznl2xvkzqqwzg18d0rhfzrb675ik7z22q29svkw2jci7q7";
   };
 
   carpet-extra = pkgs.fetchurl {
-    url = "https://github.com/gnembon/carpet-extra/releases/download/1.4.128/carpet-extra-1.20.3-1.4.128.jar";
-    sha256 = "0gxwm5ayr0y5dri0kxlnrrgy9pyaim34rl6km1j42fkyvc4r8p6x";
+    url = "https://github.com/gnembon/carpet-extra/releases/download/1.4.148/carpet-extra-1.21-1.4.148.jar";
+    sha256 = "1yyqv1c08vml3sxyjbs5qk0z3yqiylzq8qa8vxbwiyw49dx5yhnq";
   };
 
   userGroup = "minecraft";
@@ -31,10 +31,12 @@ let
     difficulty = "hard";
     function-permission-level = 4;
     snooper-enabled = false;
+    # TODO(sterni): replaced (?) by simulation-distance which defaults to 1
     view-distance = 12;
     sync-chunk-writes = "false"; # the single biggest performance fix
     max-tick-time = 6000000; # TODO(sterni): disable watchdog via carpet
     enforce-secure-profile = false;
+    # TODO(sterni): set disable pause-when-empty-seconds? we don't have anything in spawn though.
   };
 in
 
@@ -72,7 +74,7 @@ in
     services.minecraft-fabric-server = {
       creative = {
         enable = false; # not actively used
-        version = "1.20.4";
+        version = "1.21.1";
         mods = [
           carpet
           carpet-extra
@@ -98,7 +100,7 @@ in
 
       carpet = {
         enable = true;
-        version = "1.20.4";
+        version = "1.21.1";
         mods = [
           carpet
           carpet-extra
diff --git a/users/sterni/modules/minecraft-fabric.nix b/users/sterni/modules/minecraft-fabric.nix
index 8f44c8a536af..0234cf968368 100644
--- a/users/sterni/modules/minecraft-fabric.nix
+++ b/users/sterni/modules/minecraft-fabric.nix
@@ -186,6 +186,21 @@ let
       url = "https://piston-data.mojang.com/v1/objects/8dd1a28015f51b1803213892b50b7b4fc76e594d/server.jar";
       sha256 = "0qykf9a3nacklqsyb30kg9m79nw462la6rf92gsdssdakprscgy0";
     };
+    # https://www.minecraft.net/en-us/article/minecraft-java-edition-1-21
+    # Has a known exploit, fixed in 1.21.1
+    "1.21" = fetchJar {
+      pname = "server";
+      version = "1.21";
+      url = "https://piston-data.mojang.com/v1/objects/450698d1863ab5180c25d7c804ef0fe6369dd1ba/server.jar";
+      sha256 = "0gzmpifl6l1cq11lpjd5gadw50095wgyxlm2gkpzkngrhvd98qy9";
+    };
+    # https://www.minecraft.net/en-us/article/minecraft-java-edition-1-21-1
+    "1.21.1" = fetchJar {
+      pname = "server";
+      version = "1.21.1";
+      url = "https://piston-data.mojang.com/v1/objects/59353fb40c36d304f2035d51e7d6e6baa98dc05c/server.jar";
+      sha256 = "1fxl66938ixks6imz8c5bry69z0kh6iawq1fiwca1kck7rlmbg73";
+    };
   };
 
   #