mcutils:wall
Vanilla wall block behavior.
Registering
Before you can use this component you need to register it.
js
import { system } from "@minecraft/server";
import { WallComponent } from "@lpsmods/mc-utils";
system.beforeEvents.startup.subscribe((event) => {
event.blockComponentRegistry.registerCustomComponent(WallComponent.typeId, new WallComponent());
});
Requirements
Component
Options
Name | Type | Default | Description |
---|---|---|---|
north_state | string | mcutils:north | |
east_state | string | mcutils:east | |
south_state | string | mcutils:south | |
west_state | string | mcutils:west | |
up_state | string | mcutils:up |
Examples
Wall
json
{
"format_version": "1.21.100",
"minecraft:block": {
"description": {
"identifier": "wiki:custom_wall",
"states": {
"mcutils:north": ["none", "low", "tall"],
"mcutils:south": ["none", "low", "tall"],
"mcutils:east": ["none", "low", "tall"],
"mcutils:west": ["none", "low", "tall"],
"mcutils:up": [true, false]
}
},
"components": {
"minecraft:tick": {
"interval_range": [0, 0],
"looping": true
},
"mcutils:wall": {
"north_state": "mcutils:north",
"east_state": "mcutils:east",
"south_state": "mcutils:south",
"west_state": "mcutils:west",
"up_state": "mcutils:up"
}
}
}
}