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