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
Name | Type | Default | Description |
---|---|---|---|
age_state | string | ||
max_age | number | 7 | |
converts_to | string | water |
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"
}
}
}
}