Allow custom blocks to use the engine's native falling-block behavior through a new minecraft:falling_block component, just like vanilla sand and gravel.
Suggested component syntax
Illustrative proposal, inspired by Java Edition's FallingBlockEntity properties:
"minecraft:falling_block": {
"drop_item": true,
"hurt_entities": false,
"fall_hurt_amount": 2.0,
"fall_hurt_max": 40,
"cancel_drop": false,
"time": 600
}
When a block loses its support, the engine should automatically convert it into a falling block entity, handle gravity, movement and collisions, and restore the original block when it lands.
The original block permutation and states should be preserved throughout the process.
Ideally, custom geometry and partial-height blocks should also be supported.
Falling block entity access
As a natural consequence of this component, the resulting falling block entity should be accessible through commands and Script API, just like other entities.
Creators should be able to detect, inspect and manipulate it, including changing its velocity or position, and controlling its behavior on impact.
For example, a Script API method such as dimension.spawnFallingBlock() could allow creators to spawn and manipulate falling blocks directly, using the same underlying engine functionality.
This would let add-on creators implement falling materials, sand layers, collapsing structures and other physics-based mechanics without having to simulate gravity and block movement through scripts.
0 Comments
Please sign in to leave a comment.
Post a new comment: