HT Games

How to Use Commands in Minecraft (Java & Bedrock)

Commands ("cheats") require Cheats: ON at world creation or via temporary LAN session.

Enabling Cheats

ScenarioJava EditionBedrock Edition
New WorldMore World Options → Allow Cheats: ONCheats toggle ON
Existing WorldPause → Open to LAN → Allow Cheats: ON → Start LAN World (temporary)Settings → Game → Cheats → Activate Cheats (permanent, disables achievements)

Using Commands

  1. Open Chat: T / / (PC), D-Pad Right (Console), Chat Icon (Touch).
  2. Type /command arguments (Tab autocomplete works).
  3. Press Enter / Send.

Essential Commands

CommandEffect
/gamemode <survival|creative|adventure|spectator>Change game mode
/give @s <item> [count]Give yourself item
/tp @s <x y z> or @pTeleport
/time set <day|night|noon|midnight|ticks>Set time
/difficulty <peaceful|easy|normal|hard>Change difficulty
/gamerule keepInventory trueKeep items on death
/effect give @s minecraft:<effect> [duration] [amplifier]Apply status effect

Reference

Full syntax differs slightly (Java vs Bedrock). See Minecraft Wiki - Commands.


https://www.htfbw.com © HT Games