Minecraft is a game full of extremely interesting modes and features, but sometimes all you need is a little extra help. For your happiness, Minecraft has a good number of codes and commands that serve to help your players in different ways. Therefore, it is very useful to have a list of some of these main Minecraft codes and commands.
Minecraft Cheats
The commands that activate various codes and effects in Minecraft can be activated in almost all versions of the game, both desktop (for Windows, macOS and Linux), and mobile (for iPhone, Android) and also for Playstation, Xbox and Nintendo Switch.
How to use Minecraft commands and cheats
To use Minecraft commands and codes, just follow these actions:
- On Windows, macOS or Linux, press the “T” key. On PS4, Xbox One and Nintendo Switch, press the right directional button. On iPhone and Android, tap the chat icon, it’s the conversation bubble;
- Enter the command and confirm.
- Ready, your cheat is now active!
Heads up!
All commands start with ‘/’ and some ask for extra details like coordinates or values.
Also, your world needs to be created with the cheats option enabled for them to work.
If your Minecraft world was created with the cheats option and you still can’t activate them, just open the menu, go to the “Open to LAN” section, and select “ON” from the “Allow cheats” option.
Minecraft Cheats
Command | Effect |
/list | Displays the list of commands |
/gamemode 0 | Changes the mode of the game to Survival |
/gamemode 1 | Changes the mode of the game to Creative |
/gamemode 2 | Changes the mode of the game to Adventure |
/gamemode 3 | Changes the mode of the game to Spectator |
/give [amount] [name of the item] | Generates a certain item in your inventory |
/kill @r | Kills a random player |
/kill @e | Kills all living beings |
/kill @a | Kills all players |
/kill @p | Kills the player closer to you |
/time set [23000, noon, 12000, midnight] | Changes the time to sunrise, noon, sunset or midnight. |
/time set day | Changes the time to day |
/time set night | Changes the time to night |
/weather [clear, rain, snow, thunder] [duration] | Changes the weather to clear, rain, snow or storm for a certain time |
/instantmine | Mine instantly with any weapon |
/dropstore | Summon a chest and store your entire inventory in it |
/summon [name of the creature] | Summon a creature |
/give [name of the player] [amount] [name of the item] | Spawns a certain item in another player’s inventory |
/spawnpoint [name of the player] [x, y, z] | Specifies a point on the map as a respawn location, where the character will respawn upon death. You need to set the coordinates in x, y and z |
/mobdamage | Disables damage from monsters’ attacks |
/falldamage | Disables damage from fall |
/firedamage | Disables damage from fire |
/waterdamage | Disables damage from water |
/instantplant | Makes seeds grow instantly |
/duplicate | Duplicate the items in your inventory and materialize them on the ground |
/tp [name of the player] | Teleports directly to a certain player |
/gamerule keepinventory true | Keeps your inventory on death |
/difficulty [peaceful, easy, normal, hard] | Changes the game difficulty level. |
/ride | Transforms the creature you are looking at into a mount |
/itemdamage | Prevents weapons and items from taking damage |
/xp [amount] [name of the player] | Provides the indicated amount of XP to the chosen player |
/give @p command_block | Create a Command Block in your inventory |
Console Commands for Effects in Minecraft
Command | Effect |
---|---|
/effect [Player’s Name] 1 [seconds] [level 1-255] | Provides the Speed effect to the indicated player, according to the chosen duration and intensity. |
/effect [Player’s Name] 2 [seconds] [level 1-255] | Provides the Slow effect to the indicated player, according to the chosen duration and intensity. |
/effect [Player’s Name] 3 [seconds] [level 1-255] | Provides the Agility effect to the indicated player, according to the chosen duration and intensity. |
/effect [Player’s Name] 4 [seconds] [level 1-255] | Causes the effect of Mining Fatigue to the indicated player, according to the chosen duration and intensity. |
/effect [Player’s Name] 5 [seconds] [level 1-255] | Provides the Strength effect to the indicated player, according to the chosen duration and intensity. |
/effect [Player’s Name] 6 [seconds] [level 1-255] | Provides the instant Health effect to the indicated player, according to the chosen duration and intensity. |
/effect [Player’s Name] 7 [seconds] [level 1-255] | Deals the effect of Instant Damage to the indicated player, according to the chosen duration and intensity. |
/effect [Player’s Name] 8 [seconds] [level 1-255] | Provides the Super Jump effect to the indicated player, according to the chosen duration and intensity. |
/effect [Player’s Name] 9 [seconds] [level 1-255] | Causes the effect of Nausea to the indicated player, according to the chosen duration and intensity. |
/effect [Player’s Name] 10 [seconds] [level 1-255] | Provides the Regeneration effect to the indicated player, according to the chosen duration and intensity. |
/effect [Player’s Name] 11 [seconds] [level 1-255] | Provides the Resistance effect to the indicated player, according to the chosen duration and intensity. |
/effect [Player’s Name] 12 [seconds] [level 1-255] | Provides the Resistance to Fire effect to the indicated player, according to the chosen duration and intensity. |
/effect [Player’s Name] 13 [seconds] [level 1-255] | Provides the Water Breathing effect to the designated player, according to the chosen duration and intensity. |
/effect [Player’s Name] 14 [seconds] [level 1-255] | Provides the Invisibility effect to the indicated player, according to the chosen duration and intensity. |
/effect [Player’s Name] 15 [seconds] [level 1-255] | Provides the Blind effect to the indicated player, according to the chosen duration and intensity. |
/effect [Player’s Name] 16 [seconds] [level 1-255] | Provides the Night Vision effect to the indicated player, according to the chosen duration and intensity. |
/effect [Player’s Name] 17 [seconds] [level 1-255] | Provides the Hunger effect to the indicated player, according to the chosen duration and intensity. |
/effect [Player’s Name] 18 [seconds] [level 1-255] | Causes the effect of Weakness to the indicated player, according to the chosen duration and intensity. |
/effect [Player’s Name] 19 [seconds] [level 1-255] | Provides the Poison effect to the indicated player, according to the chosen duration and intensity. |
/effect [Player’s Name] 20 [seconds] [level 1-255] | Provides the Agility effect to the indicated player, according to the chosen duration and intensity. |
/effect [Player’s Name] 21 [seconds] [level 1-255] | Provides the Health Boost effect to the indicated player, according to the chosen duration and intensity. |
/effect [Player’s Name] 22 [seconds] [level 1-255] | Provides the Absorb effect to the indicated player, according to the chosen duration and intensity. |
/effect [Player’s Name] 23 [seconds] [level 1-255] | Inflicts the Saturation effect on the indicated player, according to the chosen duration and intensity. |
Console Commands for Enchantment in Minecraft
Command | Enchantment |
---|---|
/enchant [Player’s Name] [aqua_affinity] [Enchanment Level] | Aqua Affinity |
/enchant [Player’s Name] [bane_of_arthropods] [Enchanment Level] | Bane of Arthropods |
/enchant [Player’s Name] [binding_curse] [Enchanment Level] | Binding Curse |
/enchant [Player’s Name] [blast_protection] [Enchanment Level] | Blast Protection |
/enchant [Player’s Name] [channeling] [Enchanment Level] | Channeling |
/enchant [Player’s Name] [depth_strider] [Enchanment Level] | Depth Strider |
/enchant [Player’s Name] [efficiency] [Enchanment Level] | Efficiency |
/enchant [Player’s Name] [feather_falling] [Enchanment Level] | Feather Falling |
/enchant [Player’s Name] [fire_aspect] [Enchanment Level] | Fire Aspect |
/enchant [Player’s Name] [fire_protection] [Enchanment Level] | Fire Protection |
/enchant [Player’s Name] [flame] [Enchanment Level] | Flame |
/enchant [Player’s Name] [fortune] [Enchanment Level] | Fortune |
/enchant [Player’s Name] [frost_walker] [Enchanment Level] | Frost Walker |
/enchant [Player’s Name] [impaling] [Enchanment Level] | Impaling |
/enchant [Player’s Name] [infinity] [Enchanment Level] | Infinity |
/enchant [Player’s Name] [knockback] [Enchanment Level] | Knockback |
/enchant [Player’s Name] [looting] [Enchanment Level] | Looting |
/enchant [Player’s Name] [loyalty] [Enchanment Level] | Loyalty |
/enchant [Player’s Name] [luck_of_the_sea] [Enchanment Level] | Luck of the Sea |
/enchant [Player’s Name] [lure] [Enchanment Level] | Lure |
/enchant [Player’s Name] [mending] [Enchanment Level] | Mending |
/enchant [Player’s Name] [multishot] [Enchanment Level] | Multishot |
/enchant [Player’s Name] [piercing] [Enchanment Level] | Piercing |
/enchant [Player’s Name] [power] [Enchanment Level] | Power |
/enchant [Player’s Name] [projectile_protection] [Enchanment Level] | Projectile Protection |
/enchant [Player’s Name] [protection] [Enchanment Level] | Protection |
/enchant [Player’s Name] [punch] [Enchanment Level] | Punch |
/enchant [Player’s Name] [quick_charge] [Enchanment Level] | Quick Charge |
/enchant [Player’s Name] [respiration] [Enchanment Level] | Respiration |
/enchant [Player’s Name] [riptide] [Enchanment Level] | Riptide |
/enchant [Player’s Name] [sharpness] [Enchanment Level] | Sharpness |
/enchant [Player’s Name] [silk_touch] [Enchanment Level] | Silk Touch |
/enchant [Player’s Name] [smite] [Enchanment Level] | Smite |
/enchant [Player’s Name] [sweeping] [Enchanment Level] | Sweeping |
/enchant [Player’s Name] [thorns] [Enchanment Level] | Thorns |
/enchant [Player’s Name] [unbreaking] [Enchanment Level] | Unbreaking |
/enchant [Player’s Name] [vanishing_curse] [Enchanment Level] | Vanishing Curse |
Leave a Reply