Know the main commands (codes) of Minecraft!

Who I am
Catherine Le Nevez
@catherinelenevez
SOURCES CONSULTED:

ea.com ubisoft.com playstation.com

Author and references

We have put together the complete list of top Minecraft cheats here. It has code to control the weather, game mode, scenery, mobs, effects, items, everything!

To use commands in Minecraft, you need to set ON in the "Allow Cheats" option when creating the world. With the option enabled, just press the "C"Or"T" at any time in the game to open the command bar, enter the codes below and press Enter.



Server Commands

Code Effect
/ gamemode 0 Switch to Survival mode
/ gamemode 1 Switch to Creative mode
/ gamemode 2 Switch to Adventure mode
/ gamemode 3 Switch to Spectator mode
/give [desired item] Makes the desired item appear in your inventory
/gamerule dofiretick false The fire cannot spread
/gamerule dodaylightcycle false Interrupts the game day/night click
/ gamerule keepinventory true Keeps your inventory on death
/gamerule domoloot false Mobs do not drop items
/gamerule domobs spawning false Mobs no longer spawn
/gamerule dotiledrops false Blocks do not drop items
/gamerule mobgriefing false Mobs can no longer interact with blocks
/gamerule naturalregeneration false Prevents health regeneration when at max HP
/kill @r Kill a random player
/kill @e Kill all entities
/kill @a kill all players
/kill @p Kill the nearest player
/ time set 18000 Change the time to Midnight
/ time set 6000 Change the time to Noon
/difficulty [peaceful/easy/normal/hard] Changes the game difficulty to the indicated level
/ summon [Feature Name] Summons the named entity
/ atlantis The world's sea level rises a lot
/weather [clear/rain/thunder] Changes the weather to the indicated mode
/ride Transforms the creature you are looking at into a mount
/instantmine Instant mining with any tool
/ freeze paralyzes mobs
/ falldamage Turns fall damage on and off
/ firedamage Turns fire damage on and off
/ waterdamage Turns water damage on and off
/superheat Transforms all items into their fused versions
/instantplant Planted seeds grow automatically
/ dropstore Stores all inventory items in a chest that appears next to you
/ itemdamage Prevents weapons and items from taking damage and wear and tear
/ duplicate Copy and drop the stack of items you have equipped
/tp [x,y,z] Teleports an entity to the given coordinates
/xp [amount] [player name] Provides the indicated amount of XP to the chosen player

Command Block Command

Command Effect
give @p command_block Create a Command Block in your inventory

Effects Commands

Command Effect
/effect [player name] 1 [seconds] [level 1-255] Provides the Speed ā€‹ā€‹effect to the indicated player, according to the chosen duration and intensity
/effect [player name] 2 [seconds] [level 1-255] Provides the Slow effect to the indicated player, according to the chosen duration and intensity
/effect [player name] 3 [seconds] [level 1-255] Provides the Agility effect to the indicated player, according to the chosen duration and intensity
/effect [player 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 name] 5 [seconds] [level 1-255] Provides the Strength effect to the indicated player, according to the chosen duration and intensity.
/effect [player name] 6 [seconds] [level 1-255] Provides the instant Health effect to the indicated player, according to the chosen duration and intensity
/effect [player 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 name] 8 [seconds] [level 1-255] Provides the Super Jump effect to the indicated player, according to the chosen duration and intensity
/effect [player name] 9 [seconds] [level 1-255] Causes the effect of Nausea to the indicated player, according to the chosen duration and intensity
/effect [player name] 10 [seconds] [level 1-255] Provides the Regeneration effect to the indicated player, according to the chosen duration and intensity
/effect [player name] 11 [seconds] [level 1-255] Provides the Resistance effect to the indicated player, according to the chosen duration and intensity
/effect [player name] 12 [seconds] [level 1-255] Provides the Fire Resistance effect to the indicated player, according to the chosen duration and intensity
/effect [player name] 13 [seconds] [level 1-255] Provides the Water Breathing effect to the designated player, according to the chosen duration and intensity
/effect [player name] 14 [seconds] [level 1-255] Provides the Invisibility effect to the indicated player, according to the chosen duration and intensity
/effect [player name] 15 [seconds] [level 1-255] Causes the effect of Blindness to the indicated player, according to the chosen duration and intensity
/effect [player name] 16 [seconds] [level 1-255] Provides the Night Vision effect to the indicated player, according to the chosen duration and intensity
/effect [player name] 17 [seconds] [level 1-255] Provides the Hunger effect to the indicated player, according to the chosen duration and intensity
/effect [player name] 18 [seconds] [level 1-255] Causes the effect of Weakness to the indicated player, according to the chosen duration and intensity
/effect [player name] 19 [seconds] [level 1-255] Provides the Poison effect to the indicated player, according to the chosen duration and intensity
/effect [player name] 20 [seconds] [level 1-255] Provides the Agility effect to the indicated player, according to the chosen duration and intensity
/effect [player name] 21 [seconds] [level 1-255] Provides the Health Boost effect to the indicated player, according to the chosen duration and intensity
/effect [player name] 22 [seconds] [level 1-255] Provides the Absorb effect to the indicated player, according to the chosen duration and intensity
/effect [player name] 23 [seconds] [level 1-255] Causes the Saturation effect to the indicated player, according to the chosen duration and intensity

Enchantment Commands

Command Enchantment
/enchant [Player Name] [aqua_affinity] [Enchant Level] Aquatic Affinity
/enchant [Player Name] [bane_of_arthropods] [Enchant Level] Ruin of the Arthropods
/enchant [Player Name] [binding_curse] [Enchant Level] Curse of the Link
/enchant [Player Name] [blast_protection] [Enchant Level] Explosions Protection
/enchant [Player Name] [channeling] [Enchant Level] Plumbing
/enchant [Player Name] [depth_strider] [Enchant Level] Deep steps
/enchant [Player Name] [efficiency] [Enchant Level] Efficiency
/enchant [Player Name] [feather_falling] [Enchantment Level] Feather weight
/enchant [Player Name] [fire_aspect] [Enchant Level] Flaming aspect
/enchant [Player Name] [fire_protection] [Enchant Level] Fire protection
/enchant [Player Name] [flame] [Enchant Level] Flame
/enchant [Player Name] [fortune] [Enchant Level] Fortuna
/enchant [Player Name] [frost_walker] [Enchant Level] icy footsteps
/enchant [Player Name] [impaling] [Enchant Level] Impalement
/enchant [Player Name] [infinity] [Enchant Level] infinity
/enchant [Player Name] [knockback] [Enchant Level] Repulsion
/enchant [Player Name] [looting] [Enchant Level] Sake
/enchant [Player Name] [loyalty] [Enchant Level] Loyalty
/enchant [Player Name] [luck_of_the_sea] [Enchant Level] luck of the sea
/enchant [Player Name] [lure] [Enchant Level] Bait
/enchant [Player Name] [mending] [Enchant Level] Patch
/enchant [Player Name] [multishot] [Enchant Level] Multiple Shot
/enchant [Player Name] [piercing] [Enchantment Level] Drilling
/enchant [Player Name] [power] [Enchant Level]
/enchant [Player Name] [projectile_protection] [Enchant Level] Projectile Protection
/enchant [Player Name] [protection] [Enchant Level] Protection
/enchant [Player Name] [punch] [Enchant Level] Scope
/enchant [Player Name] [quick_charge] [Enchant Level] Fast charge
/enchant [Player Name] [respiration] [Enchant Level] Breath
/enchant [Player Name] [riptide] [Enchant Level] current
/enchant [Player Name] [sharpness] [Enchant Level] sharpening
/enchant [Player Name] [silk_touch] [Enchant Level] Soft touch
/enchant [Player Name] [smite] [Enchant Level] Impact
/enchant [Player Name] [sweeping] [Enchant Level] Judgment
/enchant [Player Name] [thorns] [Enchant Level] thorns
/enchant [Player Name] [unbreaking] [Enchant Level] Unbreakable
/enchant [Player Name] [vanishing_curse] [Enchantment Level] Curse of Disappearance

Other must-see Minecraft tips:



  • How to Play Minecraft: Complete Beginner's Guide!
  • List of fun facts about Minecraft!
  • Learn how to play Minecraft online and with your friends!
  • How to make all potions
  • How to use a Command Block
  • the best seeds
  • How to get rare items
  • Learn how to find villages in Minecraft
  • Seeds of castles!
  • Learn how to install mods in Minecraft and see where to download!
  • How to put texture in all versions
  • How to create server in Minecraft
  • Modern houses in Minecraft
Audio Video Know the main commands (codes) of Minecraft!
add a comment of Know the main commands (codes) of Minecraft!
Comment sent successfully! We will review it in the next few hours.