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
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
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
Ban one or more players from the server.
Syntax
ban <targets> [reason]
/ban-ip
Ban an IP address or the IP used by a player.
Syntax
ban-ip <target> [reason]
/banlist
Show banned players or banned IP addresses.
Syntax
banlist players
/bossbar
Create and manage custom boss bars.
Syntax
bossbar add <id> <name>
Examples
bossbar set minecraft:event value 50
/clear
Remove items from player inventories.
Syntax
clear <targets> [item] [maxCount]
/clone
Copy blocks from one region to another.
Syntax
clone <begin> <end> <destination> [replace|masked|filtered]
/damage
Apply direct damage to an entity.
Syntax
damage <target> <amount> [damageType] [at <location>|by <entity>]
/data
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
List, enable, disable, or reorder data packs.
Syntax
datapack list
/debug
Start profiling or debug a function.
Syntax
debug start
/defaultgamemode
Set the default game mode for new players.
Syntax
defaultgamemode <survival|creative|adventure|spectator>
/deop
Remove operator status from players.
Syntax
deop <targets>
/difficulty
Get or set world difficulty.
Syntax
difficulty <peaceful|easy|normal|hard>
/effect
Give or clear potion effects.
Syntax
effect give <targets> <effect> [seconds] [amplifier] [hideParticles]
/enchant
Enchant held items for selected players.
Syntax
enchant <targets> <enchantment> [level]
/execute
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
Add, set, or query player experience.
Syntax
experience add <targets> <amount> [points|levels]
/xp
Alias of experience.
Syntax
xp add <targets> <amount> [points|levels]
/fill
Fill a region with blocks.
Syntax
fill <from> <to> <block> [destroy|hollow|keep|outline|replace|strict]
/fillbiome
Change the biome in a region.
Syntax
fillbiome <from> <to> <biome> [replace <filter>]
/forceload
Force chunks to stay loaded.
Syntax
forceload add <from> [to]
/function
Run a function from a data pack.
Syntax
function <name>
/gamemode
Change a player's game mode.
Syntax
gamemode <survival|creative|adventure|spectator> [target]
/gamerule
Get or set game rules such as keepInventory or doDaylightCycle.
Syntax
gamerule <rule> [value]
Examples
gamerule keepInventory true
gamerule doDaylightCycle false
/give
Give items to players.
Syntax
give <targets> <item> [count]
Examples
give @p minecraft:diamond 64
/help
Show command help from the server.
Syntax
help [command]
/item
Modify item stacks in blocks or entity slots.
Syntax
item replace entity <targets> <slot> with <item> [count]
/jfr
Start or stop Java Flight Recorder profiling.
Syntax
jfr start
/kick
Disconnect players from the server.
Syntax
kick <targets> [reason]
/kill
Kill entities or players.
Syntax
kill [targets]
/list
Show online players.
Syntax
list
/locate
Find nearest biomes, structures, or points of interest.
Syntax
locate structure <structure>
/loot
Generate loot from loot tables into players, blocks, or the world.
Syntax
loot give <players> loot <loot_table>
/me
Broadcast an action message.
Syntax
me <action>
/msg
Send a private message.
Syntax
msg <targets> <message>
/tell
Alias of msg.
Syntax
tell <targets> <message>
/w
Alias of msg.
Syntax
w <targets> <message>
/op
Grant operator status to players.
Syntax
op <targets>
/pardon
Unban players.
Syntax
pardon <targets>
/pardon-ip
Unban an IP address.
Syntax
pardon-ip <target>
/particle
Spawn particles.
Syntax
particle <name> [pos] [delta] [speed] [count] [force|normal] [viewers]
/perf
Start or stop server performance profiling.
Syntax
perf start
/place
Place generated features, jigsaws, structures, or templates.
Syntax
place structure <structure> [pos]
/playsound
Play a sound to players.
Syntax
playsound <sound> <source> <targets> [pos] [volume] [pitch] [minVolume]
/random
Generate or reset deterministic random sequences.
Syntax
random roll <range> [sequence]
/recipe
Give or remove recipes from players.
Syntax
recipe give <targets> <recipe>
/reload
Reload data packs and server resources.
Syntax
reload
/return
Control command function return values.
Syntax
return <value>
/ride
Force entities to mount or dismount another entity.
Syntax
ride <target> mount <vehicle>
/rotate
Rotate entities or make them face a location/entity.
Syntax
rotate <target> <rotation>
/save-all
Save all server data to disk.
Syntax
save-all flush
/save-off
Disable automatic world saving.
Syntax
save-off
/save-on
Enable automatic world saving.
Syntax
save-on
/say
Broadcast a server message.
Syntax
say <message>
/schedule
Schedule functions to run later.
Syntax
schedule function <function> <time> [append|replace]
/scoreboard
Manage scoreboard objectives and player scores.
Syntax
scoreboard objectives add <objective> <criteria> [displayName]
Examples
scoreboard objectives list
scoreboard players set @p kills 0
/seed
Show the world seed.
Syntax
seed
/setblock
Set one block at a position.
Syntax
setblock <pos> <block> [destroy|keep|replace|strict]
/setidletimeout
Set how long idle players can remain connected.
Syntax
setidletimeout <minutes>
/setworldspawn
Set the world spawn point.
Syntax
setworldspawn [pos] [angle]
/spawnpoint
Set player spawn points.
Syntax
spawnpoint <targets> [pos] [angle]
/spectate
Set a player to spectate an entity.
Syntax
spectate <target> [player]
/spreadplayers
Spread entities around a region.
Syntax
spreadplayers <center> <spreadDistance> <maxRange> <respectTeams> <targets>
/stop
Stop the Minecraft server process.
Syntax
stop
/stopsound
Stop sounds for players.
Syntax
stopsound <targets> [source] [sound]
/summon
Summon an entity.
Syntax
summon <entity> [pos] [nbt]
/tag
Manage entity tags.
Syntax
tag <targets> add <name>
/team
Manage scoreboard teams.
Syntax
team add <team> [displayName]
/teammsg
Send a message to your team.
Syntax
teammsg <message>
/tm
Alias of teammsg.
Syntax
tm <message>
/teleport
Teleport entities.
Syntax
teleport <targets> <location>
/tp
Alias of teleport.
Syntax
tp <targets> <location>
/tellraw
Send raw JSON chat messages.
Syntax
tellraw <targets> <message>
/tick
Control or inspect the server tick loop.
Syntax
tick query
/time
Change or query world time.
Syntax
time set <day|night|noon|midnight>
/title
Show titles, subtitles, and actionbar messages.
Syntax
title <targets> title <title>
/transfer
Transfer players to another server when supported.
Syntax
transfer <hostname> [port] [players]
/trigger
Modify trigger-enabled scoreboard objectives.
Syntax
trigger <objective> [add|set] [value]
/weather
Set weather.
Syntax
weather <clear|rain|thunder> [duration]
/whitelist
Manage the server whitelist.
Syntax
whitelist list
/worldborder
Control the world border.
Syntax
worldborder set <distance> [time]
/scoreboard
List all scoreboard objectives.
Syntax
scoreboard objectives list
/scoreboard
Remove a scoreboard objective.
Syntax
scoreboard objectives remove <objective>
/scoreboard
List tracked scoreboard scores for a player.
Syntax
scoreboard players list [target]
/scoreboard
Set player scores.
Syntax
scoreboard players set <targets> <objective> <score>
/gamerule
Keep player inventories after death.
Syntax
gamerule keepInventory true
/gamerule
Enable or stop the day/night cycle.
Syntax
gamerule doDaylightCycle false
/gamerule
Allow or prevent mobs from changing blocks.
Syntax
gamerule mobGriefing false
/execute
Run a command only if selected entities exist.
Syntax
execute if entity <targets> run <command>
/data
Inspect block entity NBT data.
Syntax
data get block <pos> [path] [scale]
/data
Merge NBT into an entity.
Syntax
data merge entity <target> <nbt>
/team
List teams.
Syntax
team list
/team
Add players or entities to a team.
Syntax
team join <team> <members>
/whitelist
Add players to the whitelist.
Syntax
whitelist add <targets>
/whitelist
Remove players from the whitelist.
Syntax
whitelist remove <targets>
/plugins
List installed plugins on Bukkit/Paper-compatible servers.
Syntax
plugins
/version
Show server or plugin version information.
Syntax
version
/tps
Show server ticks-per-second on supported server software.
Syntax
tps
/timings
Profile server timings on supported Paper/Bukkit servers.
Syntax
timings report
/restart
Restart the server when the runtime supports it.
Syntax
restart
/spark
Common Spark plugin diagnostics when installed.
Syntax
spark profiler start
/luckperms
Common LuckPerms permission management when installed.
Syntax
luckperms user <user> permission set <permission> true
/lp
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.
