Talk:Command Block/Archive 1

Name?
The command block has been hinted at for being released in the creative inventory in update 1.5.1 ace25ace 10:26, 6 January 2013 (eastern time)

It should be called the Command Firer, or something. :) Sonickyle 20:56, 4 August 2012 (UTC)

This is not the forums! Noobnathan 21:32, 30 August 2012 (UTC)

Teleportation
It will FINALLY be possible with this block. YES! Xeoxer 13:09, 5 August 2012 (UTC)

Is it just me, or do some command block teleportations teleport players one block away from the real coordinates? Willco2 20:45, 14 October 2012 (UTC)

this is because commands using coordinates (eg. "/tp" or "/spawnpoint") add 0.5 to integers, like usual. To clarify, the number -33 would be interpreted as -32.5, and the number 187 would be interpreted as 187.5. -taken from command block page.

smp option
yeah what is the name of the command to enable/disable command blocks in smp (cause my server was created in 1.3.1) thank you if you answer Riothegod 03:44, 11 August 2012 (UTC)

Some commands with the command block
Here are some commands I'v seen used with the command block which could be included into the main page at some point.

Note that refers to either @p, @r or @a.

Updated: 01:37, 13 August 2012 (UTC)

I'll expand if I see more. NeedAGoodUsername 01:10, 13 August 2012 (UTC)

For everyone using teleportation, the teleported area must be a valid spot and not "inside" a block. 184.163.43.21 19:20, 15 August 2012 (UTC)

Mod commands
If there's any mods for 12w32a, or future updates, I think it would be good trivia as to whether or not commands added by mods (ex: SPC, SMP Bukkit plugins) would work with the command blocks. This would let map makers know if they can use commands from their mods such as Worldedit in use of adventure maps, or if they can't, as well as say a mod is needed to play an adventure map to its full potential as structured. Funky3000 03:16, 13 August 2012 (UTC)


 * That info belongs on the individual mods' pages, not here. 「 ディノ 奴 千？！ 」? · ☎ Dinoguy1000 03:53, 13 August 2012 (UTC)


 * I'm not talking each individual mod. I'm wondering if the command block can actually use mod commands in general. Not talking specifics, those couple were just examples. There are many mods out there that add commands, it would be good trivia to know if the command block can only use vanilla commands or not be able to use "chocolate" commands. This is also a good place for such generalized information, it only involves commands and besides, wouldn't want to crash the game, would we? ;) Or worse, be the cause of a crash because we didn't put information where it is centered upon AKA use of command blocks? Funky3000 04:30, 13 August 2012 (UTC)


 * That would probably be a question for Jeb, then; in particular, the block may not support mod commands as added by current versions of mods, but a method for adding such commands may be a part of the upcoming Mod API. 「 ディノ 奴 千？！ 」? · ☎ Dinoguy1000 05:04, 13 August 2012 (UTC)


 * It seems not to work with /pg clearPortals all, from the portalgun mod, but it may be that it will work with commands that don't need a player context.

Command Block Removed in 1.3.2
Somehow, the command block doesn't exist in 1.3.2. Someone tell me what happened and how can I get it back? Pikachu4170 17:04, 16 August 2012 (UTC)


 * Technically 12w32a was released after 1.3.2 which means all the new stuff is not included within 1.3.2. --☺ Sven ? ! 17:24, 16 August 2012 (UTC)

World Options Schematic (With Video)
Hey there, this is Tasaiala, I made a MCEdit schematic that lets you edit the gamerules commands using command blocks. This way it's prebuilt, and you don't have to set it up yourself. Just paste the .schematic into your world! Video:http://www.youtube.com/watch?v=r510tsosKlY Download: http://www.mediafire.com/?6ve861rv2fe3jhp

The bug is not a bug
The "bug" is not a bug - this will happen whne changing gamemode with cheats on as well. Therefore, it isn't a bug. 60.241.224.44 10:41, 16 September 2012 (UTC)

Dinnerbone documented it
https://gist.github.com/3736487 Looks like we missed a few points.  LB ( T 11:27, 17 September 2012 (UTC)

No more string limit?
I realized that in vanila weekly snapshot 12w38b, that string limit has been removed (or extended. Either way it got larger than 32) for Command Block. I'm not sure and want to see if someone can confirm one. If then, we should add about it on article. Kevin J Rattman 00:42, 23 September 2012 (UTC)

commandBlockOutput and doFireTIck bugged?
everytime i try to use any of these 2 commands it only seems to be toggable to an off state. is anybody else having this problem too? and if so, is there any in-game solution to it?


 * So, both  and   do the same thing? If so please report this bug here. --☺ Sven ? ! 17:25, 6 October 2012 (UTC)

multi line?
does the command block support multi-line commands(i.e. multiple commands)? if so this should be added. Use multiple Command Blocks. 173.174.111.56 22:50, 30 November 2012 (UTC)

Singleplayer?
why can't you have the command block to make a singleplayer adventure map?

you can.do /give (yourname) 137 (cheats must be enable

enable-command-block server properties problem
evrytime i enable the command block in the server properties file (i use Bukkit) the server will start but then crash after a second. It doesnt crash when i disable command blocks, but i need to enable it. Any help?


 * Post the crash log on the Bukkit forums (not here); there is very little advice that can be given without it. -- Orthotope 03:03, 25 November 2012 (UTC)

Gamerule doMobSpawning
Does this gamerule disable all spawner blocks as well as random spawning of mobs in low light? (Is this "peaceful" mode?)

Also, slight clarification please. Does "False" = no spawning, while "True" = allow spawning, or the other way around? 86.25.209.30 05:41, 29 November 2012 (UTC)


 * If doMobSpawning is set to false, all random mob spawning is disabled. This affects animals, squid, and bats, as well as hostile mobs. Monster spawners, animal spawning when chunks generate, village iron golems, and any other method of creating mobs are not affected. -- Orthotope 08:25, 29 November 2012 (UTC)

bug singleplayer
evrytime i try to add any command on singleplayer it says: must be a opped player in creative mode.... –Preceding unsigned comment was added by 189.252.116.129 (Talk) 02:00, 31 December 2012 (UTC). Please sign your posts with


 * As stated on the page, you must be in Creative mode to edit a command block; this is intentional. -- Orthotope 03:33, 31 December 2012 (UTC)

/give command
At the start of the page it says: Only players with sufficient privileges to use the 'give' command. What "sufficient privileges"? Emerald267 16:07, 1 January 2013 (UTC)


 * That typically means Op status on a server. There are custom servers out there with setups that grant/deny specific privileges with different levels of abilities, but for straight vanilla servers, there's just normal users and ops.  16:19, 1 January 2013 (UTC)

NaN trick
A neat thing I found: If you assign a position a value, (eg x=), but don't say what position, it will teleport you anywhere. I have only tested this when I have a mod installed, but if someone would confirm, that would be nice. I used: tp @p[y=240,x=,z=,r=3] -1134 233 -979 Pokechu22 01:15, 3 February 2013 (UTC) EDIT: the above command actually always teleports, regardless of your position, but if you use tp @a[y=240,x=NaN,z=NaN,r=2] -1134 233 -979 it works. Pokechu22 01:26, 3 February 2013 (UTC)

Why?
Why does Mojang have the server default to disabling command blocks? It seems unnecessary, as it is a extra step for maps, and most people aren't worried about the command block. Pokechu22 01:53, 3 February 2013 (UTC)