HomeJavaModsno-teleport
ModsJava

no-teleport

by Rutubet · on Modrinth

No Teleport Github: No Teleport is a client-side Fabric mod for Minecraft 26.1.2 that prevents players from teleporting through Nether portals. It makes…

⬇ Download on Modrinth

No Teleport

Github: https://github.com/Rutubet/no-teleport

No Teleport is a client-side Fabric mod for Minecraft 26.1.2 that prevents players from teleporting through Nether portals.

It makes Nether portal blocks behave like full solid blocks on the client, so walking into a portal feels like hitting an invisible wall while the portal still renders normally. It also performs a conservative Ender Pearl trajectory check before item use is sent to the server. If the predicted danger area may touch a Nether portal, the client cancels that Ender Pearl use before the server can spawn the pearl.

Features

Compatibility

Requirement Version
Minecraft 26.1.2
Fabric Loader >=0.19.2
Java >=25
Fabric API Not required

Installation

  1. Install Fabric Loader for Minecraft 26.1.2.
  2. Download or build no-teleport-0.1.0.jar.
  3. Put the jar into the client's mods folder.
  4. Launch the game.

The built mod jar is located at:

build/libs/no-teleport-0.1.0.jar

Building From Source

Windows:

.\gradlew.bat clean build

Linux/macOS:

./gradlew clean build

The mod jar will be generated at:

build/libs/no-teleport-0.1.0.jar

Behavior

Portal blocking is implemented through client-side collision. The mod changes the collision shape for Blocks.NETHER_PORTAL to a full block, without changing the portal's rendered shape.

Ender Pearl blocking happens before the client sends the item-use packet. The mod simulates a conservative pearl path and expands it into a wide danger area. If that area may touch any loaded Nether portal block, the item use is cancelled.

Limitations

Development

Run the test suite:

.\gradlew.bat test

Build the release jar:

.\gradlew.bat clean build

License

MIT

No Teleport

No Teleport 是一个纯客户端 Fabric Mod,用于在 Minecraft 26.1.2 中阻止玩家通过地狱门传送。

它会在客户端把地狱门方块当作完整实体方块处理,让玩家像撞到空气墙一样无法正常走进地狱门。同时,它会在投掷末影珍珠前进行保守轨迹预测:如果预测出的危险轨迹范围可能接触到地狱门,客户端会取消这次末影珍珠使用,避免服务端生成末影珍珠实体。

功能

兼容性

要求 版本
Minecraft 26.1.2
Fabric Loader >=0.19.2
Java >=25
Fabric API 不需要

安装

  1. 安装支持 Minecraft 26.1.2 的 Fabric Loader。
  2. 下载或构建 no-teleport-0.1.0.jar
  3. 将 jar 放入客户端的 mods 文件夹。
  4. 启动游戏。

构建产物位于:

build/libs/no-teleport-0.1.0.jar

从源码构建

Windows:

.\gradlew.bat clean build

Linux/macOS:

./gradlew clean build

构建完成后,Mod jar 会生成到:

build/libs/no-teleport-0.1.0.jar

行为说明

地狱门阻挡通过客户端碰撞实现。客户端会把 Blocks.NETHER_PORTAL 的碰撞形状改为整格方块,但不会改变地狱门的渲染形状。

末影珍珠阻挡发生在客户端发送使用物品包之前。Mod 会模拟一段保守的末影珍珠轨迹,并把轨迹扩展成较粗的危险范围。只要这个范围可能接触到已加载的地狱门方块,本次使用就会被取消。

限制

开发

运行测试:

.\gradlew.bat test

构建发布 jar:

.\gradlew.bat clean build

许可证

MIT

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more