Modules

The falling blocks module is used to specify what blocks are affected by gravity. Additional 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.

Element Description
<falling-blocks> </falling-blocks> Node containing this map's falling block rules.
Sub-elements Value/Children
<rule> An individual falling block rule. Rule Sub-elements
Rule Attributes
Attribute Description Value Default
filter Property Required Filter what blocks get modified by this rule. Block Filter
sticky Property Required The blocks that are sticky. Block Filter
delay Property Tick delay till blocks start to fall after they have been disturbed. Number 2
Rule Sub-elements
Element Description Value/Children Default
<filter> Property Required Filter what blocks get modified by this rule.
Also accepts regions to limit the rule to a certain area.
Block Filters & Regions
<sticky> Property Required The blocks that are sticky. Block Filters
<delay> Property Tick delay till blocks start to fall after they have been disturbed. Number 2

Example

<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>