按住行走
一个轻量级的 Fabric 客户端模组,用于更改 Minecraft 中的疾跑行为。
在默认情况下,Minecraft 要求你按住疾跑键才能疾跑(或使用切换疾跑)。Hold To Walk 改变了这一机制,将疾跑设为默认状态,并允许你在按住疾跑键时临时改为行走。
功能
- 当模组激活时,自动启用切换疾跑(Toggle Sprint)。
- 无需按住按键即可正常疾跑。
- 按住疾跑键可临时改为行走。
- 使用 Minecraft 内置的移动逻辑,而非直接修改玩家速度。
- 保留原版疾跑的行为逻辑,包括:
- 饥饿值消耗需求
- 碰撞检测
- 游泳时的疾跑
- 疾跑粒子效果
- 视野(FOV)变化
- 服务器端的疾跑处理
模式
Hold To Walk 提供三种操作模式:
兼容原版(Vanilla-Compatible)
默认模式。此模式在反转疾跑键行为的同时,保留了 Minecraft 正常的疾跑逻辑。
正常游戏流程:
按住 W → 疾跑
按住疾跑键时:
按住 W + 疾跑键 → 行走
松开疾跑键后:
按住 W → 再次恢复疾跑
此模式保留了原版的疾跑行为,推荐用于多人服务器。
禁用(Disabled)
禁用 Hold To Walk 的行为,恢复为 Minecraft 正常的疾跑控制方式。
响应式(Responsive)
Hold To Walk 的一种更即时响应的版本。
当按住疾跑键时,会立即阻止疾跑,使玩家无需等待 Minecraft 正常的疾跑状态检查即可开始行走。
按住 W → 疾跑
按下疾跑键 → 立即改为行走
松开疾跑键 → 再次恢复疾跑
响应式模式与原版的疾跑行为不同。由于它改变了疾跑输入的处理方式,部分竞技类服务器可能不允许使用该模式。
配置
模组通过 Mod Menu 提供了一个可选的配置界面。
设置项:
- 模式(Mode):
- 兼容原版(Vanilla-Compatible)
- 禁用(Disabled)
- 响应式(Responsive)
Mod Menu 是可选的。即使没有安装该模组,Hold To Walk 也能正常工作。
工作原理
Hold To Walk 改变的是对疾跑输入的解释方式,而不是直接修改玩家的移动速度。
在兼容原版模式下,模组利用 Minecraft 现有的疾跑系统,仅更改默认的疾跑状态。
在响应式模式下,模组还会在按住疾跑键时覆盖疾跑阻止行为,从而让行走能够立即开始。
依赖
- Minecraft Fabric
- Fabric Loader
- Fabric API
可选依赖:
兼容性
Hold To Walk 是一个客户端模组,无需安装在服务器上。
它应与大多数未重度修改 Minecraft 移动输入系统的模组兼容。
兼容原版模式旨在保持与多人服务器的兼容性。由于响应式模式的疾跑输入行为不同,某些竞技类服务器可能不接受该模式。
贡献
- 欢迎提交拉取请求(Pull Request)。对于重大更改,请先开启议题以讨论你想做出的修改。
- 如需报告错误,请在我的 Discord 频道中反馈:
https://discord.gg/aEGxqg8VbZ
提交贡献(拉取请求、补丁或其他形式)即表示你同意你的代码将以 Mozilla Public License 2.0 (MPL 2.0) 许可协议发布,并且你有权提交该内容(即这是你的原创工作或来自兼容来源的内容)。
Hold To Walk
A simple client-side Fabric mod that changes Minecraft's sprint behavior.
Normally, Minecraft requires you to hold the sprint key to sprint (or use Toggle Sprint). Hold To Walk changes this by making sprinting the default state and allowing you to temporarily walk by holding your sprint key.
Features
- Automatically enables Toggle Sprint while the mod is active.
- Sprint normally without holding a key.
- Hold your sprint key to temporarily walk.
- Uses Minecraft's built-in movement logic instead of modifying player speed.
- Keeps vanilla sprint behavior logic, including:
- Hunger requirements
- Collision checks
- Swimming sprint
- Sprint particles
- FOV changes
- Server sprint handling
Modes
Hold To Walk has three operating modes:
Vanilla-Compatible
The default mode. This keeps Minecraft's normal sprint logic while reversing the sprint key behavior.
Normal gameplay:
Hold W → Sprint
Hold Sprint Key:
Hold W + Sprint Key → Walk
Release Sprint Key:
Hold W → Sprint again
This mode preserves vanilla sprint behavior and is recommended for multiplayer servers.
Disabled
Disables Hold To Walk behavior and restores normal Minecraft sprint controls.
Responsive
A more immediate version of Hold To Walk.
When the sprint key is held, sprinting is prevented immediately, causing the player to start walking without waiting for Minecraft's normal sprint state checks.
Hold W → Sprint
Press Sprint Key → Immediately Walk
Release Sprint Key → Sprint again
Responsive mode differs from vanilla sprint behavior. Some competitive servers may not allow it because it changes how sprint input is handled.
Configuration
The mod includes an optional configuration screen through Mod Menu.
Settings:
- Mode:
- Vanilla-Compatible
- Disabled
- Responsive
Mod Menu is optional. The mod will function without it.
How It Works
Hold To Walk changes the way sprint input is interpreted instead of changing player movement speed.
In Vanilla-Compatible mode, the mod uses Minecraft's existing sprint system and only changes the default sprint state.
In Responsive mode, the mod additionally overrides sprint prevention behavior while the sprint key is held, allowing walking to begin instantly.
Requirements
- Minecraft Fabric
- Fabric Loader
- Fabric API
Optional:
- Mod Menu (for configuration)
Compatibility
Hold To Walk is a client-side mod and does not need to be installed on servers.
It should work with most mods that do not heavily modify Minecraft's movement input system.
Vanilla-Compatible mode is designed to maintain compatibility with multiplayer servers. Responsive mode may not be accepted on some competitive servers due to its different sprint input behavior.
Contributing
- Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
- For bug reporting, please report it in my discord:
https://discord.gg/aEGxqg8VbZ
By submitting a contribution (pull request, patch, or otherwise), you agree that your code will be licensed under the Mozilla Public License 2.0 (MPL 2.0) and that you have the right to submit it (i.e., it is your original work or from compatible sources).
评论 0
登录后参与评分
还没有评论,来抢沙发吧