Skip to content

mcutils:frosted_ice

Vanilla frosted ice block behavior.

Registering

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

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

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

Component

Options

NameTypeDefaultDescription
age_statestring
max_agenumber7
converts_tostringwater

Examples

Frosted Ice

json
{
  "format_version": "1.21.100",
  "minecraft:block": {
    "description": {
      "identifier": "wiki:custom_frosted_ice",
      "states": {
        "mcutils:age": [0, 1, 2, 3]
      }
    },
    "components": {
      "mcutils:frosted_ice": {
        "age_state": "mcutils:age",
        "max_age": 3,
        "converts_to": "water"
      }
    }
  }
}

Not associated with or approved by Mojang Studios or Microsoft