Skip to content

mcutils:hoe

Makes this item till dirt like a hoe.

Registering

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

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

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

Component

Options

NameTypeDefaultDescription
sizenumber1
blockstringfarmland

Examples

Hoe

json
{
  "format_version": "1.21.100",
  "minecraft:item": {
    "description": {
      "identifier": "wiki:custom_hoe"
    },
    "components": {
      "mcutils:hoe": {
        "size": 1,
        "block": "farmland"
      }
    }
  }
}

Not associated with or approved by Mojang Studios or Microsoft