---
key: mechanic/game-mechanics--gm-cheat-codes
type: mechanic
id: game-mechanics--gm-cheat-codes
lang: en
title: Cheat codes
summary: >-
  A special command changes normal rules: it grants items, switches modes or
  alters the world. The game determines access to these commands.
updatedAt: '2026-10-22'
status: active
url: >-
  https://gamemechanics.pro/en/knowledge/mechanic/game-mechanics--gm-cheat-codes/
jsonUrl: >-
  https://gamemechanics.pro/api/v1/knowledge/en/mechanic/game-mechanics--gm-cheat-codes.json
markdownUrl: >-
  https://gamemechanics.pro/content/knowledge/en/mechanic/game-mechanics--gm-cheat-codes.md
aliases:
  - Cheat codes and commands
tags:
  - Game design techniques
  - Progression
sourceIds:
  - source-a2e325d7bda0cc1e
  - source-c0206986a42a8038
  - source-6e87a2da2f9cb6b8
  - source-2738c86b6d19d9db
  - source-02699fb61fef3b52
  - source-6f2bb8fd2b17bf58
sources:
  - id: source-a2e325d7bda0cc1e
    title: 'Game Mechanics: Cheat codes'
    url: 'https://gamemechanics.org/patterns/cheat-codes'
    verifiedAt: null
  - id: source-c0206986a42a8038
    title: Doom (1993)
    url: 'https://gamemechanics.org/patterns/cheat-codes/game/doom'
    verifiedAt: null
  - id: source-6e87a2da2f9cb6b8
    title: Duke Nukem 3D (1996)
    url: 'https://gamemechanics.org/patterns/cheat-codes/game/duke-nukem-3d'
    verifiedAt: null
  - id: source-2738c86b6d19d9db
    title: Age of Empires (1997)
    url: 'https://gamemechanics.org/patterns/cheat-codes/game/age-of-empires'
    verifiedAt: null
  - id: source-02699fb61fef3b52
    title: The Sims (2000)
    url: 'https://gamemechanics.org/patterns/cheat-codes/game/the-sims'
    verifiedAt: null
  - id: source-6f2bb8fd2b17bf58
    title: Minecraft
    url: >-
      https://learn.microsoft.com/en-us/minecraft/creator/documents/commandsintroduction?view=minecraft-bedrock-stable
    verifiedAt: null
relations: []
placements:
  - catalogId: game-mechanics
    id: gm-cheat-codes
    title: Game design techniques
    url: 'https://gamemechanics.pro/en/mechanics/game-mechanics/#gm-cheat-codes'
    categoryIds:
      - gm-category-progression
supersededBy: []
attributes:
  preview:
    updatedAt: '2026-10-22'
    title: Cheat codes and commands
    description: >-
      A special command changes normal rules: it grants items, switches modes or
      alters the world. The game determines access to these commands.
    image:
      src: images/mechanics/minecraft-cheat-commands.webp
      width: 1440
      height: 924
      game: Minecraft
      sourceUrl: >-
        https://learn.microsoft.com/en-us/minecraft/creator/documents/commandsintroduction?view=minecraft-bedrock-stable
      originalUrl: >-
        https://learn.microsoft.com/en-us/minecraft/creator/documents/media/commands/chatcommands.png?view=minecraft-bedrock-stable
      credit: Mojang Studios / Microsoft; screenshot via Microsoft Learn
      rights: >-
        Minecraft imagery © Mojang AB / Microsoft. All rights reserved; excluded
        from the portal’s MIT and CC BY 4.0 licenses.
      caption: 'Minecraft: commands are entered through chat'
      alt: >-
        An official Minecraft screenshot shows chat and a command list over the
        world, with a slash in the input field below.
      markers:
        - x: 39
          'y': 51
          label: The command list explains their effects
        - x: 35
          'y': 94
          label: Command entry begins with a slash
    tips:
      - Separate experimental modes from saves with ordinary progression.
      - Confirm command execution and provide accessible help.
    examples:
      - title: Minecraft
        url: >-
          https://learn.microsoft.com/en-us/minecraft/creator/documents/commandsintroduction?view=minecraft-bedrock-stable
endsAt: null
provenance: >-
  Editorial reference index based on the 199 public Game Mechanics pattern pages
  checked on 2026-10-20. Original concise RU/EN definitions by
  gamemechanics.pro; pattern names, category associations and game-reference
  URLs retained from gamemechanics.org. The source gallery includes a film
  analogy. Linked materials retain their original rights; references are
  upstream attributions, not independent verification.
license: CC-BY-4.0
codeLicense: MIT
attribution: gamemechanics.pro contributors
catalogKey: catalog/game-mechanics
---
# Cheat codes

id: game-mechanics--gm-cheat-codes
type: mechanic
key: mechanic/game-mechanics--gm-cheat-codes
lang: en
status: active
url: https://gamemechanics.pro/en/knowledge/mechanic/game-mechanics--gm-cheat-codes/

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

## At a glance

![An official Minecraft screenshot shows chat and a command list over the world, with a slash in the input field below.](https://gamemechanics.pro/images/mechanics/minecraft-cheat-commands.webp)

[Minecraft](https://learn.microsoft.com/en-us/minecraft/creator/documents/commandsintroduction?view=minecraft-bedrock-stable) · Minecraft imagery © Mojang AB / Microsoft. All rights reserved; excluded from the portal’s MIT and CC BY 4.0 licenses.

1. The command list explains their effects
2. Command entry begins with a slash

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

- [Minecraft](https://learn.microsoft.com/en-us/minecraft/creator/documents/commandsintroduction?view=minecraft-bedrock-stable)

## How it works

A special command alters normal gameplay constraints.

## Variants

### How the technique works

<a id="gm-cheat-codes-rule"></a>

- A special command alters normal gameplay constraints. <a id="gm-cheat-codes-definition"></a>

## Context and limits

All 199 Game Mechanics entries at the check date: player actions, systems, presentation techniques and contested patterns. Entries are grouped by their first source-card category; all categories appear in their descriptions. Definitions use original wording. References link to game-specific galleries; images and videos remain at the source.

## Connected materials


## Sources and provenance

Editorial reference index based on the 199 public Game Mechanics pattern pages checked on 2026-10-20. Original concise RU/EN definitions by gamemechanics.pro; pattern names, category associations and game-reference URLs retained from gamemechanics.org. The source gallery includes a film analogy. Linked materials retain their original rights; references are upstream attributions, not independent verification.

- [Game Mechanics: Cheat codes](https://gamemechanics.org/patterns/cheat-codes) (id: source-a2e325d7bda0cc1e)
- [Doom (1993)](https://gamemechanics.org/patterns/cheat-codes/game/doom) (id: source-c0206986a42a8038)
- [Duke Nukem 3D (1996)](https://gamemechanics.org/patterns/cheat-codes/game/duke-nukem-3d) (id: source-6e87a2da2f9cb6b8)
- [Age of Empires (1997)](https://gamemechanics.org/patterns/cheat-codes/game/age-of-empires) (id: source-2738c86b6d19d9db)
- [The Sims (2000)](https://gamemechanics.org/patterns/cheat-codes/game/the-sims) (id: source-02699fb61fef3b52)
- [Minecraft](https://learn.microsoft.com/en-us/minecraft/creator/documents/commandsintroduction?view=minecraft-bedrock-stable) (id: source-6f2bb8fd2b17bf58)

CC-BY-4.0 · gamemechanics.pro contributors
