Enable cheats when creating world (or /gamerule allowCheats true in Bedrock). Open chat (T or /) and enter:
| Command | Description | Example |
|---|---|---|
/gamemode <mode> [player] | Change mode: survival, creative, adventure, spectator | /gamemode creative @p |
/give <player> <item> [count] | Give item | /give @p diamond_sword 1 |
/tp <target> <location> | Teleport | /tp @p 100 64 100 |
/kill <target> | Kill entity | /kill @e[type=creeper] |
/time set <value> | Set time: day, night, noon, midnight, or ticks | /time set day |
/weather <type> | clear, rain, thunder | /weather clear |
/effect give <player> <effect> [duration] [amplifier] | Apply status effect | /effect give @p speed 30 2 |
/summon <entity> [pos] [nbt] | Spawn entity | /summon villager ~ ~1 ~ {VillagerData:{profession:"minecraft:librarian"}} |
/fill <from> <to> <block> | Fill region | /fill ~-5 ~-1 ~-5 ~5 ~-1 ~5 stone |
/clone <begin> <end> <dest> | Copy blocks | /clone 0 64 0 10 70 10 100 64 100 |
/setblock <pos> <block> | Place single block | /setblock ~ ~1 ~ diamond_block |
@p nearest player, @a all players, @r random player, @e all entities, @s self./help lists all commands.