Find available command syntax
/help/helpShows commands available with your current permissions. Use the in-game suggestions to check syntax for the installed version.
Source checked 2026-11-01
Find a documented command example, select Java or Bedrock and check the permissions and version notes before using it.
/help/helpShows commands available with your current permissions. Use the in-game suggestions to check syntax for the installed version.
Source checked 2026-11-01
/gamemode creative/gamemode creativeRun from player chat in a world you control or where you have permission. Creative and spectator access are not a way around a server’s rules. Bedrock cheats affect achievement eligibility.
Source checked 2026-11-01
/gamemode survival/gamemode survivalRun from player chat in a world you control or where you have permission. Creative and spectator access are not a way around a server’s rules. Bedrock cheats affect achievement eligibility.
Source checked 2026-11-01
/gamemode adventure/gamemode adventureRun from player chat in a world you control or where you have permission. Creative and spectator access are not a way around a server’s rules. Bedrock cheats affect achievement eligibility.
Source checked 2026-11-01
/gamemode spectator/gamemode spectatorRun from player chat in a world you control or where you have permission. Creative and spectator access are not a way around a server’s rules. Bedrock cheats affect achievement eligibility.
Source checked 2026-11-01
/time set day/time set dayChanges the current world time; normal time progression continues unless separately disabled by a game rule.
Source checked 2026-11-01
/time set night/time set nightChanges the current world time; normal time progression continues unless separately disabled by a game rule.
Source checked 2026-11-01
/time set noon/time set noonChanges the current world time; normal time progression continues unless separately disabled by a game rule.
Source checked 2026-11-01
/weather clear/weather clearApplies the chosen weather. Visible precipitation depends on the biome; command permissions are required.
Source checked 2026-11-01
/weather rain/weather rainApplies the chosen weather. Visible precipitation depends on the biome; command permissions are required.
Source checked 2026-11-01
/weather thunder/weather thunderApplies the chosen weather. Visible precipitation depends on the biome; command permissions are required.
Source checked 2026-11-01
/give @s minecraft:diamond 1/give @s diamond 1An example for testing in your own command-enabled world, not a survival mining method. @s refers to the player executing this in chat.
Source checked 2026-11-01
/tp @s ~ ~5 ~/tp @s ~ ~5 ~Relative coordinates use your current position. Check the destination first: teleporting into blocks or over a drop can be unsafe for the character.
Source checked 2026-11-01
/difficulty normal/difficulty normalChanges gameplay difficulty. Peaceful changes hostile-mob behaviour and can remove relevant mobs, so consider progression before switching. Locked difficulty or server settings may prevent changes.
Source checked 2026-11-01
/difficulty peaceful/difficulty peacefulChanges gameplay difficulty. Peaceful changes hostile-mob behaviour and can remove relevant mobs, so consider progression before switching. Locked difficulty or server settings may prevent changes.
Source checked 2026-11-01
/spawnpoint @s ~ ~ ~/spawnpoint @s ~ ~ ~Changes this player’s spawn point. Choose a safe location with space around it; it is different from changing the shared world spawn.
Source checked 2026-11-01
/setworldspawn ~ ~ ~/setworldspawn ~ ~ ~Changes the world spawn rather than every player’s bed or personal spawn. Use deliberately in a shared world.
Source checked 2026-11-01
/summon minecraft:pig ~ ~ ~/summon pig ~ ~ ~Creates an entity; it does not locate an existing animal. Use a clear space and avoid repeated spawning on a shared server.
Source checked 2026-11-01
/setblock ~1 ~ ~ minecraft:stone/setblock ~1 ~ ~ stoneReplaces the targeted block one block along positive X. Check the location and keep a backup before editing an existing build.
Source checked 2026-11-01
/fill ~1 ~ ~1 ~3 ~2 ~3 minecraft:glass/fill ~1 ~ ~1 ~3 ~2 ~3 glassThe two corners define an inclusive cuboid. This example changes 27 blocks and can overwrite an existing structure. Practise in a copied test world.
Source checked 2026-11-01
/effect give @s minecraft:night_vision 300 0 true/effect @s night_vision 300 0 trueJava uses the give subcommand; Bedrock places the player directly after /effect. The final true hides particles. Night Vision does not make the player invulnerable.
Source checked 2026-11-01
/effect clear @s/effect @s clearRemoves status effects, including beneficial ones. Java and Bedrock have a different argument order.
Source checked 2026-11-01
/enchant @s minecraft:unbreaking 1/enchant @s unbreaking 1Hold an item that supports the enchantment. This respects compatibility and level limits; it is not a universal way to combine incompatible enchantments.
Source checked 2026-11-01
/experience add @s 10 points/xp 10 @sAdds points, not ten experience levels. Java and Bedrock use different command forms in this example.
Source checked 2026-11-01
/gamerule minecraft:keep_inventory true/gamerule keepinventory trueJava example targets 1.21.11 and newer, including 26.x; Java 1.21.10 and older use keepInventory instead. Bedrock uses its own rule name. This changes the world’s death rules.
Source checked 2026-11-01
/gamerule minecraft:advance_time false/gamerule dodaylightcycle falseJava 1.21.11+ renamed doDaylightCycle to minecraft:advance_time. Set the matching rule back to true to resume normal progression. Bedrock retains dodaylightcycle.
Source checked 2026-11-01
/gamerule minecraft:advance_weather false/gamerule doweathercycle falseJava 1.21.11+ uses minecraft:advance_weather; older Java used doWeatherCycle. Set the matching rule to true to resume weather cycling.
Source checked 2026-11-01
/locate structure minecraft:village_plains/locate structure villagePrints a structure location in the current dimension; it does not teleport you there. Java selects a plains-village structure here; Bedrock uses the village structure identifier.
Source checked 2026-11-01
/locate biome minecraft:plains/locate biome plainsA biome lookup, not a structure search. Confirm identifiers through your installed version’s autocomplete before modifying the example.
Source checked 2026-11-01
/seedJava command only in this index. For Bedrock, read the seed from the world’s settings. Recreating a seed does not recover buildings or inventory. Server access may require permission.
Source checked 2026-11-01