Skip to content

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

NameTypeDefaultDescription
itemstring
blockstringflower_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"
      }
    }
  }
}

Not associated with or approved by Mojang Studios or Microsoft