Talk:Commands/Archive 3

Proper uses for the not function in target selectors
Does anyone have some sort of complete list of valid uses for the not function for the target selectors? It doesn't seem to ever work for any selectors that use numbers, such as @a[score_test=!1], as far as I can tell, but it does work with team names and player names, such as for @a[name=!name], @a[team=!RedRobins], or @e[type=!Player]

Is it completely restricted to selectors that aren't numbers? Kavukamaritalk 06:28, 2 January 2015 (UTC)
 * It's only available for string-based parameters, being limited to those you've listed. Skylinerw (talk) 14:36, 2 January 2015 (UTC)

Not accurate /kill description
The wiki page says the following about the kill command :

"On success, inflicts 1000 ((heart) × 500) void damage to targets "

To test that, I gave myself Health Boost 255 and healed myself completely, so I had 1044 hp, or 522 hearts (I checked it with the scoreboard), then used the /kill command.

Instead of putting me to 44hp, I died instantly.

This is what sould be expected from a "kill" command, but isn't what the page says.

I also noticed that /kill ignore absorbtion hearts, putting you at 0 normal heart without removing any of them (wich kills you anyway).

Tested on 1.8.1 in SinglePlayer. --77.205.214.83 21:12, 14 January 2015 (UTC)


 * Looks like this was changed in 1.6; instead of 1000 damage, it now does Float.MAX_VALUE, roughly 3.4 x 1038. -- Orthotopetalk 20:59, 14 January 2015 (UTC)


 * This is slightly off topic, but when the page says, "the appropriate death message," does it mean anything other than "Player fell out of the world"? I have never seen a different message from this command, but it sounds like there are multiple. SuperDyl19 (talk) 00:09, 12 December 2015 (UTC)


 * The kill command only produces one death message but localization can change it (different languages, pirate speak, etc.) which is not relevant to the command so we just link to the relevant article. See this old discussion. &mdash;munin &middot; Grid_Book_and_Quill.png Grid_Stone_Pickaxe.png &middot; 14:47, 13 December 2015 (UTC)

Achievement info
Just wondering when the "take" option was added to achievement. I'm in 1.7.10 and "/achievement give" is the only option. Was expecting to find it in the history section at least. WildBluntHickok (talk) 14:27, 19 January 2015 (UTC)

So you're playing in 1.7, and asking when the take option was added. I'm gonna go with "1.8" SuperStarWars237 (talk) 16:34, 6 July 2015 (UTC)

Inputting multiple commands at once.
Hi, so I have been playing around with the fill and set block commands to make relatively complex structures (like houses and castles) that can be made entirely by typing commands and so can be shared with friends and easily recreated in different worlds. However, this gets really laborious when they start to get complicated because every command has to be entered separately - this takes loads of time and has too much room for error in my liking. Is there a way to copy and paste a whole load of commands at once? Is there a notation I can use to separate them? or is there a mod that allows you to do this? Please let me know - I am bored to death of "ctrl c, open text, ctrl v, enter, ....." repeat til you're sick :(

Thank you!!! –Preceding unsigned comment was added by DragonzFriend (talk • contribs) at 16:36, 26 January 2015 (UTC). Please sign your posts with


 * Pressing and  while in chat allows to scroll the chat’s input history, including commands, and these can be sent/run again with . In other words, press  then  to repeat last text written in chat.
 * Running multiple commands at once requires multiple command blocks synced to a redstone circuit, or a bunch of other players, as long as they and you run the commands simultaneously.
 * Please sign your comments with . LauraFi added the “Preceding unsigned comment...” message using a template called AutoUnsigned. I may explain it later.
 * I’m Nick the Red37, f.k.a. Naista2002  16:53, 26 January 2015 (UTC)


 * thanks for your answer but I guess I wasn't very clear before, I was meaning that I want to copy and paste MULTIPLE DIFFERENT written commands from OUTSIDE minecraft (e.g. a text file) into ANY minecraft world and the issue I'm having at the moment is that this all has to be done one command at a time, which takes a long time when there are 50+ commands. I want to paste and enter them all in one go - do you want me to give an example?
 * Sorry for not signing before,
 * DragonzFriend (talk) 17:00, 26 January 2015 (UTC)
 * I don’t think it is possible in Minecraft at all. And, it is generally better to indent comments on talk pages. — I’m Nick the Red37, f.k.a. Naista2002  17:04, 26 January 2015 (UTC)


 * Ok :( thanks for your help :( DragonzFriend (talk) 17:06, 26 January 2015 (UTC)

Give Command May Not Work as Described
I'd make an edit on the main page myself, but I'm pretty bad with server commands and I wanted to make sure I was correct about this. The "Give" command's "item" parameter says it must be a valid item ID or block ID and gives the example "256" or "minecraft:iron_shovel". Is the former example still valid? In the past I could use give and use the numerical item ID, but now Minecraft seems to not accept numbers and require minecraft:iron_shovel instead. Alex3me0 (talk) 18:44, 20 February 2015 (UTC)


 * the former example is outdated, I've updated the page appropriately. – KnightMiner  (t·c) 18:52, 20 February 2015 (UTC)

Redo Table
The table is very bulky, missing command-block information, and poorly formatted. Here's an idea on how to change it:

Combine Op Only and Multiplayer Only into Restrictions. Combine Blocks, Players, Entities, and World into Alters.

Restrictions column:

Operator Multiplayer No command blocks

If some of these restrictions don't apply for a command, use only the rows for the relevant restrictions. If none of these apply, type None.

Colors:


 * None - White with black text
 * Operator - Cyan with cyan text
 * Multiplayer - Magenta with magenta text
 * No command blocks - Yellow with yellow text
 * Operator and Multiplayer - Blue with blue text
 * Operator and No command blocks - Green with green text
 * Multiplayer and No command blocks - Red with red text
 * Operator, Multiplayer, and No command blocks - Black with white text

Of course, the cell color should be lighter than the text itself except for white and black cells.

Alters:

Blocks Players Entities World

Only include the relevant ones. If it doesn't alter any blocks, write None.

Colors:


 * White if None
 * Orange if Blocks
 * Magenta if Players
 * Light blue if Entities
 * Yellow if World
 * Lime if Blocks and Players
 * Pink if Blocks and Entities
 * Gray if Blocks and World
 * Light gray if Players and Entities
 * Cyan if Players and World
 * Purple if Entities and World
 * Blue if Blocks, Players, and Entities
 * Brown if Blocks, Players, and World
 * Green if Blocks, Entities, and World
 * Red if Players, Entities, and World
 * Black if Blocks, Players, Entities, and World

Wool colors (go figure) and same text color rules as Restrictions. 108.216.23.232 00:10, 28 March 2015 (UTC)


 * The table is a summary, it does not need to list command block restrictions as there are exceptions to the rule of "if multiplayer, no command blocks".
 * Combining restrictions might make sense, though having two columns state a little text compared to a lot of text in a single column is not needed – KnightMiner  t/c 02:47, 28 March 2015 (UTC)


 * The problem with combining things into a single column is that it makes it impossible to quickly sort by any one trait so that you quickly get all the commands which affect, say, Players, to the top of the table. That's mostly what i use the table for, personally. &mdash;munin &middot; Grid_Book_and_Quill.png Grid_Stone_Pickaxe.png &middot; 15:33, 28 March 2015 (UTC)

What about changing everything to Yes and No and adding Command Blocks? 108.216.29.126 21:26, 2 June 2015 (UTC)

Help with /clear command
Is it possible to do a clear command which clear an item without NBT tag, but will not clear the item with certain NBT tag? For example - it clears the bow without custom name, but it does not clear a bow with a certain custom name? 118.136.88.117 03:58, 15 April 2015 (UTC)


 * No, you would have to do a normal /clear command and give them back the bow. 73.184.106.177 00:35, 2 July 2015 (UTC)

/solid
When was /solid removed? 108.216.29.126 21:24, 2 June 2015 (UTC)
 * I'll put it on my todo list to investigate -- unless you want to use the launcher and figure it out before I do. – Sealbudsman (Aaron) SealbudsmanFace.png t/c 22:25, 2 June 2015 (UTC)
 * Just checking in: perusing the forums, it seemed to be available during Alpha Survival Singleplayer test, and not during Alpha Survival Multiplayer test, so sometime between July and November 2010. I'm sure I can nail it down a bit better than that though. – Sealbudsman (Aaron) SealbudsmanFace.png t/c 16:41, 3 June 2015 (UTC)


 * Also, what /solid does is not mentioned anywhere in the article. I found the description in the classic server README file, though: "Switches between placing normal and placing unbreakable stone".  --Pokechu22 (talk) 23:53, 26 August 2015 (UTC)


 * I think that is somewhat self explainatory. Typing /solid cause placing stone to place bedrock instead, and typing it again restores the default placing of stone. – KnightMiner  t/c 03:43, 27 August 2015 (UTC)


 * I wouldn't consider that obvious enough to mean that it shouldn't be described in the article. Perhaps a "Removed commands" section would be useful? --Pokechu22 (talk) 16:17, 27 August 2015 (UTC)


 * done. – Sealbudsman talk/contr 19:08, 27 August 2015 (UTC)

/give isn't as new as release 1.3.1, it may date back to Alpha or prior
In 12w16a, a snapshot for release 1.3.1, there are listed several commands as being available for cheat mode: /gamemode, /toggledownfall, /time, /give, /xp, /kill. And that's reflected on this page.

But, I found an old forum post (that I stumbled across while investigating /solid) that indicates that /give was available at least during the time of the Alpha Survival Multiplayer test.

So did it move from being a multiplayer command to being a singleplayer command? For me, this throws the origin-date of all these commands into question, I will be putting this on my Todo list. – Sealbudsman (Aaron) t/c 16:39, 3 June 2015 (UTC)
 * See also: Talk:Commands/Archive 2. – LauraFi -  talk  16:43, 3 June 2015 (UTC)
 * Thanks, Laura. Funny: that link has a link to a short exchange (User_talk:Dinoguy1000) I had with Orthotope only 9 months ago, which I'd completely forgotten about. – Sealbudsman (Aaron) SealbudsmanFace.png t/c 16:58, 3 June 2015 (UTC)
 * As a point of reference, /give has been around since before this page was created. --timrem (talk) 15:45, 5 June 2015 (UTC)

/setspawn command is missing
The setspawn command is marked as added in the changelog and properly linked but does not appear in the documentation and the link is then not working. –Preceding unsigned comment was added by 89.158.178.141 (talk) at 11:34, 06 June 2015 (UTC). Please sign your posts with


 * That command was removed (likely in favor of ), the history section just does not mention that. – KnightMiner  t/c 18:04, 6 June 2015 (UTC)


 * Would it be worth re-adding the command description in a "Removed commands" section, the same way we continue to document other removed features? &mdash;munin &middot; Grid_Book_and_Quill.png Grid_Stone_Pickaxe.png &middot; 19:19, 6 June 2015 (UTC)
 * 71.212.10.80 20:23, 6 June 2015 (UTC)
 * – Sealbudsman (Aaron) SealbudsmanFace.png t/c 20:51, 6 June 2015 (UTC)
 * I would also to a removed command section. It would be awkward to state it all its usage in the history section, and since this article is a hub article I see no reason that would not work. I think it would make the most sense as a subsection of the history section, to abide with the "keep history in the history section" policy. – KnightMiner  t/c 23:24, 6 June 2015 (UTC)

I've added a "Removed commands" section with as an entry, but I don't know enough about the syntax of  to add it. Anyone?

I didn't re-read this topic before adding the section. I have no objection to Knightminer's suggestion to move the section under History. &mdash;munin &middot;  &middot; 20:56, 27 August 2015 (UTC)

Cheats
This page should note that commands can only be used if cheats are enabled. The BlobsPaper.png 15:08, 27 August 2015 (UTC)


 * To quote what the article already says when referencing when you can use commands: "In singleplayer, if cheats were enabled at world creation (via the "More World Options..." button)." – KnightMiner  t/c 15:23, 27 August 2015 (UTC)

Argument colors?
For some commands the arguments can all blend together -- for example, the clone and testforblocks commands each have nine position arguments in a row. For difficult-to-read command syntaxes, would it be a terrible idea to color the arguments to improve reading comprehension? For example, compare these:

Without the colors you have to study the arguments to see how they group. With them, it's a snap. And it helps a little to break up the wall-o-text that this article is.

We'd only color the difficult commands like these, and only those arguments for which it would be helpful?

&mdash;munin &middot;  &middot; 20:47, 5 September 2015 (UTC)


 * I like this idea. --Pokechu22 (talk) 20:49, 5 September 2015 (UTC)


 * I also like the idea, though I would use yellow instead of that green, as that green is too close the background color. As for which commands need it, other than that ones you mentioned, the only one I can think of is, though a few of the commands with multiple formats might be able to use it as well (as a way to show which part is the difference) –Preceding unsigned comment was added by KnightMiner (talk • contribs) at 03:18, 6 September 2015 (UTC). Please sign your posts with


 * Yellow works. That'll help the reg-green colorblinded too. :) &mdash;munin &middot; Grid_Book_and_Quill.png Grid_Stone_Pickaxe.png &middot; 04:53, 6 September 2015 (UTC)


 * Great idea, will definitely help differentiate similar arguments. –Goandgoo</b> ᐸ <small style="display:inline-block;line-height:1em;vertical-align:-0.4em">Talk Contribs 06:03, 6 September 2015 (UTC)


 * Also a good idea. . — Agent NickTheRed37 (talk) 16:00, 6 September 2015 (UTC)

I've added colors to commands with multiple position argument groups (clone, execute, fill, particle, and testforblocks). Are there any other commands that would benefit from colored arguments? &mdash;munin &middot;  &middot; 19:59, 6 September 2015 (UTC)

Conflicting Target Selector Information
Under the section "Selecting targets by count", it says this:

''If there are multiple nearest players, caused by them being precisely the same distance away, a player is selected by the time the player most recently joined the server. For example, if equally distant, @a[c=1] will select the player who has been on the server the longest and @e[type=Creeper,c=3] will select the three oldest creepers.''

It says that ties are won by the player who "most recently joined the server", and then it gives an example that says that the tie is broken by "the player who has been on the server the longest". This seems to contradict itself. Later in the same section, its example using a negative value for the count selector on an entity would break a tie with the "last three targets created". It does not specify if the tie breaking behaviour for players is reversed as well. --75.185.46.121 04:48, 27 October 2015 (UTC)


 * I can see how that might be confusing. I've changed it:
 * If there are multiple nearest targets, caused by them being precisely the same distance away, targets are sorted by the time they have been on the server (since their most recent join for players or their creation for other entities) with the longest times selected first. For example, if equally distant, @a[c=1] will select the player who has been on the server the longest and @e[type=Creeper,c=3] will select the three oldest creepers.
 * Does that help? &mdash;munin &middot; Grid_Book_and_Quill.png Grid_Stone_Pickaxe.png &middot; 19:03, 27 October 2015 (UTC)


 * Yes, thank you. I wonder if this behaviour should not be verified though. The reason that I say this is because under the section describing the @p selector, it says:


 * Targets the nearest player. If there are multiple nearest players, caused by them being precisely the same distance away, the player who most recently joined the server is selected. 75.185.46.121 04:48, 28 October 2015 (UTC)

JSON Conflicts
Im a beginner in JSON text, but something I cant figure out. I want to add colors to my titles, but the {color:"color"} doesnt work. maybe its the context? I used this: @a title [{color:"gold"},"text"] What did I wrong?

145.53.198.131 19:28, 30 October 2015 (UTC)


 * I'm no big user of commands, but,
 * Try this, with curly brackets surrounding the JSON tag, and with the element values and keys in quotes:

/title @a title {"color":"gold","title":"text"}
 * – Sealbudsman <span style="transform: rotate(-16deg); display: inline-block; top: -1px; position: relative;">talk/contr 22:05, 30 October 2015 (UTC)

Tellraw command not working.
Please Update The Json Provided. The Command is Not Working Properly Thank You--112.198.75.145 03:35, 21 February 2016 (UTC). --112.198.75.145 03:35, 21 February 2016 (UTC)


 * Fixed. Skylinerw (talk) 03:44, 21 February 2016 (UTC)

operator level
A recent edit to the page was made, where different operator levels were noted for each command in the commands summary table. I couldn't find anything on the wiki about operator levels. If this is a thing, maybe it should be on this page, and on the Operator page. – Sealbudsman <span style="transform: rotate(-16deg); display: inline-block; top: -1px; position: relative;">talk/contr 19:59, 3 April 2016 (UTC)


 * Apparently it is used on servers to allow some operators to have more permissions, see User talk:Cat7373. – KnightMiner  t/c 22:56, 3 April 2016 (UTC)

Behavior of /particle with colorable particles
The usage of /particle suggests that the xd, yd and zd parameters when applied to a colorable particle (eg reddust) and a count of 0 specify an RGB color offset from the default color. The problem here is that it is not offset, but rather uses specific cases. The game applies the default value to each color channel only if the entered value is exactly zero. This means that even at 0.0000001 on xd, the reddust particle is black. This of course makes no visible difference to the other currently applicable particles (mobSpell and mobSpellAmbient) as their default values are all zero anyway. Not sure how to incorporate this info into the existing paragraph. –Preceding unsigned comment was added by Techy4198 (talk • contribs) at 19:14, 20 July 2016 (UTC). Please sign your posts with


 * Did some testing and made it more correct, hopefully clearly enough. Thanks, good catch! – Sealbudsman <span style="transform: rotate(-16deg); display: inline-block; top: -1px; position: relative;">talk/contr 03:50, 22 July 2016 (UTC)

Commands in single player mode?
Hi i have tried th give command in my singleplayer world now, only trouble is, that it responds by saing that it cannot find a player by that name, even thoug I am typing in my own username? What am I doing wrong?
 * What command? PC or PE? – Sealbudsman <span style="transform: rotate(-16deg); display: inline-block; top: -1px; position: relative;">talk/contr 11:43, 30 August 2016 (UTC)
 * Try using the right capitals/lowercase in your name, see if that works. – Sealbudsman <span style="transform: rotate(-16deg); display: inline-block; top: -1px; position: relative;">talk/contr 11:47, 30 August 2016 (UTC)
 * Also try typing just the first letter of your name and then TAB. Or just use @p. &mdash;munin &middot; Grid_Book_and_Quill.png Grid_Stone_Pickaxe.png &middot; 16:14, 30 August 2016 (UTC)

PE 0.16.0 commands
There are three commands in 0.16.0 that aren't in PC: /clearfixedinv, /setfixedinvslot and /wsserver. Do we know what these do? – Sealbudsman <span style="transform: rotate(-16deg); display: inline-block; top: -1px; position: relative;">talk/contr 16:42, 30 August 2016 (UTC)


 * The /setfixedinvslot command is in Education Edition, described here, though doesn't necessarily mean it's the same implementation. Unfortunately that's all I myself can offer as I don't have PE. Skylinerw (talk) 17:03, 30 August 2016 (UTC)


 * Sorry for replying so late, but  stands for web socket server and is used to connect to a server via web sockets to receive automated command messages. Basically it's a way for the devs to send commands to a client to test stuff remotely rather than having to do it manually. There is another command, , that's used solely by the automation server to terminate sending/receiving messages via web socket. Jocopa3 (talk) 02:44, 28 October 2016 (UTC)


 * Nice; I've included that info on the page, since it's still a current command that shows up, might as well explain what it does, even if it is developer only. – Sealbudsman <span style="transform: rotate(-16deg); display: inline-block; top: -1px; position: relative;">talk/contr 03:57, 28 October 2016 (UTC)

Need some help
How /title works? Is hard--72.50.82.222 22:59, 1 December 2016 (UTC)


 * It really work--72.50.82.222 23:09, 1 December 2016 (UTC)

... grammar exists... Boorider7 (talk) 23:57, 21 December 2016 (UTC)

New PE command: /connect
Pocket Edition 1.0.0 added a  command. Unfortunately, I know nothing about playing on a server and I'm not on Reddit (yet?), so that's all I know about it. Would somebody else be willing to write it up? — Auldrick (talk) 04:03, 14 January 2017 (UTC)


 * I added it as an alias to the command, because they have the same syntax.  In retrospect, I should have verified that with  first.  It was a complete guess. –  Sealbudsman <span style="transform: rotate(-16deg); display: inline-block; top: -1px; position: relative;">talk/contr 04:11, 14 January 2017 (UTC)

/function
Needs /function command (added in 1.12-pre1). • 04:32, 11 May 2017 (UTC)


 * I see you redirected the "function" page to here because of this /function command. Do you also think the whole function system should be listed here (I'm assuming not)? If not, I don't think the "function" page should redirect to here. --Pepijn (talk) 16:50, 11 May 2017 (UTC)
 * Especially since the only remotely relevant information in this article contains a link back to Function, which brings them right back here. In situations like this you should create the Function article, or at least a stub, or you could just let the link in this page be a redlink until somebody else creates the article. I will check into having the redirect page deleted. – Auldrick (talk &middot; contribs) 19:29, 11 May 2017 (UTC)
 * Can't we just edit the existing page and remove the redirect? --Pepijn (talk) 21:04, 11 May 2017 (UTC)
 * What would be the point of that? It would just show the user a completely blank page (which I don't think is even allowed by the Wiki software, let alone the Wiki rules). No, it's perfectly fine to let your link be a redlink; it's a normal and expected thing in a hypertext document where so many pages link to so many others. – Auldrick (talk &middot; contribs) 21:09, 11 May 2017 (UTC)

Commands#Data_tags needs update.
as it was changed in 1.12. The Byte Array type is not unavailable to commands anymore... 58.128.2.108 11:12, 23 May 2017 (UTC)

Long Page
I think the list of commands should be converted to LoadPages because the page is long. <font face="'Open Sans',sans-serif">– <span class="gamepedia_pro_user" style="font-weight:700">Dentedharp90041 tc 13:00, 8 July 2017 (UTC)


 * And move all commands to Commands/kill, Commands/give, etc, and then have (Commands) /kill, etc. – Nixinova Grid_Book_and_Quill.png Grid_Diamond_Pickaxe.png Grid_Map.png 19:13, 8 July 2017 (UTC)


 * I agree that the page is rather long, but how would we deal with links, such as from cmd? An empty section header with another link to click for the actual content is not very user-friendly, but making links go directly to the subpages loses context. -- Orthotopetalk 19:25, 8 July 2017 (UTC)

Education Edition
If in Education Edition there are commands, then should be java ? (sfme) — RDmitriyS (talk) 13:25, 8 July 2017 (UTC)
 * I was late for a minute... — RDmitriyS (talk) 13:34, 8 July 2017 (UTC)
 * Alright, but that was a good question, since Education Edition always equals to Pocket Edition, shouldn't we add to all the exclusive page for PE? For instance Nether Reactor, this page is exclusive to PE but also available on EDU since it has the same codebase. – ItsPlantseed ⟨₰|₢⟩ 13:45, 8 July 2017 (UTC)