{"id":2881,"date":"2024-04-24T09:54:50","date_gmt":"2024-04-24T14:54:50","guid":{"rendered":"https:\/\/boozted.net\/?post_type=docs&#038;p=2881"},"modified":"2024-04-24T10:24:42","modified_gmt":"2024-04-24T15:24:42","password":"","slug":"java-console-commands","status":"publish","type":"docs","link":"https:\/\/boozted.net\/?docs=java-console-commands","title":{"rendered":"Java Console Commands"},"content":{"rendered":"\n<p>All of these commands work in Java Minecraft as of version 1.20.5 or April 24, 2024. Linked <a href=\"https:\/\/minecraft.fandom.com\/wiki\/Commands\">here<\/a> is a list of all commands and their arguments\/syntaxes. We will try to keep this updated as frequently as possible. <br>\/advancement: Gives, removes, or checks player advancements.<br>\/attribute: Queries, adds, removes or sets an entity attribute.<br>\/ban: Adds player to banlist.<br>\/ban-ip: Adds IP address to banlist.<br>\/banlist: Displays banlist.<br>\/bossbar: Creates and modifies bossbars.<br>\/clear: Clears items from player inventory.<br>\/clone: Copies blocks from one place to another.<br>\/damage: Applies damage to the specified entities.<br>\/data: Gets, merges, modifies and removes block entity and entity NBT data.<br>\/datapack: Controls loaded data packs.<br>\/debug: Starts or stops a debugging session.<br>\/defaultgamemode: Sets the default game mode.<br>\/deop: Revokes operator status from a player.<br>\/difficulty: Sets the difficulty level.<br>\/effect: Adds or removes status effects.<br>\/enchant: Adds an enchantment to a player&#8217;s selected item.<br>\/execute: Executes another command.<br>\/experience: An alias of \/xp. Adds or removes player experience.<br>\/fill: Fills a region with a specific block.<br>\/fillbiome: Fills a region with a specific biome.<br>\/forceload: Forces chunks to constantly be loaded or not.<br>\/function: Runs a function.<br>\/gamemode: Sets a player&#8217;s game mode.<br>\/gamerule: Sets or queries a game rule value.<br>\/give: Gives an item to a player.<br>\/help: Provides help for commands.<br>\/item: Manipulates items in inventories.<br>\/jfr: Starts or stops a JFR profiling.<br>\/kick: Kicks a player off a server.<br>\/kill: Kills entities (players, mobs, items, etc.).<br>\/list: Lists players on the server.<br>\/locate: Locates closest structure, biome, or point of interest.<br>\/loot: Drops items from an inventory slot onto the ground.<br>\/me: Displays a message about the sender.<br>\/msg: An alias of \/tell and \/w. Displays a private message to other players.<br>\/op: Grants operator status to a player.<br>\/pardon: Removes entries from the banlist.<br>\/pardon-ip: Removes entries from the banlist.<br>\/particle: Creates particles.<br>\/perf: Captures info and metrics about the game for 10 seconds.<br>\/place: Used to place a configured feature, jigsaw, template, or structure at a given location.<br>\/playsound: Plays a sound.<br>\/publish: Opens single-player world to local network.<br>\/random: Draw a random value or control the random number sequence.<br>\/recipe: Gives or takes player recipes.<br>\/reload: Reloads loot tables, advancements, and functions from disk.<br>\/return: Control execution flow inside functions and change their return value.<br>\/ride: Used to make entities ride other entities, stop entities from riding, make rides evict their riders, or summon rides or riders.<br>\/save-all: Saves the server to disk.<br>on: Enables automatic server saves.<br>off: Disables automatic server saves.<br>\/say: Displays a message to multiple players.<br>\/schedule: Delays the execution of a function.<br>\/<a href=\"https:\/\/minecraft.fandom.com\/wiki\/Commands\/scoreboard\">scoreboard<\/a>: Manages scoreboard objectives and players.<br>\/seed: Displays the world seed.<br>\/setblock: Changes a block to another block.<br>\/setidletimeout: Sets the time before idle players are kicked.<br>\/setworldspawn: Sets the world spawn.<br>\/spawnpoint: Sets the spawn point for a player.<br>\/spectate: Make one player in spectator mode spectate an entity.<br>\/spreadplayers: Teleports entities to random locations.<br>\/stop: Stops a server.<br>\/stopsound: Stops a sound.<br>\/summon: Summons an entity.<br>\/team: Controls teams.<br>\/teammsg: An alias of \/tm. Specifies the message to send to team.<br>\/teleport: An alias of \/tp. Teleports entities.<br>\/tell: An alias of \/msg and \/w. Displays a private message to other players.<br>\/tellraw: Displays a JSON message to players.<br>\/time: Changes or queries the world&#8217;s game time.<br>\/title: Manages screen titles.<br>\/tm: An alias of \/teammsg. Specifies the message to send to team.<br>\/tp: An alias of \/teleport. Teleports entities.<br>\/trigger: Sets a trigger to be activated.<br>\/w: An alias of \/tell and \/msg. Displays a private message to other players.<br>\/weather: Sets the weather.<br>\/whitelist: Manages server whitelist.<br>\/worldborder: Manages the world border.<br>\/xp: An alias of \/experience\u200c. Adds or removes player experience.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>All of these commands work in Java Minecraft as of version 1.20.5 or April 24, 2024. Linked here is a&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[46],"doc_tag":[],"class_list":["post-2881","docs","type-docs","status-publish","hentry","doc_category-java"],"acf":[],"year_month":"2026-05","word_count":623,"total_views":"0","reactions":{"happy":"0","normal":"0","sad":"1"},"author_info":{"name":"kaden mielitz","author_nicename":"baka","author_url":"https:\/\/boozted.net\/?author=2"},"doc_category_info":[{"term_name":"Java","term_url":"https:\/\/boozted.net\/?doc_category=java"}],"doc_tag_info":[],"_links":{"self":[{"href":"https:\/\/boozted.net\/index.php?rest_route=\/wp\/v2\/docs\/2881","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/boozted.net\/index.php?rest_route=\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/boozted.net\/index.php?rest_route=\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/boozted.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/boozted.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2881"}],"version-history":[{"count":7,"href":"https:\/\/boozted.net\/index.php?rest_route=\/wp\/v2\/docs\/2881\/revisions"}],"predecessor-version":[{"id":2910,"href":"https:\/\/boozted.net\/index.php?rest_route=\/wp\/v2\/docs\/2881\/revisions\/2910"}],"wp:attachment":[{"href":"https:\/\/boozted.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2881"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/boozted.net\/index.php?rest_route=%2Fwp%2Fv2%2Fdoc_category&post=2881"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/boozted.net\/index.php?rest_route=%2Fwp%2Fv2%2Fdoc_tag&post=2881"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}