Command history.txt
Minecraft Wiki article. Categories: Java_Edition, Java_Edition_technical
This article is reproduced from Command history.txt on the Minecraft Wiki. Mirrored from revision 3652534. It is licensed CC BY-NC-SA 3.0 by the Minecraft Wiki contributors — not under the Codex’s CC BY-SA 4.0, and it may not be used commercially. Edits belong upstream, not here.
command_history.txt is a text file found in the root of the .minecraft folder which stores a list of commands the player has entered in-game.
Usage
The command history file is used to persist command history between worlds and sessions. The command and chat history can be navigated through by pressing ↑ Up or ↓ Down while the chat is opened. Regular chat messages do not persist between worlds but commands do.
Contents
The file is simply a one-per-line list of commands that have been typed, including the slashes. It is sorted in chronological order.
Up to 50 commands are stored in this file.
Example:
/locate biome minecraft:plains /spreadplayers 1000 700 10 100 false @a /time add 200 /effect give @a minecraft:night_vision /give @p command_block
History
| Java Edition | |||||||
|---|---|---|---|---|---|---|---|
| 1.20.2 | 23w31a | Added command_history.txt. | |||||
Navigation
Sources
- Command history.txt — Minecraft Wiki, CC BY-NC-SA 3.0, revision 3652534.