
Leashed Teleport
一个适用于 Minecraft 的 Fabric 模组,当你通过 /tp 命令传送时,会将拴在你身上的实体一同带过去。
✨ 特性
- 基于拴绳的传送 — 任何直接拴在你身上且处于配置半径内的生物,都可以跟随你的
/tp、末影珍珠和紫颂果传送。
- 智能安全检查 — 模组会自动检测不安全的目的地(熔岩、火焰、虚空、窒息危险),并在 5 格半径内寻找附近的安全位置。如果未找到安全点,则取消传送以防止生物死亡。
- 坠落伤害保护 — 被传送的实体在落地时会获得持续可配置的抗性提升 V 和缓降效果,以确保护生存。
- 驯服所有权检查 — 驯服的动物(狗、猫、马等)仅在它们属于正在传送的玩家时才会传送。由其他玩家驯服的动物会被留下。
- 支持坐下的实体 — 只要拴绳连接且属于传送玩家的驯服动物,即使处于坐下状态也会传送。
- 跨维度支持 — 实体可以选择跟随你跨越维度(主世界 ↔ 下界 ↔ 末地)。默认启用;可在配置中切换。
- 可选 LuckPerms 集成 — 当安装了 LuckPerms 时,启用权限节点以用于常规使用、跨维度传送、末影珍珠和紫颂果。
- 可选 Open Parties and Claims 集成 — 当安装了 OPAC 时,拴绳的生物会遵守领地访问规则以及 OPAC 的传送、末影珍珠和紫颂果保护规则。
- 世界边界感知 — 如果目的地在世界边界之外,拴绳的生物不会被传送。
- 可配置的黑名单 — 定义永远不应传送的生物类型,即使它们拴在你身上。
- 可选 Mod Menu 集成 — 当客户端存在 Mod Menu 和 Cloth Config 时,你可以通过游戏内界面编辑相同的配置。
- 游戏内命令 —
/leashedteleport info 和 /leashedteleport reload(需要操作者等级 2)。
- 支持 - Moonrise、C2ME 和 Async
? 命令
| 命令 |
描述 |
/leashedteleport info |
仅限 OP。显示当前配置值和 LuckPerms 状态 |
/leashedteleport reload |
仅限 OP。从磁盘重新加载配置,无需重启 |
⚙️ 配置
配置文件:.minecraft/config/leashedteleport.json
首次启动时会自动创建默认配置文件,其中包含解释每个选项的内联注释。
如果客户端安装了 Mod Menu,Leashed Teleport 也会在那里暴露一个配置界面。Cloth Config 是可选的:如果没有它,模组仍能正常工作,但不会显示配置 GUI。
| 字段 |
类型 |
默认值 |
描述 |
leash_radius |
double |
10.0 |
距离玩家的最大方块数。更远的生物不会被传送。 |
useLuckPerms |
boolean |
false |
当为 true 时,如果安装了 LuckPerms,Leashed Teleport 将检查 LuckPerms 权限节点。 |
cross_dimension_teleport |
boolean |
true |
允许生物跟随跨越维度。设置为 false 以限制在当前维度内。 |
ender_pearl_teleport |
boolean |
true |
允许拴绳的生物跟随末影珍珠传送。设置为 false 以使用原版末影珍珠行为。 |
chorus_fruit_teleport |
boolean |
true |
允许拴绳的生物跟随紫颂果传送。设置为 false 以使用原版紫颂果行为。 |
respectOpenPartiesAndClaims |
boolean |
true |
当安装了 Open Parties and Claims 时,尊重 OPAC 的领地保护。 |
damage_resistance_duration_ticks |
int |
100 |
传送后抗性提升 V + 缓降效果的持续时间(20 tick = 1 秒)。 |
entity_blacklist |
list |
[] |
永远不会传送的生物类型 ID。见下方示例。 |
黑名单示例
使用黑名单排除特定生物——例如太大或太危险而不便带上的动物:
{
"leash_radius": 15.0,
"useLuckPerms": true,
"cross_dimension_teleport": true,
"ender_pearl_teleport": true,
"chorus_fruit_teleport": true,
"respectOpenPartiesAndClaims": true,
"damage_resistance_duration_ticks": 100,
"entity_blacklist": [
"minecraft:cow",
"minecraft:pig",
"minecraft:bee",
"minecraft:horse",
"minecraft:llama"
]
}
注意: 只有实际上可以被拴绳的生物才会传送。你不需要对原版 Minecraft 中无法被拴绳的生物(如大多数敌对生物、村民等)进行黑名单设置。
?️ Open Parties and Claims
Open Parties and Claims 是可选的。Leashed Teleport 不直接依赖它,但当安装 OPAC 且 respectOpenPartiesAndClaims 为 true 时,拴绳的生物不会被带入阻止相应操作的领地中。
/tp 和其他常规玩家传送需要正常的领地访问权限。
- 末影珍珠生物跟随检查 OPAC 的“末影珍珠”实体屏障组(如果该动态选项存在)。
- 紫颂果生物跟随尊重 OPAC 的紫颂果领地例外/保护选项。
如果你希望 Leashed Teleport 忽略 OPAC 领地规则,请将 respectOpenPartiesAndClaims 设置为 false。
如果已安装 OPAC 但无法读取其保护 API,则禁止跟随传送并记录警告日志。缺少末影珍珠或紫颂果保护选项也会拒绝没有正常领地访问权限的玩家进入。若未安装 OPAC,则传送功能正常工作。
? LuckPerms
Leashed Teleport 仅在同时满足以下两个条件时才使用 LuckPerms:
config/leashedteleport.json 中的 useLuckPerms 设置为 true
- 服务器上实际安装了
luckperms 模组
如果任一条件不满足,任何人都可以使用 Leashed Teleport,且无需任何权限插件。
如果 LuckPerms 处于激活状态,缺失的权限节点默认值为 false。
权限节点
| 权限 |
描述 |
leashedteleport.use |
允许玩家在传送时携带拴绳上的生物 |
leashedteleport.crossdimensionteleport |
允许玩家跨维度传送时携带拴绳上的生物 |
leashedteleport.enderpearlteleport |
允许玩家在使用末影珍珠传送时携带拴绳上的生物 |
leashedteleport.chorusfruitteleport |
允许玩家在使用紫颂果传送时携带拴绳上的生物 |
示例
示例组配置
group.default:
permissions:
- leashedteleport.use
group.vip:
permissions:
- leashedteleport.use
- leashedteleport.crossdimensionteleport
- leashedteleport.enderpearlteleport
- leashedteleport.chorusfruitteleport
- leashedteleport.crossdimensionteleport
LuckPerms 快速入门
/lp group default permission set leashedteleport.use true
/lp group default permission set leashedteleport.crossdimensionteleport false
/lp group default permission set leashedteleport.enderpearlteleport false
/lp group default permission set leashedteleport.chorusfruitteleport false
/lp group vip permission set leashedteleport.use true
/lp group vip permission set leashedteleport.crossdimensionteleport true
/lp group vip permission set leashedteleport.enderpearlteleport true
/lp group vip permission set leashedteleport.chorusfruitteleport true
官方 LuckPerms 文档:
??? 兼容性
本模组可与 Moonrise、C2ME 和 Async 配合使用。但这些模组中有些无法同时加载。
? 安装
- 为 Minecraft 安装 Fabric Loader。
- 下载 Fabric API 并将其放入
mods/ 目录。
- 下载
leashedteleport-<version>.jar 并将其放入 mods/ 目录。
- 启动 Minecraft。配置文件将在首次运行时自动创建。
?️ 测试服务器
欢迎加入我的 Minecraft 服务器来测试我的模组:play.swordfishbe.eu

Leashed Teleport
A Fabric mod for Minecraft that brings your leashed entities along when you teleport via /tp.
✨ Features
- Leash-based teleportation — any mob leashed directly to you and within the configured radius can follow your
/tp, ender pearl, and chorus fruit teleports.
- Intelligent safety checks — the mod automatically detects unsafe destinations (lava, fire, void, suffocation hazards) and finds a nearby safe location within a 5-block radius. If no safe spot is found, the teleport is cancelled to prevent mob death.
- Fall damage protection — teleported entities receive Damage Resistance V and Slow Falling for a configurable duration to survive the landing.
- Tame ownership check — tamed animals (dogs, cats, horses, etc.) only teleport if they are owned by the teleporting player. Animals tamed by other players are left behind.
- Sitting entities supported — sitting tamed animals teleport as long as they are leashed to and owned by the teleporting player.
- Cross-dimension support — entities can optionally follow you across dimensions (Overworld ↔ Nether ↔ End). Enabled by default; toggleable in config.
- Optional LuckPerms integration — enable permission nodes for general use, cross-dimension teleports, ender pearls, and chorus fruit when LuckPerms is installed.
- Optional Open Parties and Claims integration — when OPAC is installed, leashed mobs respect claim access plus OPAC's teleport, ender pearl, and chorus fruit protection rules.
- World border aware — if the destination is outside the world border, leashed entities are not teleported.
- Configurable blacklist — define entity types that should never teleport, even if leashed to you.
- Optional Mod Menu integration — when Mod Menu and Cloth Config are present on the client, you can edit the same config through an in-game screen.
- In-game commands —
/leashedteleport info and /leashedteleport reload (operator level 2 required).
- Supports - Moonrise, C2ME and Async
? Commands
| Command |
Description |
/leashedteleport info |
OP only. Display the current config values and LuckPerms status |
/leashedteleport reload |
OP only. Reload the config from disk without restart |
⚙️ Configuration
Config file: .minecraft/config/leashedteleport.json
A default config is created automatically on first launch, with inline comments that explain each option.
If Mod Menu is installed on the client, Leashed Teleport exposes a config screen there too. Cloth Config is optional: without it, the mod still works normally, but no config GUI is shown.
| Field |
Type |
Default |
Description |
leash_radius |
double |
10.0 |
Maximum distance in blocks from the player. Mobs further away are not teleported. |
useLuckPerms |
boolean |
false |
When true, Leashed Teleport checks LuckPerms permission nodes if LuckPerms is installed. |
cross_dimension_teleport |
boolean |
true |
Allow mobs to follow across dimensions. Set to false to restrict to the current dimension. |
ender_pearl_teleport |
boolean |
true |
Allow leashed mobs to follow ender pearl teleports. Set to false for vanilla pearl behaviour. |
chorus_fruit_teleport |
boolean |
true |
Allow leashed mobs to follow chorus fruit teleports. Set to false for vanilla chorus fruit behaviour. |
respectOpenPartiesAndClaims |
boolean |
true |
Respect OPAC claim protections when Open Parties and Claims is installed. |
damage_resistance_duration_ticks |
int |
100 |
Duration of Damage Resistance V + Slow Falling after teleport (20 ticks = 1 second). |
entity_blacklist |
list |
[] |
Entity type IDs that will never teleport. See example below. |
Blacklist Example
Use the blacklist to exclude specific mobs — for example animals that are too large or too dangerous to bring along:
{
"leash_radius": 15.0,
"useLuckPerms": true,
"cross_dimension_teleport": true,
"ender_pearl_teleport": true,
"chorus_fruit_teleport": true,
"respectOpenPartiesAndClaims": true,
"damage_resistance_duration_ticks": 100,
"entity_blacklist": [
"minecraft:cow",
"minecraft:pig",
"minecraft:bee",
"minecraft:horse",
"minecraft:llama"
]
}
Note: Only mobs that can actually be leashed will ever teleport. You don't need to blacklist mobs that cannot be leashed in vanilla Minecraft (such as most hostile mobs, villagers, etc.).
?️ Open Parties and Claims
Open Parties and Claims is optional. Leashed Teleport does not depend on it directly, but when OPAC is installed and respectOpenPartiesAndClaims is true, leashed mobs will not be carried into claims that block the matching action.
/tp and other general player teleports require normal claim access.
- Ender pearl mob-follow checks OPAC's Ender Pearls entity barrier group when that dynamic option exists.
- Chorus fruit mob-follow respects OPAC's chorus fruit claim exception/protection option.
Set respectOpenPartiesAndClaims to false if you want Leashed Teleport to ignore OPAC claim rules.
If OPAC is installed but its protection API cannot be read, mob-follow teleports are blocked and a warning is logged. Missing pearl or chorus protection options also deny entry for players without normal claim access. Without OPAC installed, teleports work normally.
? LuckPerms
Leashed Teleport only uses LuckPerms when both conditions are true:
useLuckPerms is set to true in config/leashedteleport.json
- The
luckperms mod is actually installed on the server
If either condition is false, everyone can use Leashed Teleport and no permission plugin is required.
If LuckPerms is active, missing permission nodes default to false.
Permission nodes
| Permission |
Description |
leashedteleport.use |
Allow a player to bring leashed mobs along during teleports |
leashedteleport.crossdimensionteleport |
Allow a player to bring leashed mobs across dimensions |
leashedteleport.enderpearlteleport |
Allow a player to bring leashed mobs along with ender pearl teleports |
leashedteleport.chorusfruitteleport |
Allow a player to bring leashed mobs along with chorus fruit teleports |
Examples
Example groups
group.default:
permissions:
- leashedteleport.use
group.vip:
permissions:
- leashedteleport.use
- leashedteleport.crossdimensionteleport
- leashedteleport.enderpearlteleport
- leashedteleport.chorusfruitteleport
- leashedteleport.crossdimensionteleport
LuckPerms quick start
/lp group default permission set leashedteleport.use true
/lp group default permission set leashedteleport.crossdimensionteleport false
/lp group default permission set leashedteleport.enderpearlteleport false
/lp group default permission set leashedteleport.chorusfruitteleport false
/lp group vip permission set leashedteleport.use true
/lp group vip permission set leashedteleport.crossdimensionteleport true
/lp group vip permission set leashedteleport.enderpearlteleport true
/lp group vip permission set leashedteleport.chorusfruitteleport true
Official LuckPerms docs:
??? Compatibility
This mod works with Moonrise, C2ME and Async. Some of these mods cannot be loaded together.
? Installation
- Install Fabric Loader for Minecraft.
- Download Fabric API and place it in
mods/.
- Download
leashedteleport-<version>.jar and place it in mods/.
- Launch Minecraft. The config is created automatically on first run.
?️ Test Server
Feel free to join my Minecraft server to test my mods: play.swordfishbe.eu
评论 0
登录后参与评分
还没有评论,来抢沙发吧