How to use Minecraft commands
To get started with these Minecraft commands, simply hit the forward slash key (/) to open the chat window then continue typing the command. You can use the up and down arrow keys to scroll through previously entered commands, and pressing the Tab key while entering commands will cycle through possible options. For most of these Minecraft cheats to work, you need to be in a game where cheats were enabled when the world was created. In a single player world where they weren't, you can enable cheats by opening the game to LAN and selecting "Allow Cheats" (even if you are not on a LAN), and this choice will be remembered until you quit your world.
Instead of typing in individual player name(s) for the player prompt, you can use the following shortcuts to select specific targets for your command:
@p = the nearest player to you
@r = a random player
@a = all players in the world
@e = all entities in the world
@s = you
@p = the nearest player to you
@r = a random player
@a = all players in the world
@e = all entities in the world
@s = you
For coordinates, these are expressed as x y z, where x is the distance east (+) or west (-) of the origin point, z is the distance south (+) or north (-) of the origin point, and y is the height from 0 to 255, where 64 is sea level. You can also use tilde (~) or caret (^) notation with a number to express relative coordinates offset from your current position, with the notation by itself representing ~0 or ^0 ie no offset. Tilde offsets are based on the world coordinates, so ~5 ~ ~-5 would be +5 blocks on x (east), 0 blocks on y (same height), and -5 blocks on z (north). Caret offsets are based on the direction the player's head is facing along left, upward, and forward axes, so ^5 ^ ^-5 would be 5 blocks left, 0 blocks upward (same height), and 5 blocks backward.
World and Environment Minecraft commands
/seed
Produces a seed code so you can recreate your world later
Produces a seed code so you can recreate your world later
/setworldspawn [x y z]Set the world spawn location to the player's current position, or optional specified coordinates if entered
/gamemode <type> [player]Sets the game mode type (use survival, creative, adventure, or spectator) for yourself or an optional player
/gamerule <rule> [value]Queries the value of a game rule, or amends it if an optional value is entered. A list of rule codes is here
/difficulty <level>
Sets the difficulty level (use peaceful, easy, normal, or hard)
Sets the difficulty level (use peaceful, easy, normal, or hard)
/time set <value>Sets the world game time, use 0 (Dawn), 1000 (Morning), 6000 (Midday), 12000 (Dusk), or 18000 (Night) as the value
/gamerule doDaylightCycle falseTurn off the day/night cycle, replace false with true to reactivate
/weather <type> [duration]Sets the weather type (use clear, rain, or thunder) for an optional duration in seconds
/gamerule doWeatherCycle falseTurn off weather changes, replace false with true to reactivate
/clone <x1 y1 z1> <x2 y2 z2> <x y z>Clones the blocks in the region between coordinates <x1 y1 z1> and <x2 y2 z2>, then places them with coordinates <x y z> in the lower northwest corner
Player Minecraft commands
/kill [player]
Kill yourself (or specified player)
Kill yourself (or specified player)
/tp [player] <x y z>Teleport yourself (or specified player) to the coordinates entered
/effect <player|entity> <effect> [duration]Applies the effect to the specified player or entity, for an option duration in seconds. A list of effect codes is here
No comments:
Post a Comment