Skip to content

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

NameTypeDefaultDescription
north_statestringmcutils:north
east_statestringmcutils:east
south_statestringmcutils:south
west_statestringmcutils:west
up_statestringmcutils: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"
      }
    }
  }
}

Not associated with or approved by Mojang Studios or Microsoft