FANDOM


Repeating Command Block
150px
First Appearance 1.9
Type of Block Solid Block, Redstone
Tool Used None (cannot be destroyed outside of Creative Mode)
Data Values Hex: 89
Dec:
137
Technical Name minecraft:repeating_command_block
Stackable
Yes
(64)
Obeys Physics
No
Luminosity
No
Transparency
No

The Repeating Command Block is a redstone-powered block that was made available in the 1.9 patch for Minecraft. The Repeating Command will perform server commands over and over again when attached to a redstone circuit. This block cannot be crafted and only server administrators are allowed to place them. Command blocks can only be obtained when cheats are activated, and can still only be used in creative mode, preventing survival players in a server from accessing "staff" abilities. Repeating Command blocks are invincible outside of creative mode. With Repeating Command blocks, one can preform commands that players can not preform.

To get a repeating command block using cheats, type /give @p minecraft:repeating_command_block <amount>.

Behavior

When attached to a redstone circuit, or set to "Always" instead of "Needs Redstone," the Repeating Command Block can perform a variety of server commands, such as changing the difficulty or giving players items. There are also gamerules, which are unique commands over and over again.

This table shows the list of gamerules.

 Gamerule  What it does
commandBlockOutput Enables/disables text output of command block commands to console

doFireTick

Enables/disables fire spread.
doMobLoot Enables/disables mob drops.
doMobSpawning Enables/disables the spawning of mobs unless one wants them to ex: eggs and mob spawners will still spawn mobs.
doTileDrops Enables/disables blocks dropping items when broken (includes TNT destroying blocks).
keepInventory Enables/disables keeping inventory on death.
mobGriefing

Enables/disables creepers, ghasts, and Wither blowing up blocks, endermen picking up blocks and zombies breaking doors.

doNaturalRegeneration Enables/disables regenerating health when hunger is full or close to full.

Gamerules are case sensitive.

One must type in /gamerule before the name of the actual gamerule, and true/false tells whether one wants to disable the gamerule (false), or enable it (true).

An example of a gamerule command is /gamerule mobGriefing true.

This table shows that commands can be restricted to players on the server.

Shorthand Restriction
@p Nearest player
@r Random player
@a

All players

@f

Furthest Player

An example of a command is: /give @p minecraft:cobblestone 64, which will give the nearest player a stack of Cobblestone over and over again until the repeating command block is destroyed or is not powered..

One may also check for a specific quality of a Player or Entity; for example, /tp @p[r=10] ~ ~10 ~ will teleport the nearest Player in a radius of 10 up 10 blocks.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.