ItemComponent - Weapon (Section) — SkBee

Addon: SkBee · Category: Section · Since: 3.23.0

Syntax

apply weapon component to %itemstacks/itemtypes/slots%

Description

Apply a weapon component to items. See [**Weapon Component**](https://minecraft.wiki/w/Data_component_format#weapon) on McWiki for more details.

**Entries**: - `item_damage` - Controls the amount of durability to remove each time the weapon is used to attack [optional number, defaults to 0]. - `disable_blocking` - The amount of seconds that this item can disable a blocking shield on successful attack [optional TimeSpan].

Examples

apply weapon component to player's tool:
	item_damage: 2
	disable_blocking: 5 seconds

View source