Nethrar
无限制的末地/多世界传送门,支持乘坐和无人乘坐的矿车与船只,支持多世界,并为服务器管理员提供多种配置选项。
版本:v2.3.1 (Dev v3.0-alpha1)
概述
Nethrar 是一款旨在追求简洁易用的末地传送门插件。传送门的运作方式类似于单人游戏(SSP)中的传送门,但你掌控着它们。无需任何前置要求,只需将其放入即可获得本质上与 SSP 相同的传送门功能,但具备更智能的定位与链接机制。你还可以对 Nethrar 的几乎各个部分进行配置,甚至添加多个世界或更改哪些世界相互链接。
特性
- 即插即用:默认设置可为大多数服务器提供完整的基础类 SSP 功能。只需将 .jar 文件放入你的 plugins 目录即可。Nethrar 现在应能自动推断大部分参数,但若有任何不确定之处,请检查生成的 worlds.yml 文件。
- 完全的多世界支持。无论你想要何种任意世界配置,现在都可以实现。
- 传送门会“记住”其目的地,因此可以实现世界循环。例如,如果我设置从世界 A 的传送门通往世界 B,世界 B 中的传送门通往世界 C,最后世界 C 中的传送门通往世界 A,那么如果我在世界 A 建造一个通往世界 B 的传送门,然后再次穿过它返回,会发生什么?我会回到世界 A,而不是世界 C。这种“记忆”会在服务器正常关机时得以保留。
- 穿过传送门时,朝向、方向以及适用情况下的速度都会被保留,从而为玩家提供最平滑的过渡体验。
载有玩家的矿车可无缝运行。矿车轨道应在传送门两侧同一高度上通向并离开传送门,以便矿车正常工作。
- 矿车现在可以无人乘坐通过传送门!动力矿车不受支持,但空矿车和储物矿车均可在无人辅助的情况下进出。建议配合区块加载功能以获得最佳效果。
- 船只也可以驾驶穿过传送门!如果你正在两个水域世界之间,或者一个水域世界和一个普通世界之间建立链接,你现在可以在两者之间划船通行。
- 区块常驻加载:对于磁盘 IO 受限或性能较低的服务器来说,传送可能会让所有在线玩家感到沮丧。Nethrar 可配置为在传送门周围半径内保持区块加载,虽然会增加内存占用,但能减少因穿过传送门而产生的卡顿。
- 自定义世界生成器支持。
- 世界方块:每个世界都可以分配一种“世界方块”,如羊毛、金块或石头。如果你在传送门顶部两个角使用了特定世界的方块来构建传送门,则该传送门将链接到该特定世界。这让你可以创建永久性的“特殊”传送门,前往普通传送门无法到达的地方。
- 它能正常运行。
可配置设置
- 是否启用权限控制。
- 是否重定向重生位置。
- 在传送门周围保留加载的区块数量。
- 是否允许无人驾驶的车辆。
- 输出多少调试日志(即使在最详细的设置下,目前输出的内容也非常少,这主要是为了帮助我进行调试)。
- 各个世界的相对比例。
- 哪些世界会被链接在一起,以及以何种方式链接。
重要提示:如果您打算使用 Nethrar,请关闭默认的末地功能。如果不这样做,可能会导致随机的、不可预测的双重传送、传送循环或更糟糕的情况。在 server.properties 中设置 "allow-nether=false",或者将其添加到文件末尾。这不会删除您现有的末地,只是会防止您在传送门附近停留过长时间时被传送到末地。
下载
Nethrar (.jar, config.yml, worlds.yml) (.zip, .tar.gz)
其他下载也可直接从文件部分获取。
开发版本:()
源代码 (github) (LGPL 许可证)
配置 / 安装,适用于大多数人
下载 Nethrar.jar。将其放入您的 plugins/ 目录中。对于大多数人来说,这就足够了。遇到问题?请查看下方标记为“请先阅读”的帮助部分。
配置 / 安装,适用于少数人
如果您遇到世界不符合预期情况的问题,或者希望获得更强的自定义能力,请按以下步骤操作。插件会在 plugins/ 目录下的 "Nethrar" 目录中生成一个 config.yml 文件。请在 config.yml 中为您的服务器设置以下参数。此外,编辑 worlds.yml 以描述您想要的服务器世界设置。根据需要分配相关的 Permissions 节点。
config.yml
# 设置为 true 以使用 Permissions,否则所有人都拥有所有权限。
usePermissions: false
# 设置为 false 以使用内置的原版重生行为。
listen:
respawn: true
# 如果任何人在服务器上导致全服延迟,请将此值设置为大于 0 的数字
# 传送。
forceLoadRadius: 0
# 设置为 true 以允许矿车/船在没有玩家乘客的情况下穿过传送门。
# TrainCarts 用户应将其设置为 'true',以便正确传输。
riderlessVehicles: false
# 设置为 1 或 2 以增加 Nethrar 将
# 显示的控制台消息数量。
debugLevel: 0
worlds.yml
世界:
环境: normal
目的地: world_nether
缩放比例: 8
world_nether:
环境类型: nether
目的地: world
缩放比例: 1
和平模式: false
重生至: world
# 在此添加更多世界,或根据需要编辑上述内容。
# 例如,若要创建一个普通 -> 下界 -> 天空之地 -> 普通的循环,
# 请执行以下操作:
# world:
# 环境:普通
# 目的地:下界世界
# scale: 8
# worldBlock: 57
# ^ 在四角使用钻石块建造的传送门将链接到 'world'。
# world_nether:
# environment: nether
# destination: world_skylands
# scale: 1
# peaceful: false
# worldBlock: 42
# ^ 在四角使用铁块建造的传送门将链接到 'world_nether'
# world_end:
# environment: normal
# destination: world
# worldGenerator:
# name: SkylandsPlus
# args: if there were any args to pass to your world generator, they would go here
# scale: 8
# worldBlock: 41
# ^ 在四角使用金块建造的传送门将链接到 'world_skylands'
请注意,要创建 SkylandsPlus 世界,你首先需要安装 SkylandsPlus 模组,你可以从 这里 获取。
新增权限节点
# 允许使用 Nethrar 传送门。
nethrar.use
# 允许使用 Nethrar 传送功能。
nethrar.tp
新增命令
# 将调用该命令的玩家传送至目标世界。
# 在目标位置玩家脚下放置一块玻璃方块。
/nethrar tp 世界名称
帮助(请先阅读此部分)
非 Bug 说明
- “我使用了 MinecartMania,穿过传送门后没有保持惯性!”MinecartMania 中的默认“矿车停止”方块是黑曜石。你可以用红石激活传送门两侧的黑曜石块,或者将停止方块更改为其他方块。
- 世界之间的转换可能会有些卡顿。我正在努力缓解这一问题,Bukkit 开发者和社区也在让传送体验变得更好,但我们已经尽力了,目前没有其他已知方法可以进一步改善。抱歉。
- “救命!我在世界间传送时有时会坠落甚至死亡!”我能说的最好的建议是:确保你运行的是最新版本的 CraftBukkit。这是由延迟引起的问题,但我认为除了已经尝试过的措施外,我没有其他办法解决。
- “为什么我没有在我的床处重生?”较新版本的 CB 应该能修复这个问题,Nethrar 稍后也将支持包括重生重定向在内的此功能。
- “救命!我总是重生在默认世界。”除非你使用 Nethrar 的重生重定向功能,让在一个世界中死亡的玩家在同一个世界重生,否则这正是 Bukkit 开发者希望它工作的样子。
已知问题
- CB 近期版本新增问题 你可能会遇到随机的传送“循环”,即当你踏入传送门后,离开时会突然被重新传送,或在两个地点之间快速来回传送。设置 "allow-nether=false" 似乎可以防止此问题。这是 Notch 等人开发的原版下界或新版客户端(或两者兼有)存在的问题。不幸的是,这也会导致 CB 发送一些虚假的移动事件,而 Nethrar 与这些事件的兼容性不佳。
- 在 CB 较新版本(860+)中,世界间转换时区块有时(但较少见)可能无法加载,只有在重新登录后才会加载。发生这种情况时,传送门也可能停止工作。在 config.yml 中将 "forceLoadRadius" 设置为大于 0 的值(有报告称 4 通常有效,我建议设置在 2 到 4 之间)。
- 乘坐矿车通过传送门时,摄像机方向不会保留。我怀疑当将玩家放入矿车时,服务器存在更深层的问题。
潜在的未来开发
- 预先生成或加载“已知需要”的下界区块。
- 允许载有任何乘客的矿车在世界间传送。最好在强制加载的区块上启用以在没有玩家在场时进行物理运算。
- 启用 *任何* 实体的传送——动物、怪物、移动设备等。
- 按世界划分的传送权限(例如,如果玩家拥有某世界的权限,则可以传送到该世界的传送门)。
- 自动为新的普通世界链接/生成下界,作为选项。
- 传送延迟。显然与载具不兼容。
关于未来开发的一点说明:这首先是一个副项目。开发主要受我和我的朋友在我们个人服务器上的需求驱动,未来的开发也将很大程度上由此决定。如果公众和用户有足够的需求,我可以实现其他功能,但我没有义务或被强迫去这样做。仅供参考。
技术细节
使用了一种较为保守的启发式算法,将小世界(通常是下界)中的传送门与大世界中的传送门连接起来,以避免传送门在大世界中泛滥。此外,传送门永远不会摧毁已存在的传送门;它们只会链接到那个传送门。
踏入一个世界的传送门时,会首先在目标世界中寻找要链接的传送门,如果找不到则构建一个新的。简而言之,这个搜索过程是:“目标世界中是否存在一个传送门,如果新创建并踏入其中,会与此世界中的此传送门相连?”如果是,则链接到该传送门,否则构建一个新的。是什么决定了一个世界中的传送门是否与目标世界中的另一个传送门相连?本质上,如果第一个世界传送门的假设性“完美位置”对应物在目标世界中会与已存在的传送门冲突/相交,那么选择已存在的传送门作为目的地。请注意,这种整体策略是为了防止在非必要情况下创建传送门,但这可能会使在近距离生成独特且唯一的传送门对变得困难。如果你真的想知道这个名字的来源,你可以去问,但它其实并不重要。
更新日志
- 版本 2.3.1
- 支持 1.2.4-R1.0。
- 除了更新以移除依赖项外,没有其他重大更改。
- 版本 2.3
- 支持 1.1-R3 API。
- 添加了自定义世界生成器的支持。环境仍然是必需的,添加键值 worldGenerator.name 以指定世界生成器插件,worldGenerator.args 用于生成器的附加参数。
- 版本 2.2.1
- 版本 2.2
- 1.0.1-R1 更新。支持通往末地的传送门。如果传送门熄灭,不能保证能重新点燃!
- 版本 2.1
- 实现了世界方块。世界可以有一个可选的“worldBlock”属性,这是一个整数,定义该世界的“世界方块”的方块 ID。任何在顶部两个角使用该方块的传送门将链接到该世界。
- 更新为使用 Bukkit 内置权限。你必须使用兼容的权限插件才能使用此插件。阅读 获取更多信息。
- 仍然使用同步线程进行传送。
- 版本 2.0
- 添加了更简单的即插即用安装代码和支持。
- 添加了真正的多世界支持。参见 worlds.yml 查看语法和示例。
- 添加了每个世界的自定义目标世界。
- 添加了重生时的每个世界自定义目标世界。
- 添加了命令 "/nethrar tp world";作为服务器管理员使用它可以在世界之间穿梭,以便为人们设置传送门。
- 添加了传送门目的地持久化,以帮助处理更复杂的世界设置。
- 版本 1.5.1
- 修复了乘坐矿车时的传送问题,确保所有操作都在一个线程中完成,而不是一半在线程中一半同步执行(成为另一个世界中载具的乘客是不允许的,对吧?)。
- 版本 1.5
- 修复了因“移动过快”导致的断开连接问题。不幸的副作用是:一旦你踏入传送门,实际发生传送前会有轻微的延迟。这取决于服务器当时的负载情况。这需要等待 Bukkit 团队修复相关的断开检查机制。
- 无人矿车传送!隐藏的地下世界逻辑,长距离无需辅助的存储矿车传送,可能性无穷!据说与 Evercart 配合效果极佳。
- 船只!现在你可以启用疯狂的多世界水上过山车了。测试不如预期充分,买家请谨慎...
- 进行了各种重构,为 Nethrar v2.0 做准备。
更多更新日志请参阅 Changelog 页面。
Nethrar
Unrestrictive Nether / multiworld portals, with ridden and riderless minecart and boat support, multiworld, and many options for the power server admin.
Version: v2.3.1 (Dev v3.0-alpha1)
General
Nethrar is a Nether portal plugin that aims for simplicity and easy usage. Portals behave like SSP portals, except that you control them. There are no requirements to start. Just drop it in and you get portals essentially identical to SSP, but with smarter placement and linking. You can also configure practically any part of Nethrar, even adding multiple worlds or changing what worlds are linked together.
Features
- Drop-and-go: defaults provide full, basic SSP-like functionality for most servers. Just drop the .jar file into your plugins directory. Nethrar should now be able to guess most parameters, but if there is any doubt, check the generated worlds.yml file.
- Total multiworld support. Whatever arbitrary world configurations you wanted, now you can have them.
- Portals 'remember' their destination, so world loops are possible. For example, if I have it set up that portals from world A go to world B, and portals in world B go to world C, and then finally portals in C go to A, what would happen if I build a portal in A, which leads to B, and then step back through it? I will go back to A, not to C. This 'memory' is preserved with clean server shutdowns.
- Facing, orientation, and, when applicable, velocity, are preserved going through the portal, for the smoothest transition possible for players.
Minecarts carrying players function seamlessly. Minecart tracks should lead to and from the portal on both sides, on the same elevation, for minecarts to work properly.
- Minecarts can now go through portals riderless! Powered minecarts are not supported, but empty minecarts and storage carts both go in and out unassisted. For best results, use with the force-chunk-loading feature.
- Boats can be driven through portals too! If you are linking between two water worlds, or a water and normal world, you can now paddle through between the two.
- Chunk keep-alive: For servers strapped on disk IO, or lower-performance servers, teleporting can be a real bummer for everyone on the server. Nethrar can be configured to keep chunks loaded in a radius around portals, increasing RAM usage, but decreasing the amount of resulting lag from teleporting through portals.
- Custom world generator support.
- World blocks: Each world can have a 'world block' assigned to it, like wool or a gold block or stone. If you create a portal with a particular world's world blocks in the top two corners, then that portal will link to that particular world. This lets you make permanent 'special' portals that go places regular ones won't.
- It works.
Configurable settings
- whether to use Permissions or not.
- whether to redirect respawns or not.
- how many chunks around a portal to keep loaded.
- whether to allow riderless vehicles.
- how much debug logging to print (currently there is very little even at the most verbose setting, this is more for helping me with debugging).
- relative scale of each world.
- what worlds get linked together, and in what manner.
Important Note: You should turn off the default Nether functionality if you are going to use Nethrar. Failing to do so can cause random and unpredictable double teleports, teleport loops, or worse. Set "allow-nether=false" in server.properties, or add it at the end. This will not delete your existing Nether, it will just prevent the portals from teleporting you if you stand too close for too long.
Downloads
Nethrar (.jar, config.yml, worlds.yml) (.zip, .tar.gz)
Other downloads also available direct from the files section.
Dev build: ()
Source (github) (LGPL licensed)
Configuration / Installation, most people
Download Nethrar.jar. Put it in your plugins/ directory. For most people, this is enough. Have problems? Check out the Help section below labeled "read me first".
Configuration / Installation, fewer people
If you had trouble with worlds not being what you expect, or if you want more power, then do the following. The plugin will put a config.yml inside a directory called "Nethrar" in the plugins/ directory. Set the following parameters in config.yml for your particular server. Also, edit worlds.yml to describe the world setup YOU want for your server. Assign the relevant Permissions nodes as you see fit.
config.yml
# Set to true to use Permissions, otherwise everyone gets all permissions.
usePermissions: false
# Set to false to use builtin vanilla respawning behavior.
listen:
respawn: true
# Set to some number > 0 if you experience server-wide lag when anyone
# teleports.
forceLoadRadius: 0
# Set to true to allow minecarts / boats to pass through a portal without
# a Player passenger. TrainCarts users should set this to 'true' to allow
# TrainCarts to teleport correctly.
riderlessVehicles: false
# Set to 1 or 2 to increase the amount of console messages Nethrar will
# show.
debugLevel: 0
worlds.yml
world:
environment: normal
destination: world_nether
scale: 8
world_nether:
environment: nether
destination: world
scale: 1
peaceful: false
respawnTo: world
# Add more worlds here, or edit the ones above as you see fit.
# For example, to make a loop of normal -> Nether -> skylands -> normal,
# do the following:
# world:
# environment: normal
# destination: world_nether
# scale: 8
# worldBlock: 57
# ^ Any portal made with diamond blocks in the corners will link to 'world'.
# world_nether:
# environment: nether
# destination: world_skylands
# scale: 1
# peaceful: false
# worldBlock: 42
# ^ Any portal made with iron blocks in the corners will link to 'world_nether'
# world_end:
# environment: normal
# destination: world
# worldGenerator:
# name: SkylandsPlus
# args: if there were any args to pass to your world generator, they would go here
# scale: 8
# worldBlock: 41
# ^ Any portal made with gold blocks in the corners will link to the 'world_skylands'
Note that to make a SkylandsPlus world, you'll first need the SkylandsPlus mod, which you can get here.
New Permissions nodes
# Allows usage of Nethrar portals.
nethrar.use
# Allows usage of Nethrar teleportation.
nethrar.tp
New Commands
# Teleports the invoking player to the destination world.
# Places a single block of glass at the destination under the feet.
/nethrar tp worldname
Help (read this first)
Not issues
- "I'm using MinecartMania and when I go through a portal I don't keep moving!" Obsidian is the default "minecart stopper" block in MinecartMania. Either power the obsidian block on both sides of the portal with redstone, or change the stopper block to be something other than obsidian.
- Transitioning between worlds can be a little laggy. I am trying to mitigate this, the Bukkit devs and community are making great progress making teleports suck less, but there is nothing we know of that we haven't done to make things better. Sorry.
- "Help I fall and sometimes die when I teleport between worlds!" Best thing I can say is: make sure you're running an up-to-date build of CraftBukkit, and it's lag-related, but it's nothing I believe I can solve any more than I have already tried.
- "Why didn't I respawn at my bed?" Recent versions of CB should fix this, and Nethrar will support this soon as well even with respawn redirects.
- "Help I am always respawning in the default world." Unless you are using Nethrar respawn redirects to keep people who die in one world to respawn in the same world, this is working as the Bukkit devs seem to want it to work.
Known issues
- New in recent versions of CB You can experience random teleportation 'loops' where if you step into a portal you'll get spontaneously re-teleported after stepping out, or teleported back and forth really fast. Setting "allow-nether=false" seems to prevent this. This is an issue with vanilla Nether by Notch et. al., or the new client, or both. Unfortunately, this also causes CB to send some false move events, and Nethrar doesn't play well with those.
- Chunks can sometimes, but less commonly with newer (860+) builds of CB, fail to load when transitioning between worlds, and only load on relog. Portals can also stop functioning when this occurs. Set "forceLoadRadius" in config.yml to something greater than 0 (reports say that 4 tends to work, I would recommend something between 2 and 4).
- Camera orientation is not preserved when travelling through a portal in a minecart. I suspect some deeper issue with the server when putting a player into a minecart.
Potential future development
- Pre-emptively generate or load chunks in the Nether which are 'known to be needed.'
- Allow minecarts with any passengers to teleport between worlds. Works best with force-loaded chunks to enable physics with no players present.
- Enable teleportation of *any* entity - animals, mobs, mobiles, etc.
- Per-world teleportation permission (eg. if player has permission for world, can take portal to that world).
- Auto-link / generate nether for new normal worlds, as option.
- Teleport delay. Obviously incompatible with vehicles.
A note about future development: This is a side project first and foremost. Development was primarily driven by my and my friend's needs on our personal server, and future development will be heavily influenced by that. If there is sufficient demand by the general public and users, then I can implement other features, but I am not compelled or otherwise forced to do so. Just FYI.
Nitty gritty details
A somewhat conservative heuristic is used to link portals in the smaller world to portals in the larger world (the Nether is the 'smaller' world, usually), to avoid portal spamming the larger world. Additionally, portals will never destroy a pre-existing portal; rather, they will simply link to that portal.
Stepping into a portal in one world will first try to find a portal to link to in the destination world, then build a new one if none is found. The tl;dr version of this search is "Is there a portal in the destination world, that, if newly created and stepped into, would link to this portal in this world?" If so, link to that portal, otherwise build a new one. What determines whether a portal in one world links to one in the destination world? Essentially, if the hypothetical 'perfectly positioned' counterpart, in the destination world, to the first world's portal would conflict / intersect with an existing portal in the destination world, then the already-present portal is chosen as the destination. Note that this overall strategy is to prevent creating portals unless absolutely necessary, but can make generating distinct unique portal pairs in close proximity difficult. If you really want to know what the name comes from, you can ask, but it's really not important.
Changelog
- Version 2.3.1
- 1.2.4-R1.0 support.
- No major changes besides updating to remove dep
- Version 2.3
- 1.1-R3 API support.
- Added support for custom world generators. Environment is still required, add key values worldGenerator.name to specify a world generator plugin, worldGenerator.args for additional args for the generator.
- Version 2.2.1
- Version 2.2
- 1.0.1-R1 update. Supporting portals to The End. If the portal gets extinguished, no guarantees it'll be possible to re-light!
- Version 2.1
- Implemented world blocks. World can have an optional "worldBlock" property, an integer, defining a block ID for that world's "worldBlock." Any portal made with that block in the top two corners will link to that world.
- Updated to use Bukkit builtin permissions. You must use a compatible permissions plugin to use this. Read for more information.
- Still uses sync threads to do teleportation.
- Version 2.0
- Added easier drop-and-go installation code and support.
- Added true multiworld support. See worlds.yml for syntax and examples.
- Added per-world custom destination world.
- Added per-world custom destination world for respawns.
- Added command "/nethrar tp world"; Use it as a server admin to get between worlds to set up portals for people.
- Added portal destination persistence to help with more complicated world setups.
- Version 1.5.1
- Fixed teleporting when riding a minecart so that everything happens in a thread, instead of half in a thread and half synchronously (it's not okay to be a passenger of a vehicle in another world, eh?).
- Version 1.5
- Fixed "moved too fast" issue causing disconnects. Unfortunate side effect: teleports exhibit just a wee bit of lag before actually occuring once you hit a portal. Depends on the server's load at the time. This will have to wait for if/when the Bukkit team fixes the checks around that disconnect.
- Riderless minecart teleportation! Hidden Netherworld logic, long-distance unassisted storage cart teleportation, possibilities abound! Supposedly will work great with Evercart.
- Boats! Now you can enable your crazy multiworld water coaster. Not tested as thoroughly as it should have been, buyer beware...
- Various refactoring to help prepare for Nethrar v2.0.
More changelog available at the Changelog page.
评论 0
登录后参与评分
还没有评论,来抢沙发吧