myCubeKub
myCubeKub
Docs
/

Play

/

Minecraft commands

105 console command references

105 Minecraft server commands & syntax guide

Search and copy operator commands ready for the myCubeKub web console (omit the leading slash in the server console). Covers world, player, gamerule and plugin diagnostics.

Showing 105 of 105 commands

/advancement

Player
Java
Since 1.12

Grant, revoke, or test player advancements.

Syntax

advancement grant <targets> <everything|only|from|through|until> <advancement>

Examples

advancement grant Steve everything
advancement revoke @a only minecraft:story/mine_stone

/attribute

Entity
Java
Since 1.16

Read or change an entity attribute such as health, speed, or scale.

Syntax

attribute <target> <attribute> get [scale]

Examples

attribute @p minecraft:generic.max_health base set 40

/ban

Admin
Java

Ban one or more players from the server.

Syntax

ban <targets> [reason]

/ban-ip

Admin
Java

Ban an IP address or the IP used by a player.

Syntax

ban-ip <target> [reason]

/banlist

Admin
Java

Show banned players or banned IP addresses.

Syntax

banlist players

/bossbar

World
Java
Since 1.13

Create and manage custom boss bars.

Syntax

bossbar add <id> <name>

Examples

bossbar set minecraft:event value 50

/clear

Player
Java & Bedrock

Remove items from player inventories.

Syntax

clear <targets> [item] [maxCount]

/clone

World
Java & Bedrock

Copy blocks from one region to another.

Syntax

clone <begin> <end> <destination> [replace|masked|filtered]

/damage

Entity
Java & Bedrock
Since 1.19.4

Apply direct damage to an entity.

Syntax

damage <target> <amount> [damageType] [at <location>|by <entity>]

/data

Data
Java
Since 1.13

Inspect or edit NBT data for blocks, entities, and storage.

Syntax

data get entity <target> [path] [scale]

Examples

data get entity @e[type=minecraft:zombie,limit=1]
data merge block ~ ~ ~ {Lock:"key"}

/datapack

Data
Java
Since 1.13

List, enable, disable, or reorder data packs.

Syntax

datapack list

/debug

Debug
Java

Start profiling or debug a function.

Syntax

debug start

/defaultgamemode

Server
Java

Set the default game mode for new players.

Syntax

defaultgamemode <survival|creative|adventure|spectator>

/deop

Admin
Java & Bedrock

Remove operator status from players.

Syntax

deop <targets>

/difficulty

World
Java & Bedrock

Get or set world difficulty.

Syntax

difficulty <peaceful|easy|normal|hard>

/effect

Player
Java
Since 1.13

Give or clear potion effects.

Syntax

effect give <targets> <effect> [seconds] [amplifier] [hideParticles]

/enchant

Player
Java & Bedrock

Enchant held items for selected players.

Syntax

enchant <targets> <enchantment> [level]

/execute

Admin
Java & Bedrock
Since 1.13

Run another command with changed executor, position, dimension, or conditions.

Syntax

execute as <targets> at @s run <command>

Examples

execute as @a at @s run particle minecraft:happy_villager ~ ~1 ~

/experience

XP
Java
Since 1.13

Add, set, or query player experience.

Syntax

experience add <targets> <amount> [points|levels]

/xp

XP
Java
Since 1.13

Alias of experience.

Syntax

xp add <targets> <amount> [points|levels]

/fill

World
Java & Bedrock

Fill a region with blocks.

Syntax

fill <from> <to> <block> [destroy|hollow|keep|outline|replace|strict]

/fillbiome

World
Java
Since 1.19.3

Change the biome in a region.

Syntax

fillbiome <from> <to> <biome> [replace <filter>]

/forceload

World
Java
Since 1.14

Force chunks to stay loaded.

Syntax

forceload add <from> [to]

/function

Data
Java
Since 1.12

Run a function from a data pack.

Syntax

function <name>

/gamemode

Player
Java & Bedrock

Change a player's game mode.

Syntax

gamemode <survival|creative|adventure|spectator> [target]

/gamerule

World
Java & Bedrock

Get or set game rules such as keepInventory or doDaylightCycle.

Syntax

gamerule <rule> [value]

Examples

gamerule keepInventory true
gamerule doDaylightCycle false

/give

Player
Java & Bedrock

Give items to players.

Syntax

give <targets> <item> [count]

Examples

give @p minecraft:diamond 64

/help

Server
Java & Bedrock

Show command help from the server.

Syntax

help [command]

/item

Player
Java
Since 1.17

Modify item stacks in blocks or entity slots.

Syntax

item replace entity <targets> <slot> with <item> [count]

/jfr

Debug
Java
Since 1.18

Start or stop Java Flight Recorder profiling.

Syntax

jfr start

/kick

Admin
Java & Bedrock

Disconnect players from the server.

Syntax

kick <targets> [reason]

/kill

Entity
Java & Bedrock

Kill entities or players.

Syntax

kill [targets]

/list

Server
Java & Bedrock

Show online players.

Syntax

list

/locate

World
Java & Bedrock
Since 1.19

Find nearest biomes, structures, or points of interest.

Syntax

locate structure <structure>

/loot

World
Java
Since 1.14

Generate loot from loot tables into players, blocks, or the world.

Syntax

loot give <players> loot <loot_table>

/me

Chat
Java & Bedrock

Broadcast an action message.

Syntax

me <action>

/msg

Chat
Java & Bedrock

Send a private message.

Syntax

msg <targets> <message>

/tell

Chat
Java & Bedrock

Alias of msg.

Syntax

tell <targets> <message>

/w

Chat
Java & Bedrock

Alias of msg.

Syntax

w <targets> <message>

/op

Admin
Java & Bedrock

Grant operator status to players.

Syntax

op <targets>

/pardon

Admin
Java

Unban players.

Syntax

pardon <targets>

/pardon-ip

Admin
Java

Unban an IP address.

Syntax

pardon-ip <target>

/particle

World
Java & Bedrock

Spawn particles.

Syntax

particle <name> [pos] [delta] [speed] [count] [force|normal] [viewers]

/perf

Debug
Java
Since 1.17

Start or stop server performance profiling.

Syntax

perf start

/place

World
Java
Since 1.19

Place generated features, jigsaws, structures, or templates.

Syntax

place structure <structure> [pos]

/playsound

Player
Java

Play a sound to players.

Syntax

playsound <sound> <source> <targets> [pos] [volume] [pitch] [minVolume]

/random

World
Java
Since 1.20.2

Generate or reset deterministic random sequences.

Syntax

random roll <range> [sequence]

/recipe

Player
Java
Since 1.12

Give or remove recipes from players.

Syntax

recipe give <targets> <recipe>

/reload

Server
Java & Bedrock

Reload data packs and server resources.

Syntax

reload

/return

Data
Java
Since 1.20

Control command function return values.

Syntax

return <value>

/ride

Entity
Java
Since 1.19.4

Force entities to mount or dismount another entity.

Syntax

ride <target> mount <vehicle>

/rotate

Entity
Java
Since 1.21.2

Rotate entities or make them face a location/entity.

Syntax

rotate <target> <rotation>

/save-all

Server
Java

Save all server data to disk.

Syntax

save-all flush

/save-off

Server
Java

Disable automatic world saving.

Syntax

save-off

/save-on

Server
Java

Enable automatic world saving.

Syntax

save-on

/say

Chat
Java & Bedrock

Broadcast a server message.

Syntax

say <message>

/schedule

Data
Java
Since 1.14

Schedule functions to run later.

Syntax

schedule function <function> <time> [append|replace]

/scoreboard

Score
Java & Bedrock

Manage scoreboard objectives and player scores.

Syntax

scoreboard objectives add <objective> <criteria> [displayName]

Examples

scoreboard objectives list
scoreboard players set @p kills 0

/seed

World
Java

Show the world seed.

Syntax

seed

/setblock

World
Java & Bedrock

Set one block at a position.

Syntax

setblock <pos> <block> [destroy|keep|replace|strict]

/setidletimeout

Server
Java

Set how long idle players can remain connected.

Syntax

setidletimeout <minutes>

/setworldspawn

World
Java & Bedrock

Set the world spawn point.

Syntax

setworldspawn [pos] [angle]

/spawnpoint

Player
Java & Bedrock

Set player spawn points.

Syntax

spawnpoint <targets> [pos] [angle]

/spectate

Player
Java
Since 1.15

Set a player to spectate an entity.

Syntax

spectate <target> [player]

/spreadplayers

Entity
Java

Spread entities around a region.

Syntax

spreadplayers <center> <spreadDistance> <maxRange> <respectTeams> <targets>

/stop

Server
Java & Bedrock

Stop the Minecraft server process.

Syntax

stop

/stopsound

Player
Java

Stop sounds for players.

Syntax

stopsound <targets> [source] [sound]

/summon

Entity
Java & Bedrock

Summon an entity.

Syntax

summon <entity> [pos] [nbt]

/tag

Entity
Java & Bedrock

Manage entity tags.

Syntax

tag <targets> add <name>

/team

Team
Java

Manage scoreboard teams.

Syntax

team add <team> [displayName]

/teammsg

Team
Java
Since 1.13

Send a message to your team.

Syntax

teammsg <message>

/tm

Team
Java
Since 1.13

Alias of teammsg.

Syntax

tm <message>

/teleport

Entity
Java & Bedrock

Teleport entities.

Syntax

teleport <targets> <location>

/tp

Entity
Java & Bedrock

Alias of teleport.

Syntax

tp <targets> <location>

/tellraw

Chat
Java & Bedrock

Send raw JSON chat messages.

Syntax

tellraw <targets> <message>

/tick

Debug
Java
Since 1.20.3

Control or inspect the server tick loop.

Syntax

tick query

/time

World
Java & Bedrock

Change or query world time.

Syntax

time set <day|night|noon|midnight>

/title

Player
Java & Bedrock

Show titles, subtitles, and actionbar messages.

Syntax

title <targets> title <title>

/transfer

Server
Java
Since 1.20.5

Transfer players to another server when supported.

Syntax

transfer <hostname> [port] [players]

/trigger

Score
Java

Modify trigger-enabled scoreboard objectives.

Syntax

trigger <objective> [add|set] [value]

/weather

World
Java & Bedrock

Set weather.

Syntax

weather <clear|rain|thunder> [duration]

/whitelist

Admin
Java & Bedrock

Manage the server whitelist.

Syntax

whitelist list

/worldborder

World
Java

Control the world border.

Syntax

worldborder set <distance> [time]

/scoreboard

Score
Java & Bedrock

List all scoreboard objectives.

Syntax

scoreboard objectives list

/scoreboard

Score
Java & Bedrock

Remove a scoreboard objective.

Syntax

scoreboard objectives remove <objective>

/scoreboard

Score
Java & Bedrock

List tracked scoreboard scores for a player.

Syntax

scoreboard players list [target]

/scoreboard

Score
Java & Bedrock

Set player scores.

Syntax

scoreboard players set <targets> <objective> <score>

/gamerule

World
Java & Bedrock

Keep player inventories after death.

Syntax

gamerule keepInventory true

/gamerule

World
Java & Bedrock

Enable or stop the day/night cycle.

Syntax

gamerule doDaylightCycle false

/gamerule

World
Java & Bedrock

Allow or prevent mobs from changing blocks.

Syntax

gamerule mobGriefing false

/execute

Admin
Java & Bedrock
Since 1.13

Run a command only if selected entities exist.

Syntax

execute if entity <targets> run <command>

/data

Data
Java
Since 1.13

Inspect block entity NBT data.

Syntax

data get block <pos> [path] [scale]

/data

Data
Java
Since 1.13

Merge NBT into an entity.

Syntax

data merge entity <target> <nbt>

/team

Team
Java

List teams.

Syntax

team list

/team

Team
Java

Add players or entities to a team.

Syntax

team join <team> <members>

/whitelist

Admin
Java & Bedrock

Add players to the whitelist.

Syntax

whitelist add <targets>

/whitelist

Admin
Java & Bedrock

Remove players from the whitelist.

Syntax

whitelist remove <targets>

/plugins

Plugin
Java & Bedrock

List installed plugins on Bukkit/Paper-compatible servers.

Syntax

plugins

/version

Plugin
Java & Bedrock

Show server or plugin version information.

Syntax

version

/tps

Plugin
Java & Bedrock

Show server ticks-per-second on supported server software.

Syntax

tps

/timings

Plugin
Java & Bedrock

Profile server timings on supported Paper/Bukkit servers.

Syntax

timings report

/restart

Plugin
Java & Bedrock

Restart the server when the runtime supports it.

Syntax

restart

/spark

Plugin
Java & Bedrock

Common Spark plugin diagnostics when installed.

Syntax

spark profiler start

/luckperms

Plugin
Java & Bedrock

Common LuckPerms permission management when installed.

Syntax

luckperms user <user> permission set <permission> true

/lp

Plugin
Java & Bedrock

Alias of LuckPerms when installed.

Syntax

lp editor

Run these commands live in the myCubeKub console

Our live console includes interactive Tab autocomplete across all 105 commands while you manage your world.