ControlCommands
ControlCommands 是一款面向 Minecraft Fabric 的客户端模组,为原版玩家控制和按键绑定动作添加了命令支持。
该模组允许你通过 Minecraft 命令直接触发许多通常由键盘或鼠标控制的操作。通过 command 输入的任何指令都会持续执行,直到你输入 /stop (action) 为止。这包括移动、交互、战斗、物品栏操作、摄像机控制、调试动作、快捷栏选择、菜单等。
理念很简单:
将玩家控制转化为命令。
功能
- 为许多原版 Minecraft 控制添加客户端命令
- 使用命令触发动作
- 控制战斗和交互动作
- 通过命令打开菜单和屏幕
- 使用命令选择快捷栏槽位
- 触发摄像机和调试按键绑定
- 包含用于物品栏、聊天、视角、截图等的命令
- 支持按住式动作和一次性动作
- 适用于无障碍设置、测试、自动化、地图制作和自定义配置
命令
/walk-forward
/walk-backward
/walk-left
/walk-right
/jump
/sneak
/sprint
/hit
/mine
/use
/interact
/inventory
/drop-item
/swap-hands
/select-slot-1
/toggle-perspective
/take-screenshot
移动命令
ControlCommands 为常见的移动控制提供了命令访问权限。
/walk-forward
/walk-backward
/walk-left
/walk-right
/jump
/sneak
/sprint
/swim-up
/swim-down
/fly-up
/fly-down
/dismount
这些命令在无需按下实际移动键的情况下触发移动时非常有用。
动作命令
通过命令触发动作的常见游戏玩法。
/hit
/attack
/mine
/destroy
/use
/place
/interact
/pick-block
这些命令可用于模拟通常由鼠标按钮或按键绑定控制的动作。
视角与快捷栏命令
该模组还包含用于环顾四周和控制快捷栏的命令。
/look-up
/look-down
/look-left
/look-right
/scroll-hotbar-left
/scroll-hotbar-right
/select-slot-1
/select-slot-2
/select-slot-3
/select-slot-4
/select-slot-5
/select-slot-6
/select-slot-7
/select-slot-8
/select-slot-9
物品栏与物品命令
控制物品栏和物品相关动作。
/inventory
/drop-item
/drop-stack
/swap-hands
这些命令使得可以通过命令打开物品栏、丢弃物品、丢弃一组物品或交换手持物品成为可能。
聊天与菜单命令
ControlCommands 包含用于聊天、菜单和界面操作的命令。
/chat
/command-chat
/player-list
/autocomplete
/social-interactions
/game-menu
/pause-menu
/close-menu
/advancements
/statistics
/recipe-book
摄像机与视觉命令
通过命令控制摄像机和视觉选项。
/toggle-perspective
/toggle-hud
/take-screenshot
/toggle-cinematic-camera
/toggle-fullscreen
调试命令
该模组还为几个与调试相关的按键绑定添加了命令访问权限。
/debug-screen
/reload-chunks
/show-hitboxes
/copy-location
/toggle-advanced-tooltips
/toggle-chunk-borders
/toggle-debug-pie
/clear-chat
/reload-resources
额外命令
其他支持的行动包括:
/narrator
/toggle-narrator
/toggle-spectator-menu
/highlight-players
/open-emote-menu
停止按住类动作
某些动作类似于按住按键的行为,例如行走、潜行、疾跑、挖掘或使用物品。
你可以使用以下命令停止正在运行的动作:
/stop <action>
示例:
/stop walk-forward
/stop mine
/stop use
用例
ControlCommands 可用于:
- 无障碍设置
- 语音控制系统
- 自定义输入系统
- 测试与调试
- 基于命令的自动化
- 整合包
- 客户端工具
- 地图制作实验
- 创意工作流程
客户端模组
ControlCommands 是一款客户端模组。
它旨在本地触发客户端控制。部分命令可能依赖于当前玩家状态、所选物品、屏幕、目标方块或游戏模式。
例如:
/mine 在注视可挖掘方块时效果最佳
/use 取决于所选物品或目标
/fly-up 和 /fly-down 仅在飞行可用时有意义
- 调试和菜单命令依赖于 Minecraft 当前的屏幕和上下文
要求
- Minecraft 1.21.11
- Fabric Loader
- Fabric API
- Java 21
ControlCommands
ControlCommands is a client-side Minecraft Fabric mod that adds commands for vanilla player controls and keybind actions.
The mod lets you trigger many actions that are normally controlled with your keyboard or mouse directly through Minecraft commands. Any input entered via the command is executed continuously until you enter /stop (action). This includes movement, interaction, combat, inventory actions, camera controls, debug actions, hotbar selection, menus, and more. every
The idea is simple:
Turn player controls into commands.
Features
- Adds client-side commands for many vanilla Minecraft controls
- Trigger movement actions using commands
- Control combat and interaction actions
- Open menus and screens through commands
- Select hotbar slots with commands
- Trigger camera and debug keybinds
- Includes commands for inventory, chat, perspective, screenshots, and more
- Supports hold-style actions and one-time actions
- Useful for accessibility, testing, automation, maps, and custom setups
Commands
/walk-forward
/walk-backward
/walk-left
/walk-right
/jump
/sneak
/sprint
/hit
/mine
/use
/interact
/inventory
/drop-item
/swap-hands
/select-slot-1
/toggle-perspective
/take-screenshot
Movement Commands
ControlCommands adds command access to common movement controls.
/walk-forward
/walk-backward
/walk-left
/walk-right
/jump
/sneak
/sprint
/swim-up
/swim-down
/fly-up
/fly-down
/dismount
These commands are useful when movement should be triggered without pressing the actual movement keys.
Action Commands
Trigger common gameplay actions through commands.
/hit
/attack
/mine
/destroy
/use
/place
/interact
/pick-block
These commands can be used to simulate actions normally controlled by mouse buttons or keybinds.
Looking and Hotbar Commands
The mod also includes commands for looking around and controlling the hotbar.
/look-up
/look-down
/look-left
/look-right
/scroll-hotbar-left
/scroll-hotbar-right
/select-slot-1
/select-slot-2
/select-slot-3
/select-slot-4
/select-slot-5
/select-slot-6
/select-slot-7
/select-slot-8
/select-slot-9
Inventory and Item Commands
Control inventory and item-related actions.
/inventory
/drop-item
/drop-stack
/swap-hands
These commands make it possible to open the inventory, drop items, drop stacks, or swap hands using commands.
Chat and Menu Commands
ControlCommands includes commands for chat, menus, and interface actions.
/chat
/command-chat
/player-list
/autocomplete
/social-interactions
/game-menu
/pause-menu
/close-menu
/advancements
/statistics
/recipe-book
Camera and Visual Commands
Control camera and visual options through commands.
/toggle-perspective
/toggle-hud
/take-screenshot
/toggle-cinematic-camera
/toggle-fullscreen
Debug Commands
The mod also adds command access to several debug-related keybinds.
/debug-screen
/reload-chunks
/show-hitboxes
/copy-location
/toggle-advanced-tooltips
/toggle-chunk-borders
/toggle-debug-pie
/clear-chat
/reload-resources
Extra Commands
Additional supported actions include:
/narrator
/toggle-narrator
/toggle-spectator-menu
/highlight-players
/open-emote-menu
Stopping Hold Actions
Some actions behave like held keys, for example walking, sneaking, sprinting, mining, or using an item.
You can stop a running action with:
/stop <action>
Example:
/stop walk-forward
/stop mine
/stop use
Use Cases
ControlCommands can be useful for:
Accessibility setups
Voice control systems
Custom input systems
Testing and debugging
Command-based automation
Modpacks
Client-side tools
Map-making experiments
Creative workflows
Client-Side Mod
ControlCommands is a client-side mod.
It is designed to trigger client controls locally. Some commands may depend on the current player state, selected item, screen, target block, or game mode.
For example:
/mine works best when looking at a mineable block
/use depends on the selected item or target
/fly-up and /fly-down only make sense when flying is available
Debug and menu commands depend on Minecraft’s current screen and context
Requirements
Minecraft 1.21.11
Fabric Loader
Fabric API
Java 21
评论 0
登录后参与评分
还没有评论,来抢沙发吧