mcutils:candle_cake
Vanilla candle cake block behavior.
Registering
Before you can use this component you need to register it.
js
import { system } from "@minecraft/server";
import { CandleCakeComponent } from "@lpsmods/mc-utils";
system.beforeEvents.startup.subscribe((event) => {
event.blockComponentRegistry.registerCustomComponent(CandleCakeComponent.typeId, new CandleCakeComponent());
});
Requirements
Component
Options
Name | Type | Default | Description |
---|---|---|---|
candle | string | ||
lit_state | string | mcutils:lit | |
slice_state | string | mcutils:slices | |
block | string | ||
flame_position | number[] | [0,16,0] | |
flame_particle | string | minecraft:candle_flame_particle |
Examples
Candle Cake
json
{
"format_version": "1.21.100",
"minecraft:block": {
"description": {
"identifier": "wiki:custom_candle_cake",
"states": {
"mcutils:lit": [false, true]
}
},
"components": {
"minecraft:tick": {
"interval_range": [0, 0]
},
"mcutils:candle_cake": {
"candle": "minecraft:candle",
"block": "wiki:cake",
"lit_state": "mcutils:lit",
"slice_state": "mcutils:slice",
"flame_position": [0, 16, 0],
"flame_particle": "minecraft:candle_flame_particle"
}
}
}
}