Happy Ghast Platforms
使用你信赖的 Happy Ghast,从任意位置在半空中开始建造。建造天空基地从未如此简单。
Happy Ghast Platforms 是一个适用于 Minecraft 1.21.6 至 26.2 版本的 Paper 插件,允许你直接在 Happy Ghast 上进行建造。
已在 Minecraft 1.21.6 和 26.2 的 Paper 环境下测试通过。请通过 插件的 GitHub 仓库 上的 问题追踪器 报告我的“意大利面条式代码”存在的问题。
使用方法
- 站在已装备鞍具的 Happy Ghast 上。
- 等待其稳定下来。
- 在上面建造!
更具体地说:给 Happy Ghast 装上鞍具,将其驾驶(或飞行?)到某个地方,然后下马。当你站在上面时,原版功能会将其锁定在原地。此时,你可以右键点击以放置方块,直接放置在 Happy Ghast 的顶部及其任何侧面。当然,你也可以随时走开!在你建造期间,这只 Ghast 会耐心地等待你回来。
在 Happy Ghast 上建造的建筑物不会跟随你的 Happy Ghast 移动。
但这难道不是违背了初衷吗?
不!这是为了提供一个可移动的临时平台,用于开始你的天空建筑。现在你可以在没有柱子的情况下建造非常高的结构。
或者,就我个人的使用场景而言,让 Skyblock(空岛生存)变得更加有趣:需要冰块?将你的 Happy Ghast 直接飞到山脉(或它们曾经所在的地方)!你现在可以建造新的 Skyblock 岛屿了!为你的 Happy Ghasts 建造天空港口!不再有桥梁,不再有柱子,不再有碍观瞻的结构。
安装
- 从 Github Releases 或 Modrinth(即将上线:tm:)下载此插件。
- 将
.jar 文件放入服务器的 plugins/ 目录中。
- 启动服务器。
- 完成!
配置
这里没有太多可调节的参数,仅包含一些关于何时允许建造的检测逻辑,以及为希望获得更沉浸体验的服务器管理员提供禁用操作栏反馈的选项。
# 插件在允许对 Happy Ghast 进行建造前施加的检查
build-restrictions:
# Happy Ghast 稳定时的旋转容差(以度为单位)
ghast-direction-tolerance: 0.0
# 玩家距离 Ghast 顶面的水平容差,用于判断玩家是否站在 Ghast 上(以方块为单位)
player-horizontal-tolerance: 0.3
player-vertical-tolerance: 0.5
# 在建造尝试失败时,于操作栏显示提示
action-bar-hints: true
你还可以使用权限节点 happyghastplatforms.build 来限制玩家对 Happy Ghasts 进行建造。默认情况下,此权限允许任何人建造。
命令用法
本插件不使用任何命令。
如何为此插件提交功能建议?
如果你为其编写了代码,只要我觉得它不会使本插件的范围膨胀,我会很乐意接受拉取请求。请确保你使用了 拉取请求模板。
向此仓库提交贡献即表示你同意,你的贡献将根据与 LICENSE 文件中发布的相同许可证进行授权。
许可证
除非另有说明,否则此仓库中的所有源代码均根据 GNU 通用公共许可证 v3.0 (SPDX: LGPL-3.0) 授权。请参阅 LICENSE 文件,了解你在 LGPL-3.0 下享有的条款。
Happy Ghast Platforms
Start building mid-air from anywhere with your trusty Happy Ghast. Building sky bases has never been easier.
Happy Ghast Platforms is a Paper plugin for Minecraft 1.21.6 to 26.2 that allows you to build directly on your Happy Ghast.
Tested to work for Paper on Minecraft 1.21.6 and 26.2. Report issues with my spaghetti code through the issue tracker on the plugin's GitHub repository.
How to use
- Stand on a harnessed Happy Ghast.
- Wait till it settles.
- Build on it!
Or more specifically: put a harness on a Happy Ghast, drive (fly?) it somewhere, and dismount. While you are standing on it, vanilla functionality should lock it into place. When that happens you can now shift-click to place blocks right on your Happy Ghast's top and any of its side faces. Feel free to walk off the ghast, too! While you're building, the ghast will patiently wait for you to return.
Structures built on the Happy Ghast do NOT move with your Happy Ghast.
But doesn't that defeat the point?
No! This is for a mobile, temporary platform for starting your sky builds. Now you can build really high up without pillars.
Or, for my use case, making Skyblock a lot more fun: need ice? Fly your Happy Ghast right to the mountains (or where they used to be)! You can build new Skyblock islands now! Sky ports for your Happy Ghasts! No more bridges, no more pillars, no more eyesores.
Installation
- Download this plugin from Github releases or Modrinth (soon:tm:).
- Place the
.jar in your server's plugins/ directory.
- Start the server.
- Done!
Configuration
Not many knobs to turn here, just some detection logic for when building should be allowed, as well as disabling the action bar feedback for server owners wanting something more immersive.
# Checks imposed by the plugin before a Happy Ghast can be built on
build-restrictions:
# Tolerance for ghast's rotation as it settles (in degrees)
ghast-direction-tolerance: 0.0
# Tolerance for a player's distance from the Ghast's top surface to
# determine if they are standing on the Ghast (in blocks)
player-horizontal-tolerance: 0.3
player-vertical-tolerance: 0.5
# Show a hint on the action bar on a failed build attempt
action-bar-hints: true
You can also restrict players from building against Happy Ghasts with happyghastplatforms.build. This permission allows anyone to build by default.
Command usage
This plugin does not use any commands.
How do I submit features for this plugin?
If you wrote the code for it, I'll happily accept a pull request if I feel like it doesn't bloat the scope of this plugin. Ensure that you use the pull request template.
By submitting a contribution to this repository, you agree that your contribution is licensed under the same license as this repository, as published in the LICENSE file.
License
Unless otherwise noted, all source code in this repository is licensed under the GNU Lesser General Public License v3.0 (SPDX: LGPL-3.0). Please view the LICENSE file for the terms you are afforded under the LGPL-3.0.
评论 0
登录后参与评分
还没有评论,来抢沙发吧