Gamepedia was upgraded to MediaWiki version 1.31 on Wednesday November 14th. To learn more about the upgrade and its effects click here.

Tutorials/Falling blocks

From Minecraft Wiki
Jump to: navigation, search
Falling Block
Sand.pngRed Sand.pngGravel.pngWhite Concrete Powder.pngDragon Egg.pngAnvil.png
Internal ID

JE: 21
BE: 66

Network ID

JE: 70

Entity ID

falling_block

The falling_block entity represents a block with entity physics applied. It has various applications, ranging from simple displays of falling objects to advanced command block creations.

Commands[edit]

The most basic falling_block command can be applied by running the command:

/summon falling_block <x> <y> <z> {BlockState:{Name:"minecraft:stone"}}

This command summons in a falling_block entity in the chosen (x; y; z) coordinates.

To apply properties to the block, write BlockState:{Name:<block name id>,Properties:{<blockstate_name>:<value>}} in the NBT Tag, where Properties is an optional list of block states.

Extra data can be inserted in the NBT (Named Binary Tag) to modify the how long in seconds the block remains in the air. This NBT is Time, which stands for the time (in ticks) for how long the falling_block has existed. If 0, the entity despawns, if 1 or greater, will continue ticking up, until it reaches its maximum lifetime of 600 ticks, or 30 seconds, at which point it turns into a dropped item. It will also turn into an item if it has existed for more than 100 ticks (5 seconds) and is outside the build limit (above y=256 or below y=1). Adding a value of time for the block will cause the block to assume a physical form when coming in contact with the ground, just like a normal sand block falling downwards. Ensure that the different data values are separated by commas:

/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:netherrack"},Time:1b}

/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:bedrock"},Time:1}

If the falling_block block spawns at the exact same coordinates as another block (if it would spawn inside a block), an error: "Unable to summon object." is thrown.

falling_block does not necessarily need to fall. For an explosion-like feel, or even a simple bounce, falling_block's motion path can be altered. Note the use of square brackets for the Motion tag:

/summon falling_block ~ ~2 ~ {BlockState:{Name:"minecraft:stone"},Time:1,Motion:[0.0d,0.3d,0.0d]}

The maximum lifetime – 30 seconds – cannot realistically be reached from {Time:1} unless the falling_block is riding another entity using the 'Passengers' NBT (in which case it isn't falling, but its time is still ticking). falling_block can also reach the maximum lifetime if given the NoGravity tag.

falling_block can be used to summon multiple blocks using the 'Passengers' NBT. Summoning multiple command blocks is the way you make 'one block commands'.

The NBT tag {NoGravity:1} allows the falling block not to be falling.

Uses[edit]

  • Create ghost blocks. With the addition of the NoGravity tag, a falling block can float in the air, leaving the player the thought that a solid block is there, but in fact that block can be passed through. This can be used for custom maps to hide stuff or to create secret ways. However, these ghost blocks disappear when enough time passes, so one will need to make a command block clock to respawn them.
  • Make block shooting animation. One can spawn a falling block that has a velocity vector pointing to the direction that they want it to go, so that it will be "shot" to the desired location. This can be used to make self-building houses or block explosions (blocks fly away in many directions).

Many other interesting things can be achieved using falling blocks, those are left to the creative minds of the Minecraft community.