Skip to content

PourableComponent Class

Parameters

NameTypeDescription
emptyItemStringThe empty item
filledItemStringThe fill item

Methods

onUse

pour

canPour

Example

js
new PourableComponent("minecraft:bucket", "minecraft:milk_bucket");
json
{
  "format_version": "1.21.20",
  "minecraft:block": {
    "description": {
      "identifier": "wiki:custom_pourable"
    },
    "component": {
      "minecraft:custom_components": ["wiki:custom_pourable"]
    }
  }
}

Not associated with or approved by Mojang Studios or Microsoft