···11#
22# https://help.github.com/articles/dealing-with-line-endings/
33-#
33+44+* text=auto
55+46# Linux start script should use lf
57/gradlew text eol=lf
6879# These are Windows script files and should use crlf
810*.bat text eol=crlf
9111212+
+1-1
.github/workflows/build.yml
···1111 strategy:
1212 matrix:
1313 java:
1414- - 21 # Currently min for minecraft
1414+ - 25 # Currently min for minecraft
1515 runs-on: ubuntu-latest
1616 steps:
1717 - name: checkout repository
+2-2
README.md
···6464#### Getting the correct environment
6565If you are on nixos you can simply go into the folder of where you cloned the repo, and run `nix develop .`. This will give you the environment I use (apart from the IDE) :3.
66666767-On any other linux distro, just install the jetbrains jdk, or try openjdk21.
6767+On any other linux distro try openjdk25.
68686969-On windows probably go to the openjdk website and install the 21 version? idk goodluck.
6969+On windows probably go to the openjdk website and install the 25 version? idk goodluck.
70707171#### Building
7272Then on linux just do `./gradlew build` and to make it in a single mod jar `./gradlew mergeJars`.
···3232 // function to quickly filter the worlds and get the ServerLevel for the string
3333 public Optional<ServerLevel> getWorld() {
3434 return StreamSupport.stream( TeleportCommands.SERVER.getAllLevels().spliterator(), false ) // woa, this looks silly
3535- .filter(level -> Objects.equals( level.dimension().location().toString(), this.world ))
3535+ .filter(level -> Objects.equals( level.dimension().identifier().toString(), this.world ))
3636 .findFirst();
3737 }
3838
···5454 // function to quickly filter the worlds and get the ServerLevel for the string
5555 public Optional<ServerLevel> getWorld() {
5656 return StreamSupport.stream( TeleportCommands.SERVER.getAllLevels().spliterator(), false ) // woa, this looks silly
5757- .filter(level -> Objects.equals( level.dimension().location().toString(), this.world ))
5757+ .filter(level -> Objects.equals( level.dimension().identifier().toString(), this.world ))
5858 .findFirst();
5959 }
6060
···124124// Constants.LOGGER.info("{} : {} : {}", pack.packId(), pack.location(), pack.getClass());
125125// });
126126127127-// player.displayClientMessage(Component.literal(.toString()), false);
127127+// player.sendSystemMessage(Component.literal(.toString()), false);
128128129129 // the try catch stuff is so wacky, but it works fine and I don't need to check everything
130130 try {
···195195 // Gets the ids of all the worlds
196196 public static List<String> getWorldIds() {
197197 return StreamSupport.stream(TeleportCommands.SERVER.getAllLevels().spliterator(), false)
198198- .map(level -> level.dimension().location().toString())
198198+ .map(level -> level.dimension().identifier().toString())
199199 .toList();
200200 }
201201
+4-9
fabric/build.gradle
···11plugins {
22 id 'multiloader-loader'
33+ id "net.fabricmc.fabric-loom"
34 id 'fabric-loom'
45}
5667dependencies {
78 minecraft "com.mojang:minecraft:${minecraft_version}"
88- mappings loom.layered() {
99- officialMojangMappings()
1010- parchment("org.parchmentmc.data:parchment-${parchment_minecraft}:${parchment_version}@zip")
1111- }
1212- modImplementation "net.fabricmc:fabric-loader:${fabric_loader_version}"
99+ implementation "net.fabricmc:fabric-loader:${fabric_loader_version}"
1310// modImplementation "net.fabricmc.fabric-api:fabric-api:${fabric_api}"
1411}
1512···1815 if (aw.exists()) {
1916 accessWidenerPath.set(aw)
2017 }
2121- mixin {
2222- defaultRefmapName.set("${mod_id}.refmap.json")
2323- }
2418 runs {
2519 client {
2620 client()
···3731 }
3832}
39333434+/* Update to 26.1 no needed
4035// Fix for fabric - makes it so it uses the archive name I specify
4136tasks.named("remapJar") {
4237 archiveFileName.set("${mod_id}-${project.name}-${minecraft_version}-v${version}.jar")
4343-}3838+}*/
···2121 devShells."${system}" = {
2222 default = pkgs.mkShell {
2323 packages = with pkgs; [
2424- jetbrains.jdk-no-jcef # Jetbrains jdk
2424+ jdk25_headless
2525+ # jetbrains.jdk-no-jcef # Jetbrains jdk (doesn't support java 25 yet)
2526 flite # Make mc not complain
26272728 # Took these from https://github.com/NixOS/nixpkgs/blob/nixos-25.05/pkgs/by-name/pr/prismlauncher/package.nix#L123
+12-10
gradle.properties
···44# Project
55version=1.3.4
66group=dev.mrsnowy.teleport_commands
77-java_version=21
77+java_version=25
8899# Common
1010-minecraft_version=1.21.5
1010+minecraft_version=26.1
1111mod_name=Teleport Commands
1212mod_author=Mr. Snowy
1313mod_id=teleport_commands
1414license=MIT
1515credits=Mr. Snowy
1616description=A server-side mod that adds various teleportation related commands.
1717-minecraft_version_range=[1.21.5, 1.22]
1717+minecraft_version_range=[26.1]
18181919# see https://projects.neoforged.net/neoforged/neoform for new versions
2020-neo_form_version=1.21.5-20250325.162830
2020+neo_form_version=26.1-1
21212222# see https://parchmentmc.org/docs/getting-started#choose-a-version for new versions
2323-parchment_minecraft=1.21.5
2424-parchment_version=2025.04.19
2323+# TODO Update 26.1
2424+parchment_minecraft=1.21.11
2525+# There is no new version for now
2626+parchment_version=2025.12.20
25272628# see https://fabricmc.net/develop/ for new versions
2727-fabric_loader_version=0.16.14
2828-fabric_loom=1.10-SNAPSHOT
2929+fabric_loader_version=0.18.5
3030+fabric_loom=1.15-SNAPSHOT
29313032# Quilt (Currently disabled since fabric port works better)
3133#quilt_loader_version=0.25.0
···34363537# NeoForge
3638# see https://projects.neoforged.net/neoforged/neoforge for new versions
3737-neoforge_version=21.5.65-beta
3939+neoforge_version=26.1.0.8-beta
3840neoforge_loader_version_range=[4,)
3941# see https://projects.neoforged.net/neoforged/moddevgradle for new versions
4040-neoforge_moddevgradle=2.0.87
4242+neoforge_moddevgradle=2.0.141
41434244# Gradle
4345org.gradle.jvmargs=-Xmx6G