Minecraft:Data component format/kinetic weapon: Difference between revisions
From SAS Gaming Wiki
More actions
Sync: new page from Minecraft |
Sync: updated from Minecraft |
||
| Line 15: | Line 15: | ||
*** {{nbt|string}}{{nbt|compound|hit_sound}}: Optional [[Minecraft:sound event]] to play when the weapon hits an entity. | *** {{nbt|string}}{{nbt|compound|hit_sound}}: Optional [[Minecraft:sound event]] to play when the weapon hits an entity. | ||
**** {{nbt inherit/sound event|sounds}} | **** {{nbt inherit/sound event|sounds}} | ||
</onlyinclude><noinclude> | </onlyinclude></div><noinclude> | ||
== Notes == | == Notes == | ||
Latest revision as of 11:04, 17 May 2026
- Template:Nbt: Enables a charge-type attack when using the item where, while being used, the damage is dealt along a ray every tick based on the relative speed of the entities
- Template:Nbt: The time in ticks required before weapon is effective. Defaults to 0.
- Template:Nbt: The condition under which the charge attack deals damage.
- Template:Nbt: The condition under which the charge attack dismounts the target.
- Template:Nbt: The condition under which the charge attack deals knockback.
- Template:Nbt: The distance the item moves out of the wielder's hand during its animation. Defaults to 0.0.
- Template:Nbt: The multiplier for the final damage from the relative speed.<ref group="note">The damage dealt is calculated as
floor(relative_speed * damage_multiplier), whererelative_speedis the difference of speed vectors of the attacker and the target as projected onto the axis of the attacker's view vector. Any additional damage from enchantments or attribute modifiers is added after this calculation.
- Template:Nbt: Enables a charge-type attack when using the item where, while being used, the damage is dealt along a ray every tick based on the relative speed of the entities
</ref> Defaults to 1.0.
- Template:NbtTemplate:Nbt: Optional Minecraft:sound event to play when the weapon is engaged.
- Template:NbtTemplate:Nbt: Optional Minecraft:sound event to play when the weapon hits an entity.