JumpBoostBar
既然可以蓄力后直接飞起来,谁还需要锻炼腿部肌肉呢?这不算偷懒,这叫高效。
此模组/插件允许你通过潜行来蓄力跳跃,然后松开以执行超级跳跃!跳跃的高度取决于你的蓄力时间和当前的跳跃提升药水效果。
功能
- 可蓄力跳跃: 按住潜行键蓄力,松开进行跳跃。
- 跳跃提升集成: 你的跳跃提升等级越高,你能跳得越高。
- 视觉反馈: 蓄力进度显示在你的经验条上。
- 跨平台兼容: 适用于 Fabric(客户端)、NeoForge(客户端)和 Paper 服务器。
安装
Fabric & NeoForge(客户端)
- 下载适合你模组加载器(Fabric 或 NeoForge)的 JAR 文件。
- 将 JAR 文件放入你的
mods 文件夹中。
- 运行游戏。
Paper(服务端)
- 下载 Paper JAR 文件。
- 将 JAR 文件放入你的
plugins 文件夹中。
- 重启服务器。
配置(Paper)
Paper 插件可以在 plugins/JumpBoostBar/config.yml 文件中进行配置。
enabled: 启用或禁用插件。
bar: 用于跳跃提升条的条形图类型。有效选项为 xp 和 bossbar。
actionbar-message: 当跳跃提升条激活时,在动作栏中显示的消息。你可以使用 {blocks} 来显示玩家跳跃的方块数量。
面向开发者
本项目是开源的!欢迎在 GitHub 上贡献代码。
此架构带来的优势
- 在
common/src/main/java 中共享一套代码库
- 特定加载器的引导代码位于:
fabric/src/main/java
neoforge/src/main/java
paper/src/main/java
- 基于相同的共享逻辑,每个加载器都有独立的构建目标
- 在
gradle.properties 中提供版本控制旋钮,让你无需重写代码即可在 1.21.x 版本间切换
项目结构
.
|-- common/
| `-- src/main/java/gg/literal/jumpboostbar/common/
|-- fabric/
| |-- src/main/java/gg/literal/jumpboostbar/fabric/
| `-- src/main/resources/fabric.mod.json
|-- neoforge/
| |-- src/main/java/gg/literal/jumpboostbar/neoforge/
| `-- src/main/resources/META-INF/neoforge.mods.toml
|-- paper/
| |-- src/main/java/gg/literal/jumpboostbar/paper/
| `-- src/main/resources/paper-plugin.yml
|-- build.gradle
|-- gradle.properties
`-- settings.gradle
分组与坐标
- Group ID:
gg.literal
- 基础模组 ID:
jumpboostbar
配置位于 gradle.properties 中。
版本策略(1.21.x 范围)
编辑 gradle.properties 以调整目标补丁版本:
mc_version
fabric_api_version
neoforge_version
paper_api_version
然后构建每个加载器模块。
示例(从命令行覆盖而不编辑文件):
./gradlew :fabric:build -Pmc_version=1.21.6
注意:每个加载器生态系统都有其自身兼容的构件版本。请确保针对目标补丁版本的这四个属性保持对齐。
构建命令
./gradlew :fabric:build
./gradlew :neoforge:build
./gradlew :paper:build
运行开发服务器
Fabric 专用服务器运行配置:
./gradlew :fabric:runDedicatedServer
NeoForge 专用服务器运行配置:
./gradlew :neoforge:runServer
Paper 是一个插件目标;将构建好的 JAR 文件放入你的 Paper 服务器 plugins/ 文件夹中即可。
放置共享逻辑的位置
将游戏玩法/业务逻辑放在 common/src/main/java 中。仅在每个加载器模块内保留加载器适配器和事件连线。
这是防止为每个加载器/版本重新编写代码的关键部分。
JumpBoostBar
Because who needs to build leg muscles when you can just... charge up and fly? It's not lazy, it's efficient.
This mod/plugin allows you to charge a jump by sneaking, and then release to perform a super jump! The height of the jump is determined by how long you charge it and your current Jump Boost potion effect.
Features
- Chargeable Jumps: Hold sneak to charge, release to jump.
- Jump Boost Integration: The higher your Jump Boost level, the higher you can jump.
- Visual Feedback: The charge is displayed on your experience bar.
- Cross-Platform: Works on Fabric (client-side), NeoForge (client-side), and Paper servers.
Installation
Fabric & NeoForge (Client-Side)
- Download the appropriate JAR file for your mod loader (Fabric or NeoForge).
- Place the JAR file in your
mods folder.
- Run the game.
Paper (Server-Side)
- Download the Paper JAR file.
- Place the JAR file in your
plugins folder.
- Restart your server.
Configuration (Paper)
The Paper plugin can be configured in the plugins/JumpBoostBar/config.yml file.
enabled: Enable or disable the plugin.
bar: The type of bar to use for the jump boost bar. Valid options are xp and bossbar.
actionbar-message: The message to display in the action bar when the jump boost bar is active. You can use {blocks} to display the number of blocks the player has jumped.
For Developers
This project is open source! Feel free to contribute on GitHub.
What This Setup Gives You
- One shared codebase in
common/src/main/java
- Loader-specific bootstrap code in:
fabric/src/main/java
neoforge/src/main/java
paper/src/main/java
- Independent build targets per loader from the same shared logic
- Version knobs in
gradle.properties so you can move across 1.21.x without rewriting code
Project Layout
.
|-- common/
| `-- src/main/java/gg/literal/jumpboostbar/common/
|-- fabric/
| |-- src/main/java/gg/literal/jumpboostbar/fabric/
| `-- src/main/resources/fabric.mod.json
|-- neoforge/
| |-- src/main/java/gg/literal/jumpboostbar/neoforge/
| `-- src/main/resources/META-INF/neoforge.mods.toml
|-- paper/
| |-- src/main/java/gg/literal/jumpboostbar/paper/
| `-- src/main/resources/paper-plugin.yml
|-- build.gradle
|-- gradle.properties
`-- settings.gradle
Group And Coordinates
- Group ID:
gg.literal
- Base mod id:
jumpboostbar
Configured in gradle.properties.
Versioning Strategy (1.21.x Range)
Edit gradle.properties to shift target patch versions:
mc_version
fabric_api_version
neoforge_version
paper_api_version
Then build each loader module.
Example (override from command line without editing files):
./gradlew :fabric:build -Pmc_version=1.21.6
Note: each loader ecosystem has its own compatible artifact versions. Keep the 4 properties aligned per target patch.
Build Commands
./gradlew :fabric:build
./gradlew :neoforge:build
./gradlew :paper:build
Run Dev Servers
Fabric dedicated server run config:
./gradlew :fabric:runDedicatedServer
NeoForge dedicated server run config:
./gradlew :neoforge:runServer
Paper is a plugin target; drop the built jar into your Paper server plugins/ folder.
Where To Put Shared Logic
Put gameplay/business logic in common/src/main/java. Keep only loader adapters and event wiring inside each loader module.
This is the key part that prevents recoding for every loader/version.
评论 0
登录后参与评分
还没有评论,来抢沙发吧