Skip to content

mcutils:scrape_oxidization

Vanilla scrape oxidization block behavior.

Registering

Before you can use this component you need to register it.

js
import { system } from "@minecraft/server";
import { ScrapeOxidizationComponent } from "@lpsmods/mc-utils";

system.beforeEvents.startup.subscribe((event) => {
  event.blockComponentRegistry.registerCustomComponent(
    ScrapeOxidizationComponent.typeId,
    new ScrapeOxidizationComponent(),
  );
});

Component

Options

NameTypeDefaultDescription
blockstring
particle_effectstringminecraft:max_particle
sound_effectstringscrape

Examples

Oxidized Copper Bulb

json
{
  "format_version": "1.21.100",
  "minecraft:block": {
    "description": {
      "identifier": "wiki:custom_oxidized_copper_bulb",
      "states": {
        "mcutils:powered": [false, true],
        "mcutils:lit": [false, true]
      }
    },
    "components": {
      "minecraft:tick": {
        "interval_range": [0, 0],
        "looping": true
      },
      "mcutils:waxable": {
        "block": "wiki:waxed_weathered_copper_bulb",
        "items": ["honeycomb"]
      },
      "mcutils:scrape_oxidization": {
        "block": "wiki:weathered_copper_bulb"
      },
      "mcutils:copper_bulb": {
        "lit_state": "mcutils:lit",
        "powered_state": "mcutils:powered"
      }
    }
  }
}

Not associated with or approved by Mojang Studios or Microsoft