/explode 5 ~ ~-3 Performs a size 5 explosion, 3 blocks below the player.įills a region of blocks with the specified block typeįill block_type x y width height )|keep|outline|hollow|destroy]./explode 10 Performs a size 10 explosion at the player's location./enchant LuckOfTheSeaII Enchants the held item with the Luck of the Sea 2 enchantment./enchant Unbreaking4 Enchants the held item with the Unbreaking 4 enchantment.enchantment_id: See list of enchantment ID's here: Enchantments./difficulty normal Sets the game to normal difficultyĪpplies an enchantment to the player's equipped item.This command clears console messages from the screen. : Whether the original blocks are kept.xDest yDest: The x and y coordinate to clone to.width height: How many blocks rightward (width) and upward (height) to clone.x1 y1: The x and y coordinate to start cloning from.clone x1 y1 width height xDest yDest block_mask Removes all rainbow wool from the inventoryĬlones part of the world and pastes it somewhere else, with data tags for blocks.Does not remove any items, but returns a message saying "Found a match" if the player has wool in their inventory.data_tags: The tags the item to be removed has.damage: The amount of damage the item to be removed has undergone.itemname: The quantity of items to be removed.itemname: The identifier for the item to remove.Removes items from the inventory, but also returns a message if the specified item is present. It allows players to permanently enable or disable cheats in their world. This command will only exist if the world was created prior to 1.26.5 (when cheats were added to the game).
Shows the seed number of the current world. This command is always available, even if cheats are disabled. Note that is an optional modifier that can be added to coordinates, which makes it relative the player's location. For example, in /lightning x y], you can simply omit the X and Y parameters like so: /lightning. When writing a command, you can omit the parameters. Parameters between the brackets is an optional parameter.For example, in /gamemode, you can write /gamemode survival, /gamemode creative, or /gamemode adventure. Parameters between the brackets is a list of options, separated by | characters.
It's important to know the difference between them. The command definition includes two different types of brackets. When the console is open, the player can write a command, and execute it by pressing Enter. This can be changed in the game settings. The default key binding for opening the command console is "T". This option can only be enabled on the world creation screen, and cannot be enabled after a world has already been created.
In order to use commands, the world must have cheats enabled. Commands (also known as Cheats) are scripted codes that the player can write in the game console that change the game directly.