ItemComponent - Kinetic Weapon Condition (Section) — SkBee
Addon: SkBee · Category: Section · Since: 3.23.0
Syntax
apply kinetic weapon conditionDescription
Applies a kinetic weapon condition to the kinetic weapon section. See [**Kinetic Weapon Component**](https://minecraft.wiki/w/Data_component_format#kinetic_weapon) on McWiki for more info.
**Entries**: - `max_duration_ticks` = The time in ticks after which the condition is no longer checked. This starts after delay has elapsed (requird timespan). - `min_speed` = The minimum speed of the attacker, in blocks per second, along the direction that the attacker is looking. [optional number, defaults to 0.0]. - `min_relative_speed` = The minimum relative speed between the attacker and target, in blocks per second, along the direction that the attacker is looking. [optional number, defaults to 0.0].
Examples
apply kinetic weapon component to {_i}:
delay_ticks: 13 ticks
forward_movement: 0.38
damage_multiplier: 0.82
sound: "minecraft:item.spear.use"
hit_sound: "minecraft:item.spear.hit"
damage_conditions:
apply kinetic weapon condition:
max_duration_ticks: 250 ticks
min_relative_speed: 4.6
dismount_conditions:
apply kinetic weapon condition:
max_duration_ticks: 80 ticks
min_speed: 12.0