Minecraft : Falling Block Command Generator

Minecraft 1.20.5 has changed the command output structure, so most commands will no longer work for 1.20.5+. An update is being worked on, but it will take some time as every tool needs to be updated and quite a number of changes have been made by Mojang. In the meantime, you can use the previous version of Minecraft (1.20.4) to use the commands. Working on this issue is the top priority.
Loading
Page

Try the Commands Troubleshooting and Help page if you get stuff with server errors.

Summon falling blocks and ghost blocks

Make a command for summoning a falling block entity. Make it hover as a ghost block, or give the falling block motion to launch it across the map. Falling blocks have similar properties as setblock, but are entities that can have motion, but also they have a life time limit.

Time

Measured in ticks this is how long the falling block will be in the world for. Time will increase at 20 ticks per second. If Time is set to 1, it will increase until it reaches 600 (30 seconds) or until it lands. If still falling it will drop as an item (if possible). Time can be set to negative, and will continue to tick up until reaching 0 at which point it will despawn. It is recommended to always set Time, as the default value of 0 will cause the falling block despawn instantly.

This block will fall for 30 seconds or until it lands
/summon falling_block ~ ~ ~ {Time:1,BlockState:{Name:cobblestone_stairs}}

Ghost blocks

Using the NoGravity tag allows the falling block to float in the air. Players can walk or fall though Ghost blocks, ideal for map makers planning traps or secret passage ways. Due to the Time limit (above), map makers will need to use a redstone timer clock to repeat the respawn command.

This block will hover, and then drop as an item after 30 seconds
/summon falling_block ~ ~ ~ {Time:1,NoGravity:1b,BlockState:{Name:cobblestone_stairs}}

This block will hover, and then despawn after 30 seconds
/summon falling_block ~ ~ ~ {Time:-600,NoGravity:1b,BlockState:{Name:cobblestone_stairs}}

New in Minecraft 1.19 is summon block_display. Summon block display is the newer recommended way to put ghost blocks into the world.

Flying Blocks

Falling blocks can be make to shoot in any direction by setting the initial motion. Maximum of 10, or -10 for reverse direction. On hitting a wall the falling block will convert into a block as usual. With upward vertical motion (z axis), the block will eventually slow and then begin to fall.

[Beta] Item Generator

This generator is a working prototype of the item generator, built on the newer command generator framework. This includes new options for command output and structured data.

Version History

6 Mar 2024
minecraft/command-generator 2.14

addedBlock transformations for summon block display
addedNew attribute max_absorption
added1.12 support give based commands
patchIssue with drop chances

22 Feb 2024
minecraft/command-generator 2.13.1

patchSigns clickEvent command nbt escaping

1 Feb 2024
minecraft/command-generator 2.13

addedStandalone raw Json text format generator
addedText editor help link
patchText parsing for hoverEvent


Read version history »
(41 More Updates)