一款易于使用的 Fabric 传送与传送门模组!
- 支持家、传送点、传送门、返回、重生点和 TPA 功能
- 检查传送目的地是否安全,以防止窒息
- 提供物理传送门区域,当玩家走入时会将其传送到任意维度中的关联位置,甚至传送到另一个 Minecraft 服务器
- 骑乘马、骆驼、船、矿车等生物的玩家及其所有乘客将一同被传送
- 适用于多人游戏(服务端)或单人游戏(客户端)
- 服务端功能无需在客户端安装模组,但请参阅下方的“语言”部分
- 配置极简,已预设默认值
*
命令
| 命令 |
仅 OP |
描述 |
/helpteleport |
|
显示玩家可用的命令信息 |
| 出生点: |
|
|
/setspawn |
✓ |
将出生点设置在你当前位置(与 Minecraft 世界初始出生点无关) |
/spawn |
|
传送至出生点(需通过 /setspawn 命令设置) |
| 快捷传送点: |
|
|
/setwarp <name> |
✓ |
在当前位置设置一个快捷传送点 |
/delwarp <name> |
✓ |
删除一个快捷传送点 |
/warp <name> |
|
传送至某个快捷传送点 |
/warps |
|
列出所有快捷传送点 |
| 家: |
|
|
/sethome [<name>] |
|
在当前位置设置一个家(默认名称为 home) |
/delhome <name> |
|
删除一个家 |
/home [<name>] |
|
传送至某个家(默认名称为 home) |
/homes |
|
列出你所有的家 |
| 返回: |
|
|
/back |
|
传送回使用家、快捷传送点或死亡前的上一个位置 |
| 随机传送: |
|
|
/rtp |
|
传送至世界出生点一定半径内的随机位置(在当前维度内) |
| 传送门: |
|
|
/setportal <name> from |
✓ / ✗ |
从当前注视的完整方块处设置传送门的“起点”角 |
/setportal <name> to |
✓ / ✗ |
从当前注视的完整方块处设置传送门的“终点”角 |
/setportal <name> target |
✓ / ✗ |
在当前位置设置“目标”位置 |
/setportal <name> target "<domain/ip>:<port>" |
✓ |
将“目标”设置为另一个 Minecraft 服务器的 URL(包括双引号!) |
/delportal <name> |
✓ / ✗ |
删除一个传送门 |
/portals |
✓ / ✗ |
列出所有传送门 |
| TPA(请求传送): |
|
|
/tpa <player> |
|
请求传送到 <player> |
/tpahere <player> |
|
请求 <player> 传送到你身边 |
/tpahereall |
✓ |
请求所有玩家传送到你身边(在繁忙的服务器上请谨慎使用) |
/tpcancel |
|
取消你的传送请求 |
/tpaccept [<player>] |
|
接受来自 <player> 的请求(默认:最早的请求) |
/tpdeny [<player>] |
|
拒绝来自 <player> 的请求(默认:最早的请求) |
请注意:
- 在单人游戏中,TPA 功能被禁用
/setspawn、/setwarp、/sethome 和 /setportal <name> target 使用你当前位置(四舍五入到方块坐标)以及当前视角方向来生成传送点
/rtp 在一个半径范围内搜索该范围可通过 rtpRadius 选项进行配置(详见下文“配置”部分)
- 当
/rtp 选择一个从未访问过的区域时,可能会生成多个区块,这可能会影响服务器性能(与玩家飞入新区域时的情况相同)
/setportal:参见下文“传送门”部分
- 当执行传送且目标位置不安全时,系统会在目标位置周围 5x5x5 的区域内搜索一个安全的位置
| 字段 |
默认值 |
范围 |
描述 |
defaultLanguage |
"en_us" |
见下方“语言”章节 |
使用的默认语言 |
enableSpawn |
true |
true 或 false |
为 true 时启用 /setspawn、/spawn 命令 |
enableWarps |
true |
true 或 false |
为 true 时启用 /setwarp、/delwarp、/warp、/warps 命令 |
enableHomes |
true |
true 或 false |
为 true 时启用 /sethome、/delhome、/home、/homes 命令 |
enableBack |
true |
true 或 false |
为 true 时启用 /back 命令 |
enablePortals |
true |
true 或 false |
为 true 时启用 /setportal、/delportal、/portals 命令,并且传送门处于开启状态 |
enableTpa |
true |
true 或 false |
为 true 时启用 /tpa、/tpahere、/tpahereall、/tpcancel、/tpaccept、/tpdeny 命令 |
enableRtp |
true |
true 或 false |
为 true 时启用 /rtp 命令 |
maxHomes |
10 |
最小值:0 |
玩家最多可以拥有的家园数量(设为 0 可禁用限制) |
requestTimeout |
60 |
最小值:10 |
传送请求在失效前的活跃时长(单位:秒) |
rtpRadius |
5000 |
最小值:200 |
/rtp 命令在世界出生点周围使用的最大半径 |
portalCommandsOnlyOp |
true |
true 或 false |
为 true 时仅 OP 可使用传送门相关命令(传送门本身始终对所有人可用) |
要更改这些设置,请编辑配置文件并重启服务器/客户端。
传送门
传送门是玩家可走入的物理区域,用于传送至任意维度的指定目标位置,或重定向至其他 Minecraft 服务器。
创建(保存)传送门时,传送门区域内的空气方块以及两个角块(from 和 to)会被替换为紫色染色玻璃板(仅当传送门体积小于 1000 立方格时),其余方块保持不变。这些玻璃板可以被破坏并替换为玩家可穿行的任何方块,例如:空气、水、蜂蜜、细雪、蜘蛛网、栅栏、陷阱门、门、按钮等。
传送门可以有任意大小;其产生的粒子数量随传送门体积增加而增长,上限为每秒 5000 个粒子,因此非常大的传送门每格产生的粒子数较少。
使用 /setportal 命令:
- 该命令包含三个部分(
from、to、target);为了使传送门被保存,这三个部分必须使用相同的名称进行设置
- 尚未保存的已启动传送门在服务器重启时会丢失
- 若要允许普通玩家创建传送门(使用传送门始终可行),需要将选项
portalCommandsOnlyOp 设置为 false(参见上方的“配置”章节)
- 将
target 设置为 URL(重定向到另一个 Minecraft 服务器)仅允许 OP(无论 portalCommandsOnlyOp 设置为多少),这是一项安全措施
语言
| 语言 |
值(defaultLanguage 配置字段) |
| 英文 |
"en_us" |
| 德文 |
"de_de" |
如果您想提供更多翻译,欢迎在 GitHub 上提交 Issue。
多人游戏用法
服务端:配置 defaultLanguage 定义了所有消息所使用的语言。(控制台输出始终为英文。)
客户端:如果玩家在客户端安装了此模组,则 defaultLanguage 将被客户端的语言设置所覆盖。
单人游戏用法
配置项 defaultLanguage 无效;将使用客户端的语言设置。
已知问题
佩戴鞍的骆驼到达目标位置时会坐下。
安装
需要安装 Fabric API。
- 下载与你的 Minecraft 版本匹配的
.jar 文件,并将其放入服务器/客户端的 mods 文件夹中
- (重新)启动服务器/客户端
- 如有需要,请按照上述“配置”部分所述编辑配置文件
* 巴士模型由 TheJeroen 制作
An easy-to-use Fabric Teleport and Portal Mod!
- Homes, Warps, Portals, Back, Spawn and TPA functionality
- Checks if teleport destinations are safe to use to prevent suffocation
- Provides physical Portal areas that, when walked into, teleport the player to the associated position in any dimension or to another Minecraft server altogether
- Players riding a Horse, Camel, Boat, Minecart, etc. are teleported together with their ride and all other passengers
- Usable in multiplayer (Server-side) or singleplayer (Client-side)
- Server-side functionality does NOT require client-side installation, but see section "Languages" below
- Minimal configuration with predefined values
*
Commands
| Command |
Only OP |
Description |
/helpteleport |
|
Shows information about the commands the player can use |
| Spawn: |
|
|
/setspawn |
✓ |
Sets the Spawn point at your current position (Unrelated to the Minecraft world spawn) |
/spawn |
|
Teleports to Spawn (Needs to be set via the /setspawn command) |
| Warps: |
|
|
/setwarp <name> |
✓ |
Sets a Warp position at your current position |
/delwarp <name> |
✓ |
Deletes a Warp |
/warp <name> |
|
Teleports to a Warp |
/warps |
|
Lists all Warps |
| Homes: |
|
|
/sethome [<name>] |
|
Sets a Home position at your current position (Default: home) |
/delhome <name> |
|
Deletes a Home |
/home [<name>] |
|
Teleports to a Home (Default: home) |
/homes |
|
Lists all your Homes |
| Back: |
|
|
/back |
|
Teleports to the last location before using a Home, Warp, or dying |
| RTP: |
|
|
/rtp |
|
Teleports to a random location within a certain radius of the world spawn (In your current dimension) |
| Portals: |
|
|
/setportal <name> from |
✓ / ✗ |
Sets the "from" corner of the Portal from the full block that is currently looked at |
/setportal <name> to |
✓ / ✗ |
Sets the "to" corner of the Portal from the full block that is currently looked at |
/setportal <name> target |
✓ / ✗ |
Sets the "target" position at your current position |
/setportal <name> target "<domain/ip>:<port>" |
✓ |
Sets the "target" to another Minecraft server's URL (including the double quotes!) |
/delportal <name> |
✓ / ✗ |
Deletes a Portal |
/portals |
✓ / ✗ |
Lists all Portals |
| TPA: |
|
|
/tpa <player> |
|
Requests teleportation to <player> |
/tpahere <player> |
|
Requests <player> to teleport to you |
/tpahereall |
✓ |
Requests ALL players to teleport to you (Use with care on busy servers) |
/tpcancel |
|
Cancels your teleportation request |
/tpaccept [<player>] |
|
Accepts request from <player> (Default: Oldest request) |
/tpdeny [<player>] |
|
Denies request from <player> (Default: Oldest request) |
Please note:
- TPA functionality is disabled in singleplayer
/setspawn, /setwarp, /sethome and /setportal <name> target use your current location rounded to a block position and your current viewing angle to create the teleport point
/rtp searches in a radius that is configurable with the rtpRadius option (See section "Configuration" below)
- When
/rtp selects a never-visited region, multiple chunks can be created, which can influence server performance (Same as when users fly into new regions)
/setportal: See section "Portals" below
- When teleporting and the target position is not safe to teleport to, a search for a safe position in a 5x5x5 area around the target position is started
Configuration
On first run a config file is created (config/public-teleport/config.json) with these defaults:
| Field |
Default |
Range |
Description |
defaultLanguage |
"en_us" |
See section "Languages" below |
The default language used |
enableSpawn |
true |
true or false |
When true the /setspawn, /spawn commands are enabled |
enableWarps |
true |
true or false |
When true the /setwarp, /delwarp, /warp, /warps commands are enabled |
enableHomes |
true |
true or false |
When true the /sethome, /delhome, /home, /homes commands are enabled |
enableBack |
true |
true or false |
When true the /back command is enabled |
enablePortals |
true |
true or false |
When true the /setportal, /delportal, /portals commands are enabled and the Portals are open |
enableTpa |
true |
true or false |
When true the /tpa, /tpahere, /tpahereall, /tpcancel, /tpaccept, /tpdeny commands are enabled |
enableRtp |
true |
true or false |
When true the /rtp command is enabled |
maxHomes |
10 |
Minimum: 0 |
The maximum number of Homes a player can have (Set to 0 to disable limit) |
requestTimeout |
60 |
Minimum: 10 |
How long a teleport request stays active before it is removed (In seconds) |
rtpRadius |
5000 |
Minimum: 200 |
The maximum radius around the world spawn used by /rtp |
portalCommandsOnlyOp |
true |
true or false |
When true only OP can use the Portal commands (Portals themselves are always usable by anyone) |
To change these settings edit the config file and restart your server/client.
Portals
Portals are physical areas a user can walk into to be teleported to the associated target position in any dimension or to be redirected to another Minecraft server.
When a Portal is created (Saved) the air blocks in the portal area and the two corner blocks (from and to) are replaced with Purple Stained Glass Panes (Only if the Portal area is smaller than 1000 block³), other blocks are left untouched. The glass panes can be broken and replaced with any block that a user can walk into, e.g. Air, Water, Honey, Powdered Snow, Cobwebs, Fences, Trapdoors, Doors, Buttons, etc.
Portals can have any size; the number of particles emitted from it grows with the Portal volume up to a maximum of 5000 per second, so very large Portals have fewer particles per block.
Using /setportal:
- The command has three parts (
from, to, target); all three parts need to be set with the same name for the Portal to be saved
- Started Portals that are not saved yet are lost on server restart
- For normal players to create Portals (Using a Portal is always possible) the option
portalCommandsOnlyOp needs to be set to false (See section "Configuration" above)
- Setting the
target to a URL (Redirecting to another Minecraft server) is only allowed for OPs (No matter what portalCommandsOnlyOp is set to), this is a security measure
Languages
| Language |
Value (defaultLanguage config field) |
| English |
"en_us" |
| German |
"de_de" |
If you want to provide more translations, feel free to open an Issue on GitHub.
Multiplayer usage
Server-side: The Configuration defaultLanguage defines the language all messages are in. (Output on the console is always in English.)
Client-side: If the player has installed this mod on their client, defaultLanguage is overridden with the client's language setting.
Singleplayer usage
The Configuration defaultLanguage has no effect; the client's language setting is used.
Known things
Camels with saddles are arriving at the target position sitting down.
Installation
Requires Fabric API to be installed.
- Download the
.jar file that fits your Minecraft version and put it into the mods folder on your server/client
- (Re)Start your server/client
- If needed edit the configuration as described in the section "Configuration" above
* Bus model by TheJeroen
评论 0
登录后参与评分
还没有评论,来抢沙发吧