Cheat codes and commands

An official Minecraft screenshot shows chat and a command list over the world, with a slash in the input field below.The command list explains their effectsCommand entry begins with a slash
MinecraftMinecraft: commands are entered through chat
  1. The command list explains their effects
  2. Command entry begins with a slash
© Mojang Studios / Microsoft; screenshot via Microsoft Learn · Source ↗

A special command changes normal rules: it grants items, switches modes or alters the world. The game determines access to these commands.

Design tips

  • Separate experimental modes from saves with ordinary progression.
  • Confirm command execution and provide accessible help.

Examples