mcutils:flint_and_steel
Makes this item place fire like a flint and steel.
Registering
Before you can use this component you need to register it.
js
import { system } from "@minecraft/server";
import { FlintAndSteelComponent } from "@lpsmods/mc-utils";
system.beforeEvents.startup.subscribe((event) => {
event.blockComponentRegistry.registerCustomComponent(FlintAndSteelComponent.typeId, new FlintAndSteelComponent());
});
Component
Options
Name | Type | Default | Description |
---|---|---|---|
block | string | fire | |
size | number | 1 |
Examples
Flint and Steel
json
{
"format_version": "1.21.100",
"minecraft:item": {
"description": {
"identifier": "wiki:custom_flint_and_steel"
},
"components": {
"mcutils:flint_and_steel": {
"size": 1,
"block": "fire"
}
}
}
}