command_history.txt

From Minecraft Wiki
Jump to navigation Jump to search
This feature is exclusive to Java Edition.
 

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

[edit | edit source]

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

[edit | edit source]

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

[edit | edit source]
Java Edition
1.20.223w31aAdded File file.png: Sprite image for file in Minecraft command_history.txt.
[edit | edit source]