Click a Json text that has "run_command" action..In a multiplayer server, entered in the console.In functions, as part of a data pack or behavior pack.Executed by a command block or Minecart with command block.Entered by a player in the chat window.A server owner running commands in this way is often referred to as "ghosting".Ĭommands in command blocks can be preceded by a slash, but it is not required.Ĭommands can be executed in the following ways Pressing Tab ↹ while entering commands cycles through possible commands or arguments, and can be used to auto-enter them.Ĭommands may also be entered in a multiplayer server's console, but are not preceded by a / when entered this way. If the argument is already containing some characters, the list displays only those values containing the typed command/text. When the cursor is at a location corresponding to some types of argument (such as an ID), a list of applicable values appears above the text box. The ↑ and ↓ keys can be used to view previously entered text, including all previously executed commands. Using the / key also enters the forward-slash that commands require as a prefix, so it is a useful shortcut. stopsound DigMinecraft music minecraft:music.In the client, commands are entered via the chat window, which is displayed by pressing the T / / or / key. Starting in Minecraft 1.9.3, you can use the /stopsound command to stop sound effects in the game.įor example, you can stop the Creative music sound effect for the player named DigMinecraft. Knowing the name of a sound effect comes in handy when you want to stop a sound from playing. You could also have used the ID value to add the effect: /effect DigMinecraft 12 30 60īoth commands would result in DigMinecraft having the Fire Resistance effect for 30 seconds. In this example, fire_resistance is the name of the effect, 30 is the number of seconds that the effect will last, and 60 is the amplifier. You can give a player an effect (ie: potion effect) that is either helpful or harmful by using the /effect command.įor example, you can use the /effect command to give the player DigMinecraft the effect called Fire Resistance for 30 seconds: /effect DigMinecraft fire_resistance 30 60 You could also have used the ID value to add the enchantment: /enchant DigMinecraft 3 4īoth commands would result in the item held by DigMinecraft to be enchanted with Blast Protection IV. In this example, blast_protection is the name of the enchantment and 4 is the level of the enchantment to add. You can enchant the armor, weapons, and tools that you are holding by using the /enchant command.įor example, you can use the /enchant command to enchant the item that the player called DigMinecraft is holding with Blast Protection IV. summon EnderDragon ~ ~ ~ Example of how to use an Enchantment You can use the /summon command to summon entities and mobs in the game.įor example in Minecraft 1.9, you can use the EnderDragon entity value to summon an ender dragon that is about to perform a breath attack. give DigMinecraft gold_block 4 Example of how to use an Entity Starting in Minecraft 1.8, you will need to know the name of an item when using the /give command.įor example, you use the gold_block name in the /give command when you want to give the player called DigMinecraft 4 blocks of gold. Fog List (Education Edition) Example of how to use an Item
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |