mcutils:cauldron
Vanilla cauldron block behavior.
Registering
Before you can use this component you need to register it.
js
import { system } from "@minecraft/server";
import { CauldronComponent } from "@lpsmods/mc-utils";
system.beforeEvents.startup.subscribe((event) => {
event.blockComponentRegistry.registerCustomComponent(CauldronComponent.typeId, new CauldronComponent());
});
Component
Options
Name | Type | Default | Description |
---|---|---|---|
interactions | string[] |
Examples
Cauldron
json
{
"format_version": "1.21.100",
"minecraft:block": {
"description": {
"identifier": "wiki:custom_cauldron"
},
"components": {
"mcutils:cauldron": {
"interactions": [
"potion->wiki:water_cauldron[mcutils:level=1]->glass_bottle",
"water_bucket->wiki:water_cauldron[mcutils:level=3]->bucket",
"lava_bucket->wiki:lava_cauldron->bucket"
]
}
}
}
}