mcutils:potted_flower
Vanilla flower pot behavior.
Registering
Before you can use this component you need to register it.
js
import { system } from "@minecraft/server";
import { PottedFlowerComponent } from "@lpsmods/mc-utils";
system.beforeEvents.startup.subscribe((event) => {
event.blockComponentRegistry.registerCustomComponent(PottedFlowerComponent.typeId, new PottedFlowerComponent());
});
Component
Options
Name | Type | Default | Description |
---|---|---|---|
item | string | ||
block | string | flower_pot |
Examples
Flower
json
{
"format_version": "1.21.100",
"minecraft:block": {
"description": {
"identifier": "wiki:custom_potted_flower"
},
"components": {
"mcutils:potted_flower": {
"item": "mcutils:flower",
"block": "minecraft:flower_pot"
}
}
}
}