跳到正文

Teleport Sign

作者:n3mmuss

The Teleport Sign Mod is a server-side mod for Minecraft that allows players to link two signs and teleport between them. It is designed for use on multiplayer servers and allows administrators to configure and manage teleport links.

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

Teleport Mod

The Teleport Mod is a server-side mod for Minecraft that allows players to link two signs and teleport between them. It is designed for use on multiplayer servers and allows administrators to configure and manage teleport links.

Features

  • Link two wooden signs using obsidian to create a teleport link.
  • Only administrators with a configurable permission level can configure or destroy links.
  • Players can use linked signs to teleport from one point to another.
  • /teleportmod reload command to reload configuration and language files without restarting the server.

Requirements

  • Minecraft 1.21 or later
  • Fabric API

Installation

  1. Place the mod’s .jar file in the mods folder of the Minecraft server.
  2. Start the server to generate configuration files.

Configuration

Once the server is started, configuration files will be generated in the config/teleportmod/ folder:

  • config.json: Configuration file where you can set the permission level required to create or destroy teleport links.
  • language.txt: Language file where you can customize the messages shown to players.

Configuring config.json

The config.json file includes a property for the administrator permission level:

{
  "permissionLevel": 4
}
  • permissionLevel: Specifies the minimum permission level required to create or destroy teleport links. The default permission level is 4 (administrator).

Configuring language.txt

The language.txt file allows you to customize the messages players see when using the mod. Here is an example of how it looks:

sign_a_selected=Sign A selected!
teleport_link_set=Teleport link set between A and B!
teleported_to=Teleported to
no_permission_to_destroy=You don't have permission to destroy this sign!
error_already_linked=Error: One of the signs is already linked!

You can edit the messages as you wish, maintaining the key=value structure.

How to Use the Mod

usage

  1. Create a Teleport Link:
  • Equip an obsidian block in the main hand.
  • Right-click on a wooden sign. This will select the first teleport point.
  • Right-click on a second wooden sign to link the two points.
  1. Teleport:
  • Once the link is created, any player can click on one of the signs to be teleported to the other.
  1. Remove a Teleport Link:
  • Administrators can destroy one of the signs to remove the link. Players without the required permission level cannot destroy linked signs.
  1. Reload Configuration:
  • Use the /teleportmod reload command to reload configuration and language files without restarting the server.

Commands

  • /teleportmod reload: Reload the configuration and language files.

Notes

  • Ensure players have the correct permission level to use the mod’s administrative features (configurable via config.json).
  • Remember to back up the teleport_links.json file to preserve created teleport links.

常见问题

Teleport Sign 支持哪些 Minecraft 版本?

Teleport Sign 支持 Minecraft Java 版 1.21–1.21.1,共 2 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

Teleport Sign 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。

评论

登录后评论和评分

n3mmuss 的其他作品

查看全部 →