SpyNetherPortals
SpyNetherPortals 是一款用于 Paper 和 Purpur(1.21+)的维度链接与传送门路由插件。它作为 SpyCore 的扩展,用于在自定义世界和容器化世界之间链接下界与末地传送门,处理坐标转换,并实现跨维度通信。
功能
- 自动传送门路由:使用标准命名约定(
<world>、<world>_nether、<world>_the_end)和容器文件夹,链接主世界、下界和末地传送门。
- 8:1 坐标缩放:按照原版比例(水平方向 8:1)正确转换主世界与下界之间的坐标,确保返回传送门能正确对接。
- 按需唤醒世界:与 SpyCore 的休眠系统配合工作。如果目标下界或末地世界处于休眠或未加载状态,进入传送门时会安全地将其唤醒,然后再进行玩家传送。
- 链接维度聊天:虽然 SpyCore 默认隔离不同世界间的聊天和玩家列表(Tablist),但 SpyNetherPortals 会桥接链接维度中的玩家,使
survival 和 survival_nether 中的玩家可以互相聊天并在 Tab 列表中看到彼此。
- 竞技场与对局隔离:防止在临时小游戏实例中未经授权创建传送门或进行维度跳跃。
要求与安装
- 要求:
- Paper 或 Purpur 1.21+
- Java 21+
- SpyCore 1.1.0 或更高版本
- 安装:
- 将
spycore-1.1.0.jar 和 spynetherportals-1.0.5.jar 放入服务器的 plugins/ 目录中。
- 重启服务器。
世界链接原理
默认情况下,SpyNetherPortals 通过后缀检测对应的维度:
<world> → 主世界
<world>_nether → 下界
<world>_the_end → 末地
如果玩家在 world2 中进入下界传送门,插件会检查是否存在 world2_nether。如果目标世界处于休眠状态,SpyCore 会将其唤醒,计算缩放后的坐标,并生成或连接到现有的下界传送门。
相关插件
许可证
本项目采用 Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License (CC BY-NC-SA 4.0) 许可。
SpyNetherPortals
SpyNetherPortals is a dimension-linking and portal routing plugin for Paper and Purpur (1.21+). Designed as an extension for SpyCore, it links Nether and End portals between custom worlds and containerized worlds, handles coordinate translation, and enables cross-dimension communication.
Features
- Automatic Portal Routing: Links Overworld, Nether, and End portals across custom worlds using standard naming conventions (
<world>, <world>_nether, <world>_the_end) and container folders.
- 8:1 Coordinate Scaling: Correctly translates coordinates between the Overworld and Nether according to vanilla ratios (8:1 horizontal scale), ensuring return portals link up properly.
- On-Demand World Wakeup: Works with SpyCore's hibernation system. If a destination Nether or End world is sleeping or unloaded, entering a portal safely wakes it up before teleporting the player.
- Linked Dimension Chat: While SpyCore isolates chat and tablists between separate worlds by default, SpyNetherPortals bridges players across linked dimensions so players in
survival and survival_nether can talk to each other and see each other on tab.
- Arena & Match Isolation: Prevents unauthorized portal creation and dimension hopping in temporary minigame instances.
Requirements & Installation
- Requirements:
- Paper or Purpur 1.21+
- Java 21+
- SpyCore 1.1.0 or newer
- Installation:
- Put both
spycore-1.1.0.jar and spynetherportals-1.0.5.jar into your server's plugins/ directory.
- Restart the server.
How It Links Worlds
By default, SpyNetherPortals detects corresponding dimensions using suffixes:
<world> → Overworld
<world>_nether → Nether
<world>_the_end → The End
If a player steps into a Nether portal in world2, the plugin checks for world2_nether. If the target world is hibernating, SpyCore wakes it, calculates the scaled coordinates, and generates or connects to an existing Nether portal.
Sibling Plugins
- SpyCore: Multi-world management engine and VFS container system.
- SpyInventories: Multi-world inventory and player state separation.
License
This project is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License (CC BY-NC-SA 4.0).
评论 0
登录后参与评分
还没有评论,来抢沙发吧