Compatibility
Minecraft: Java Edition
Platforms
Supported environments
Links
Tags
Creators
Details
SYSCMD 模组介绍 SYSCMD 是一款超轻量的 Fabric 模组,让你无需退出 Minecraft 即可在游戏内直接执行 Windows CMD 和 PowerShell 命令。支持普通权限与管理员权限双模式,内置丰富的系统查询工具和实用功能。模组大小不到 0.1MB,零加载延迟,可与上百个模组共存无冲突,完美适配大型整合包。 📋 基本信息 模组名称: MC2CMD 当前版本: 1.3 适用游戏: Minecraft 1.20.1 模组加载器: Fabric 模组大小: ~0.1MB 支持语言: 简体中文 开发者: 杨晨硕 开源协议: MIT License 核心功能 双命令系统 CMD 执行:支持普通执行与原样执行两种模式,自动转义特殊字符防止出错 PowerShell 执行:采用 EncodedCommand 编码技术,彻底解决中文乱码和特殊字符转义问题 管理员权限:通过 UAC 弹窗以管理员身份执行命令,支持 PowerShell 管理员模式 系统信息查询 全方位掌握系统状态,无需切出游戏: CPU 详细信息(型号、主频、物理/逻辑核心数、负载) 显卡信息(型号、显存、当前分辨率、驱动版本) 内存详情(JVM 堆内存 + 系统总内存/空闲内存) 磁盘空间(所有盘符使用率可视化) 网络信息(主机名、IP 地址、网卡列表) 进程管理(进程列表、关键词过滤、强制结束进程) 环境变量查询 网络连通性测试(ping) 文件管理 游戏内直接操作本地文件: 目录浏览(列表展示,带文件夹/文件图标区分) 文件内容查看(支持行号显示) 文件写入与创建 目录创建 文件/目录删除(需二次确认) 文件搜索(支持深度遍历,关键词匹配) 实用工具箱 截图:一键截取主屏幕并自动保存 锁屏:快速锁定电脑屏幕 睡眠/休眠:一键进入睡眠或休眠状态(需确认) 音量控制:查看、调节系统音量,一键静音 剪贴板:将文本快速复制到系统剪贴板 打开文件/网页:直接打开本地文件或浏览器访问网页 定时关机/重启:支持自定义倒计时,可随时取消 命令别名系统 将常用的复杂命令保存为简短别名 别名持久化保存,重启游戏不丢失 支持添加、删除、列出、执行全套操作 脚本执行 支持直接运行 .ps1 PowerShell 脚本 支持直接运行 .bat / .cmd 批处理脚本 自动识别脚本类型,统一入口执行 输出保存 命令执行结果可直接保存为文本文件 支持 CMD 和 PowerShell 两种命令的输出保存 自动保存到 mc2cmd_output 目录 智能失败分析 命令执行失败后,输入 /cmd why 即可获取详细分析 自动识别常见错误类型:命令不存在、权限不足、路径错误、编码问题、网络问题等 针对每种错误给出具体的解决方案建议 命令历史记录 自动记录最近 50 条执行过的命令 支持按关键词搜索历史命令 快速回顾和复用之前的命令 安全机制
- 危险操作二次确认 删除文件、结束进程、关机/重启、睡眠/休眠等高危操作 执行前需输入 /cmd confirm 二次确认 30 秒超时自动取消,防止误操作
- PowerShell 危险命令拦截 内置危险命令黑名单(格式化磁盘、删除文件、修改注册表等) 自动拦截高风险 PowerShell 命令,防止误操作或恶意利用
- 服务端自动禁用 模组仅限客户端使用 在专用服务器上自动禁用,不会产生任何影响
- 权限要求 需要游戏内 4 级权限(单人需开启作弊,服务器需管理员) 管理员权限命令会触发系统 UAC 弹窗,需手动确认 命令使用 前置要求 需要游戏 4 级权限(单人模式需开启作弊,服务器需为管理员) 仅支持 Windows 系统(Linux/Mac 不支持) 常用命令速览 /cmd help # 查看完整帮助 /cmd exec <命令> # 执行 CMD 命令 /cmd pwsh <命令> # 执行 PowerShell 命令(推荐) /cmd pwsh-admin <命令> # 管理员执行 PowerShell /cmd sysinfo # 系统总览 /cmd cpu # CPU 详情 /cmd gpu # 显卡信息 /cmd ps [关键词] # 进程列表 /cmd ls [路径] # 列目录 /cmd screenshot # 截取屏幕 /cmd volume set 50 # 设置音量 50% /cmd lock # 锁屏 /cmd why # 失败原因分析 /cmd alias add <名> <命> # 添加命令别名 /cmd script run <路径> # 执行脚本文件 /cmd history # 历史记录 /cmd confirm # 确认危险操作 /cmd cancel # 取消待确认操作 /cmd help # 查看完整帮助 /cmd exec <命令> # 执行 CMD 命令 /cmd pwsh <命令> # 执行 PowerShell 命令(推荐) /cmd pwsh-admin <命令> # 管理员执行 PowerShell /cmd sysinfo # 系统总览 /cmd cpu # CPU 详情 /cmd gpu # 显卡信息 /cmd ps [关键词] # 进程列表 /cmd ls [路径] # 列目录 /cmd screenshot # 截取屏幕 /cmd volume set 50 # 设置音量 50% /cmd lock # 锁屏 /cmd why # 失败原因分析 /cmd alias add <名> <命> # 添加命令别名 /cmd script run <路径> # 执行脚本文件 /cmd history # 历史记录 /cmd confirm # 确认危险操作 /cmd cancel # 取消待确认操作 安装方法 安装 Fabric Loader ≥ 0.15.0 和 Fabric API 将 mc2cmd-1.3.jar 放入 .minecraft/mods 文件夹 启动游戏,模组自动加载 注意事项 仅限 Windows 系统:Linux / macOS 暂不支持 UAC 弹窗:管理员权限命令会触发系统 UAC 窗口,需要手动确认 谨慎操作:执行高风险命令前请三思,避免数据丢失 仅限客户端:服务端安装无效,模组会自动禁用 本模组仅供学习和个人使用
- 禁止用途
严禁用于以下行为:
窃取文件、破坏系统、格式化硬盘
创建病毒、后门或恶意程序
未经授权控制他人计算机
其他任何违法违规行为
因不当或非法使用造成的一切严重后果,开发者不承担任何责任。
SYSCMD Mod Introduction
SYSCMD is an ultra-lightweight Fabric mod that allows you to directly execute Windows CMD and PowerShell commands within Minecraft without exiting the game. It supports both standard and administrator modes, comes with a rich set of system query tools and practical features, and weighs less than 0.1MB—zero loading delay, compatible with hundreds of other mods without conflicts, and perfectly optimized for large modpacks.
📋 Basic Information
Mod Name: MC2CMD
Current Version: 1.3
Compatible Game: Minecraft 1.20.1
Mod Loader: Fabric
Mod Size: ~0.1MB
Supported Language: Simplified Chinese
Developer: Yang Chenshuo
Open-Source License: MIT License
Core Features
Dual Command System
CMD Execution: Supports both normal execution and raw execution modes, automatically escaping special characters to prevent errors.
PowerShell Execution: Utilizes EncodedCommand encoding technology to completely resolve issues with Chinese character garbling and special character escaping.
Administrator Privileges: Executes commands as administrator via UAC prompt, supporting PowerShell in admin mode.
System Information Query
Gain full control over your system status—all from within the game:
CPU Details (model, clock speed, physical/logical cores, load)
Graphics Card Info (model, VRAM, current resolution, driver version)
Memory Details (JVM heap memory + total/free system memory)
Disk Space (visualized usage rates across all drives)
Network Information (hostname, IP address, network adapter list)
Process Management (process list, keyword filtering, force termination)
Environment Variables Inquiry
Network Connectivity Testing (ping) File Management
Direct local file operations within the game:
Directory browsing (list view with folder/file icons)
File content viewing (with line numbers displayed)
File writing and creation
Directory creation
File/directory deletion (requires secondary confirmation)
File search (supports deep traversal and keyword matching)
Utility Toolbox
Screenshot: Capture main screen with one click and auto-save
Lock screen: Quickly lock your computer screen
Sleep/Hibernate: One-click sleep or hibernate mode (requires confirmation)
Volume control: View and adjust system volume, mute instantly
Clipboard: Copy text to system clipboard quickly
Open file/webpage: Directly open local files or launch browser to access web pages
Scheduled shutdown/restart: Supports custom countdown, can be canceled at any time
Command Alias System
Save frequently used complex commands as short aliases
Aliases are persistently saved—no data loss after game restart
Supports full operations: add, delete, list, execute
Script Execution
Run .ps1 PowerShell scripts directly
Run .bat / .cmd batch scripts directly
Automatically detects script type and provides a unified execution interface
Output Saving
Command execution results can be saved directly as text files
Supports saving output from both CMD and PowerShell commands
Automatically saves to mc2cmd_output directory
Smart Failure Analysis
After command failure, enter /cmd why to get detailed analysis
Automatically identifies common error types: command not found, insufficient permissions, path errors, encoding issues, network problems, etc.
Provides specific solution recommendations for each error type
Command History
Automatically records the last 50 executed commands
Supports searching history by keywords
Quickly review and reuse previous commands
Security Mechanisms
-
Double Confirmation for High-Risk Operations
High-risk actions such as file deletion, process termination, shutdown/restart, sleep/hibernate require /cmd confirm before execution
30-second timeout automatically cancels operation to prevent accidental execution -
PowerShell Risk Command Blocking
Built-in blacklist of dangerous commands (e.g., disk formatting, file deletion, registry modification)
Automatically blocks high-risk PowerShell commands to prevent accidents or malicious use -
Server-Side Auto-Disable
Mod is client-only
Automatically disabled on dedicated servers with no impact -
Permission Requirements
Requires level 4 in-game permissions (cheats enabled in single-player, admin status required on server)
Administrator-level commands trigger UAC pop-up requiring manual confirmation
Command Usage
Prerequisites
Level 4 in-game permissions required (cheats enabled in single-player, admin on server)
Windows only (Linux/Mac unsupported)
Quick Reference to Common Commands
/cmd help # View complete help
/cmd exec <command> # Execute CMD command
/cmd pwsh <command> # Execute PowerShell command (recommended)
/cmd pwsh-admin <command> # Execute PowerShell as administrator
/cmd sysinfo # System overview
/cmd cpu # CPU details /cmd gpu # GPU information
/cmd ps [keyword] # Process list
/cmd ls [path] # List directory
/cmd screenshot # Take screenshot
/cmd volume set 50 # Set volume to 50%
/cmd lock # Lock screen
/cmd why # Analyze failure reasons
/cmd alias add <name> <command> # Add command alias
/cmd script run <path> # Run script file
/cmd history # Command history
/cmd confirm # Confirm dangerous operations
/cmd cancel # Cancel pending confirmation
/cmd help # View full help
/cmd exec <command> # Execute CMD command
/cmd pwsh <command> # Execute PowerShell command (recommended)
/cmd pwsh-admin <command> # Execute PowerShell as administrator
/cmd sysinfo # System overview
/cmd cpu # CPU details
/cmd gpu # GPU information
/cmd ps [keyword] # Process list
/cmd ls [path] # List directory
/cmd screenshot # Take screenshot
/cmd volume set 50 # Set volume to 50%
/cmd lock # Lock screen
/cmd why # Analyze failure reasons
/cmd alias add <name> <command> # Add command alias
/cmd script run <path> # Run script file
/cmd history # Command history
/cmd confirm # Confirm dangerous operations
/cmd cancel # Cancel pending confirmation
Installation Method
Install Fabric Loader ≥ 0.15.0 and Fabric API
Place mc2cmd-1.3.jar into the .minecraft/mods folder
Launch the game; the mod will load automatically
Notes
Windows only: Linux/macOS not supported
UAC prompt: Commands requiring admin privileges will trigger a system UAC window, requiring manual confirmation Caution: Think carefully before executing high-risk commands to avoid data loss.
Client-side only: Installation on the server side is invalid; the mod will be automatically disabled.
This mod is intended solely for learning and personal use.
- Prohibited Uses
Strictly prohibited activities include:
- Stealing files, damaging systems, or formatting hard drives
- Creating viruses, backdoors, or malicious programs
- Unauthorized control of other people's computers
- Any other illegal or unlawful actions
The developer assumes no responsibility for any serious consequences resulting from improper or illegal use.


