TC-Portals
Java 版本: 17 或更高
Minecraft 版本: 1.17.1 或更高
TC-Portals 是一款适用于使用 SpigotMC、PaperMC 或其衍生项目的 Minecraft 服务器的插件。
它是 TrainCarts 插件的附加组件,增加了 ActionSigns(动作指示牌)功能,支持在 BungeeCord 网络中跨服务器传送列车。
该插件非常轻量级,因为数据库查询和网络连接在可能的情况下均以异步方式运行。
本插件是为 CraftTogetherMC Minecraft 服务器开发的,另请参阅:TC-Destinations!
同时,也非常感谢 Cloud 和 Adventure 背后的贡献者们!
ActionSigns(动作指示牌)
这些指示牌的行为与普通 TrainCarts 指示牌类似。
你可以使用红石对其启用/禁用,修改触发方向等。
出口指示牌的行为类似于 出生点指示牌,因此你必须像设置出生点指示牌一样为其指定方向。
出生方向可以通过指定触发方向来设定。
例如:[train:left] 或 [train:right]。如果未设置,列车将根据哪一侧被红石供电来决定生成方向。
如果你使用 [cart] 代替 [train],列车将在出口处按车厢逐个生成。
指示牌类型
|
|
|
双向传送门
此指示牌同时代表传送门的入口和出口。 具有相同通道名称的一对此类指示牌可以从任一侧通过。 另一侧的指示牌充当传送门出口。 |
|
单向传送门 (入口)
此指示牌代表传送门入口。 此类传送门需要一个具有相同通道名称的 portal-out 指示牌。 可以为一个通道创建任意数量的 portal-in 指示牌。 |
|
单向传送门 (出口)
此指示牌代表传送门出口。 此类指示牌在每个通道名称下只能存在一个。 |
标志(Flags)
你可以在传送门指示牌的第四行使用一些标志来控制是否运输物品和生物。
你可以在入口、出口或两者兼用这些标志。
!mobs 表示生物会被销毁
!items 表示物品会被销毁
-mobs 表示生物会被弹出
-items 表示物品会掉落
跨服务器寻路(BungeeCord)
经过少量额外配置,即可到达其他服务器上的目的地。
例如,如果你想从 server1 前往位于 server2 的某个目的地,
你需要在 server1 上创建一个 目的地 指向传送门,该传送门将连接到 server2。
让我们也将这个目的地命名为 server2。
现在,你为列车创建一个 路线,其中首先包含目的地:server2,然后是之后你想要到达的最终目的地。
就是这样!
如果你使用 TC-Destinations 来管理你的目的地,它将自动为你处理路由部分。
使用的库
TC-Portals
Java-Version: 17 or above
Minecraft-Version: 1.17.1 or above
TC-Portals is a plugin for Minecraft servers using SpigotMC, PaperMC or forks of these projects.
It serves as an add-on for the TrainCarts plugin which adds ActionSigns, supporting cross-server teleporting of trains in a BungeeCord network.
It is very lightweight as database queries and network connections run asynchronously where possible.
This plugin was developed for the CraftTogetherMC Minecraft server, see also: TC-Destinations!
A big thank you and lots of love go out to TeamBergerhealer
Also, a lot of appreciation goes to the people behind Cloud and Adventure!
ActionSigns
The signs behave like ordinary traincarts signs.
You can de/activate them with redstone, alter trigger-directions, etc.
A portal exit behaves like a spawn sign, so you must set a direction for it like you do with the spawn sign.
The spawn direction can be set by specifying trigger directions.
For example: [train:left] or [train:right]. If none is set, the train is spawned based on what side is powered by redstone.
If you use [cart] instead of [train], a train will be spawned at the exit cart by cart.
Signs
|
|
|
Bidirectional Portal
This sign represents a portal entrance and exit at the same time. A pair of these signs that have the same channel name can be passed from either side. The other sign acts as a portal exit. |
|
Directional Portal (Entrance)
This sign represents a portal entrance. A portal of this type requires a portal-out-sign that has the same channel name. Any number of portal-in-signs can be created for one channel. |
|
Directional Portal (Exit)
This sign represents a portal exit. Signs of this type can only exist once per channel name. |
Flags
There are some flags you can use on the fourth line of a portal-sign to control whether items and mobs are transported.
You can use them at the entrance as well as at the exit or both.
!mobs means mobs are killed
!items means items are killed
-mobs means mobs are ejected
-items means items are dropped
Pathfinding across servers (BungeeCord)
With a little extra work, it is possible to reach destinations on another server.
For example, if you want to drive from server1 to a destination on server2,
you need to create a destination on server1 that leads to the portal, which leads to server2.
Let's name it server2 as well.
Now you create a route for the train, which first contain the destination: server2 and then afterwards,
the destination you want to reach.
Thats it!
If you use TC-Destinations to manage your destinations, it will do the routing part for you.
Libraries used
评论 0
登录后参与评分
还没有评论,来抢沙发吧