Skip to content

mcutils:falling_block

Vanilla falling block behavior.

Registering

Before you can use this component you need to register it.

js
import { system } from "@minecraft/server";
import { FallingBlockComponent } from "@lpsmods/mc-utils";

system.beforeEvents.startup.subscribe((event) => {
  event.blockComponentRegistry.registerCustomComponent(FallingBlockComponent.typeId, new FallingBlockComponent());
});

Requirements

Component

Options

NameTypeDefaultDescription
entitystring

Examples

Concrete Powder

json
{
  "format_version": "1.21.100",
  "minecraft:block": {
    "description": {
      "identifier": "wiki:custom_concrete_powder"
    },
    "components": {
      "minecraft:tick": {
        "interval_range": [0, 0],
        "looping": true
      },
      "mcutils:concrete_powder": {},
      "mcutils:falling_block": {
        "entity": "wiki:falling_block"
      }
    }
  }
}

Not associated with or approved by Mojang Studios or Microsoft