Skip to content

How to use basic Minecraft commands

This list summarises the common commands used on Minecraft servers. Some commands are only available in Java Edition or Bedrock Edition.

Commands in the console

When running a command from the panel console, you usually do not need the leading /.

Moderation

/ban <player> [reason]                (Java)
/ban-ip <ip|player>                   (Java)
/pardon <player>                      (Java)
/pardon-ip <ip>                       (Java)
/kick <player> [reason]               (Java/Bedrock)
/whitelist add <player>               (Java)
/allowlist add <player>               (Bedrock)
/whitelist on|off|list|reload         (Java)
/allowlist on|off|list|reload         (Bedrock)

Player management

/op <player>
/deop <player>
/gamemode survival|creative|adventure|spectator <player>
/tp <target> <destination>
/give <player> <item> [amount]
/clear <player>
/effect give <player> <effect> <seconds> <amplifier>
/xp add <player> <amount>             (Java modern alias: /experience)

World control

/time set day
/time set night
/weather clear|rain|thunder
/difficulty peaceful|easy|normal|hard        (Java)
/difficulty peaceful|normal|easy|hard        (Java)
/setworldspawn
/spawnpoint <player>
/gamerule keepInventory true
/gamerule mobGriefing false
/gamerule doFireTick false
/gamerule showCoordinates true        (Bedrock)
/gamerule playersSleepingPercentage -1 (Bedrock)

Utility

/say <message>
/tell <player> <message>
/tellraw @a {"text":"Hello"}          (JSON format differs between editions)
/title @a title {"text":"WELCOME"}
/scoreboard objectives add <name> <criteria>
/save-all                             (Java)
/stop                                 (Java/Bedrock dedicated server)

Important notes

  • Command syntax is not always identical between Java and Bedrock.
  • showCoordinates is a Bedrock gamerule, not Java.
  • playersSleepingPercentage is available in modern Bedrock as an integer gamerule; a value of 0 or less makes a single sleeping player enough to skip the night.
  • /ban, /ban-ip, /pardon, and /pardon-ip are Java commands.
  • Bedrock dedicated servers use the allowlist commands for whitelist management.

Help us out

If you found this tutorial useful, please leave a review on Trustpilot! Your rating helps us make more useful guides ✨

Cheers, Team NexusCloud