Skip to main content

Falling Blocks

The falling blocks module is used to specify what blocks are affected by gravity. Additionally, it also supports sticky blocks. If a falling block is stuck to a sticky block it will not fall.

Falling blocks will not fall if they touch a sticky block. If you make a falling block stick to itself, then it will stick only if the neighbor block is also stuck to something. Entire structures can then be built from those blocks, and they will not collapse as long as some part of the structure is stuck to a non-falling block.

Falling Blocks Element

ElementDescription
<falling-blocks> </falling-blocks>Node containing this map's falling block rules.
Sub-elementsValue/Children
<rule>An individual falling block rule.Rule Sub-elements

Rule Attributes

AttributeDescriptionValueDefault
filterPropertyRequiredFilter what blocks get modified by this rule.Block Filter
stickyPropertyRequiredThe blocks that are sticky.Block Filter
delayPropertyTick delay until blocks start to fall after they have been disturbed.Number2

Rule Sub-elements

ElementDescriptionValue/ChildrenDefault
<filter>PropertyRequiredFilter what blocks get modified by this rule.
Also accepts regions to limit the rule to a certain area.
Block Filters &
Regions
<sticky>PropertyRequiredThe blocks that are sticky.Block Filter
<delay>PropertyTick delay till blocks start to fall after they have been disturbed.Number2

Examples

<falling-blocks>
<!-- make glass fall if it is not attached to wood or glass -->
<rule>
<filter>
<material>glass</material>
</filter>
<sticky>
<any>
<material>wood</material>
<material>glass</material>
</any>
</sticky>
</rule>
</falling-blocks>
<falling-blocks>
<!-- make sandstone fall, just like sand or gravel -->
<rule>
<filter>
<material>sandstone</material>
</filter>
</rule>
</falling-blocks>
</falling-blocks>
<!-- blocks that match the "building-blocks" filter, and are inside
the "box" region, collapse if they are not connected to something
made of quartz, either directly or through other building-blocks -->
<rule>
<filter>
<all>
<region id="box"/>
<filter id="building-blocks"/>
</all>
</filter>
<sticky>
<any>
<filter id="building-blocks"/>
<material>quartz</material>
<material>quartz stairs</material>
</any>
</sticky>
</rule>
</falling-blocks>