Java Edition.png

Java Edition:Command Block (Item)

From Minecraft Discontinued Features Wiki
Jump to navigation Jump to search
commandBlock.gif

The command block item is normally unobtainable in survival. The item is obtainable from asynchronous exploits and 2 April Fool's snapshots. There are three variants for the impulse, repeating, and chain types. Normally, the command block items cannot be placed without creative mode and cheats / level 2 operator status, but there are methods around this.

Obtaining

Word Tearing and Any Falling Block via Asynchronous Threads

From 14w32a (1.8 snapshot) to 17w46a (1.13 snapshot), asynchronous block updates allow for block palette corruption, and this corruption, when combined with the registry palette type, can allow for the creation of any block that can exist, such as command blocks. Asynchronous block updates also allow for usage of the "generic method" to create a falling block entity of any existing block in your world.

These falling blocks may also be used to obtain their respective item, if it exists in item form, such as end portal frames. Blocks such as end gateways cannot be obtained as items with this method, as they have no corresponding item. Falling blocks also allow for the placement of both blocks that cannot normally be placed, either due to operator restrictions (e.g. command blocks) or not having an item form (e.g. end gateways).


22w13oneBlockAtATime Endermen Spawning

Pink Wither.png
Warning: April Fools' 
This feature requires April Fools' versions which may require file renaming or file deletion to load. See the Loading April Fools' Versions tutorial for more information.

Endermen in the April Fools' version 22w13oneBlockAtATime spawn carrying random blocks. One of these blocks they can spawn with is each command block variant. There are 902 different blocks that are equally likely for them to spawn with and so there is a 1/902 = 0.11% chance of the enderman spawning with this block specifically. If the enderman spawns holding a generic_item_block (1/902) there's also a 1/1105 chance it will be this block as its block state, but there's only a 0.0001% chance of this occurring.[1]

In the version, the block can be received from the enderman by angering it then letting it attack the player with an open hand. This will cause the block to transfer into the player's hand. Also, if the enderman dies and the falling block launches from the enderman, this can be picked up by the player. The items can be stored in 22w13oneBlockAtATime by switching the block from carrying to the offhand, shift right-clicking onto a donkey/mule with a chest, and then swapping the item into a slot. Additionally, the enderman carrying the block can be updated and then killed in a later version to obtain the item.

23w13a_or_b Votes

Pink Wither.png
Warning: April Fools' 
This feature requires April Fools' versions which may require file renaming or file deletion to load. See the Loading April Fools' Versions tutorial for more information.

The April Fool's snapshot 23w13a_or_b introduces a plethora of ways to obtain every block and item in the game, including command blocks. These include:

  1. The egg_free vote, when applied, will allow chickens to lay any block or item in the game (without NBT). This means all chickens have the chance of laying command blocks.
  2. The fish_anything vote, when applied, will allow any item from the creative menu (not the operator tab, with NBT) to be fished (combine with the buff_fishing vote to greatly increase fishing speed). What this means is that there is a chance that command blocks can be randomly fished.
  3. The give_item vote, when applied, will give every online player a random amount of any block or item in the game (without NBT), meaning that you could have command blocks randomly given to you.
  4. The replace_items vote, when applied, will replace all items in online players' inventories with any block or item in the game (NBT of the original replaced item is preserved). This allows for command blocks with Any NBT.
  5. The replace_loot_drop vote, when applied, will replace all loot drops of a random block or item with any block or item in the game (if the original item that is being dropped has NBT, it will be preserved). This is also another method for command blocks with Any NBT.
  6. The replace_recipe_output vote, when applied, will replace all recipes for the given item with any block or item in the game (NBT is preserved if the original output item is supposed to have NBT.) This is yet another method for command blocks with Any NBT.
  7. The villager_gem vote, when applied, will replace all emeralds in all loaded villager's trades with any block or item in the game (without NBT). This means that you can get a villager that trades command blocks, allowing for infinite amounts of command blocks.
  8. The basalt_gen_replace, cobblestone_gen_replace, obsidian_gen_replace, and stone_gen_replace votes, when applied, replace the block of their respective fluid interaction with any block in the game, allowing for blocks in invalid positions and the placement of operator-only blocks such as the Command Block.

See also

References

  1. 1/902 * 1/1105 ≈ 0.0001%