Linux command
minecraft 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Launch Minecraft
minecraft-launcher
Run server
java -Xmx[2G] -jar [server.jar] nogui
Specify version
minecraft-launcher --version [1.20]
Specify game directory
minecraft-launcher --gameDir [/path/to/minecraft]
Demo mode
minecraft-launcher --demo
说明
minecraft launches the Minecraft game. The launcher manages versions and profiles. The tool downloads game files and manages Java runtime. Supports mods and custom configurations.
参数
- --version _VER_
- Game version.
- --gameDir _DIR_
- Game directory.
- --demo
- Demo mode.
- --server _HOST_
- Auto-connect to server.
- --help
- Display help information.
FAQ
What is the minecraft command used for?
minecraft launches the Minecraft game. The launcher manages versions and profiles. The tool downloads game files and manages Java runtime. Supports mods and custom configurations.
How do I run a basic minecraft example?
Run `minecraft-launcher` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --version _VER_ do in minecraft?
Game version.