Data component format/piercing weapon
Minecraft Wiki article. Categories: Data_component_format_subpages
📌 Mirrored from Minecraft Wiki
This article is reproduced from Data component format/piercing weapon on the Minecraft Wiki. Mirrored from revision 3579994. It is licensed CC BY-NC-SA 3.0 by the Minecraft Wiki contributors — not under the Codex’s CC BY-SA 4.0, and it may not be used commercially. Edits belong upstream, not here.
- [NBT Compound / JSON Object] minecraft:piercing_weapon: Melee attacks using this item damage multiple entities along a ray, instead of only a single entity. Also prevents this item from being used to mine blocks.
- [Boolean] deals_knockback: Whether the attack deals knockback. Defaults to true.
- [Boolean] dismounts: Whether the attack dismounts the target. Defaults to false.
- [String][NBT Compound / JSON Object] sound: Optional sound event to play when a player attacks with the weapon.
- A sound event see Template:Nbt inherit/sound event/template
- [String][NBT Compound / JSON Object] hit_sound: Optional sound event to play when the weapon hits an entity.
- A sound event see Template:Nbt inherit/sound event/template
- [NBT Compound / JSON Object] minecraft:piercing_weapon: Melee attacks using this item damage multiple entities along a ray, instead of only a single entity. Also prevents this item from being used to mine blocks.
Sources
- Data component format/piercing weapon — Minecraft Wiki, CC BY-NC-SA 3.0, revision 3579994.