Block Runner
广受欢迎的 Block Runner 模组 现已作为数据包推出!
它并非完全复刻,但保留了相同的核心机制:在路径方块上行走时给予玩家加速效果。
功能特性
- 在指定方块上为玩家提供加速效果
- 可选择将加速幅度与灵魂疾行附魔等级挂钩
- 通过游戏内聊天栏配置所有设置
- 轻松添加或移除加速列表中的方块
配置
请查看画廊以了解配置菜单的外观。
通过在聊天栏中输入以下命令来访问配置(你需要相应的权限):
/function block_runner:_settings
- “Boost”:应用于玩家的加速倍数。你可以选择从 1.2x 到 1.6x 的值。如果你希望获得更高的数值,欢迎在 GitHub 或 Discord 上提出建议。
- Reset:将所有设置恢复为默认值。
- Uninstall:移除所有存储的数据并停止数据包运行。这不会删除数据包本身。你仍需要手动从你的数据包文件夹中将其删除。如果误卸载,只需运行
/reload,一切即可恢复。
警告! 如果玩家在拥有加速效果时离开世界,且在他们离线期间数据包被卸载,他们将永久保留该加速效果!要手动移除它,请在聊天栏中输入:
/attribute [PLAYER_NAME_WITH_BOOST] minecraft:movement_speed modifier remove minecraft:block.runner
如何向加速列表中添加或移除方块
添加或移除方块
若要更改哪些方块能提供加速效果:
- 打开你的数据包文件夹并进入 Block Runner 数据包
- 导航至 data/block_runner/tags/block/
- 打开 boost.json 文件。
- 在 “values” 下方添加或移除你想要的方块 ID。如果你不熟悉编辑 JSON 文件或不知道 Minecraft 的方块 ID,可以使用 Misode JSON 生成器。操作非常简单:
- 点击 + 按钮添加方块(甚至还有搜索栏!!)
- 使用删除按钮移除方块。
- 完成列表后,复制生成的 JSON 内容,然后替换 “boost.json” 中的内容即可。
反馈
如果你发现了错误,请在 GitHub 或 Discord 上报告。
如果你有疑问或建议,欢迎在 GitHub 上提交 Issue,或在 Discord 服务器上联系我。
性能
Block Runner 设计为轻量级。它仅每 10 tick(0.5 秒)检查一次玩家,并仅执行应用加速效果所需的计算,从而对性能的影响极小。
Block Runner
The popular Block Runner Mod now as a Datapack!
Its not a 1:1 recreation, but it takes the same idea that walking on path blocks gives you a speed boost.
Features
- Gives Players a speed boost on selected blocks
- Optionally scales the boost with the Soul Speed enchantment level
- Configure everything through the in-game chat
- Easily add or remove blocks from the boost list
Configuration
Check the gallery to see what the configuration menu looks like.
Access the configuration by typing this command in chat (you will need permissions for this):
/function block_runner:_settings
- "Boost": The speed multiplier applied to the player. You can choose values from 1.2x to 1.6x. If you'd like higher values, feel free to suggest them on GitHub or Discord.
- Reset: Resets all settings to their default values.
- Uninstall: Removes all stored data and stops the datapack from running. This does not remove the datapack itself. You still need to delete it manually from your datapacks folder. If you uninstall it by accident, simply run /reload and everything will be restored.
Warning! If a player leaves the world while they still have the boost, and the pack gets uninstalled while they are offline, they will keep the boost forever! To remove it manually just type in chat:
/attribute [PLAYER_NAME_WITH_BOOST] minecraft:movement_speed modifier remove minecraft:block.runner
How to add or remove Blocks from boost list
Adding or Removing Blocks
To change which blocks grant a speed boost:
- Open your Datapacks Folder and open the Block Runner Datapack
- Navigate to data/block_runner/tags/block/
- Open the boost.json file.
- There under "values" add or remove the block IDs you want. If you're unfamiliar with editing JSON files or don't know Minecraft block IDs, you can use the Misode JSON Generator. Its easy from there:
- Click the + button to add blocks (there's even a search bar!!)
- Remove blocks using the delete button.
- After you finished your list just copy the generated json and then replace the contents of "boost.json" with it.
Feedback
If you find a bug, please report it on GitHub or Discord.
If you have questions or suggestions, feel free to open an issue on GitHub or contact me on the Discord Server.
Performance
Block Runner is designed to be lightweight. It only checks players every 10 ticks (0,5s) and performs only the calculations required to apply the speed boost, resulting in a very low performance impact.
评论 0
登录后参与评分
还没有评论,来抢沙发吧