Skip to content

PottableComponent Class

Makes it so you can click on a flower pot to convert it to a potted flower

Parameters

NameTypeDefaultDescription
blockStringThe potted flower block
flowerPotStringminecraft:flower_potThe empty flower pot block

Methods

onUseOn

Example

js
new PottableComponent("wiki:potted_custom_flower", "minecraft:flower_pot");
json
{
  "format_version": "1.21.20",
  "minecraft:item": {
    "description": {
      "identifier": "wiki:custom_flower"
    },
    "component": {
      "minecraft:custom_components": ["wiki:custom_flower"]
    }
  }
}

Not associated with or approved by Mojang Studios or Microsoft