Command reference
Syntax can vary slightly by version. Enable cheats in a local world, or have operator permission on a server.
| Command | Syntax | Summary | Cheats |
|---|---|---|---|
| /teleport Movement | /tp <victim> <destination> | Teleport an entity to coordinates or another entity. Ex: /tp @s 100 64 -200Use ~ for relative coords. Permission level depends on world cheats / operator status on servers. | Yes |
| /give Items | /give <player> <itemName> [amount] [data] [components] | Give items to a player. Ex: /give @s diamond 64Item IDs use Bedrock namespaces (e.g. minecraft:diamond). | Yes |
| /gamemode World | /gamemode <mode> [player] | Change game mode (survival, creative, adventure, spectator where available). Ex: /gamemode creativeSpectator availability depends on version and platform. | Yes |
| /locate Exploration | /locate <structure|biome> <name> | Find the nearest structure or biome. Ex: /locate structure village_plainsStructure and biome IDs differ from Java names in some cases. Tab-complete in-game when available. | Yes |
| /weather World | /weather <clear|rain|thunder> [duration] | Set weather for the world. Ex: /weather clear 1000Duration is in game ticks on many Bedrock builds. | Yes |
| /time World | /time set <amount|day|night|noon|midnight> | Change world time. Ex: /time set dayDoes not permanently stop daylight cycle unless gamerules are changed. | Yes |
| /gamerule World | /gamerule <rule> [value] | Toggle world rules such as keepInventory or mobGriefing. Ex: /gamerule keepInventory trueRule names are case-sensitive. Some rules differ from Java Edition. | Yes |
| /enchant Items | /enchant <player> <enchantmentId> [level] | Apply an enchantment to the held item. Ex: /enchant @s sharpness 5Fails if the enchantment is incompatible with the held item. | Yes |
| /effect Players | /effect <player> <effect> [seconds] [amplifier] [hideParticles] | Apply a status effect. Ex: /effect @s speed 30 1Use /effect <player> clear to remove effects. | Yes |
| /clone Building | /clone <begin> <end> <destination> [maskMode] [cloneMode] | Copy a block region to another location. Ex: /clone 0 64 0 10 70 10 100 64 100Large clones can lag mobile devices work in smaller chunks. | Yes |
| /fill Building | /fill <from> <to> <block> [replace|outline|hollow|destroy|keep] | Fill a region with a block. Ex: /fill ~-5 ~-1 ~-5 ~5 ~-1 ~5 stoneThere is a maximum volume per command; split large builds. | Yes |
| /summon Entities | /summon <entityType> [spawnPos] [spawnEvent] [nameTag] | Spawn an entity. Ex: /summon villager ~ ~ ~Entity IDs can differ from Java (e.g. some underwater mobs). | Yes |