#Matching attack animation to attack damage.

3 messages · Page 1 of 1 (latest)

warped summit
#

Its not a big problem, but my attack animation is a swing. I need to match the moment you get hit with the end of the animation. I was wondering if there was a good way of doing this.

prime furnaceBOT
#
Conflicting tags detected

It looks like you have applied tags to this post that conflict. Please only apply the tags that are relevant to your post. We can only help you if we know the context of your question, and applying incorrect tags makes this confusing.

You can refer to #1029468016594911232 for a description of what each tag is for!

Welcome to the help forum!

Please make sure to read #1029468016594911232 as it may answer your question!

Once your question has been resolved, please mark the post as closed by using the </close:1163944441741049897> command.

warped summit
#

I got it to work using delayed attacking component: "minecraft:behavior.delayed_attack." Here's a link to use that: https://bedrock.dev/docs/stable/Entities#minecraft:behavior.delayed_attack . Then, in the animations controller, instead of using variable.attack_time, use query.is_delayed_attacking==1.
Minecraft uses this on the ravenger. Here are some links to those.
RP:https://github.com/Mojang/bedrock-samples/blob/main/resource_pack/animation_controllers/ravager.animation_controllers.json
BP:https://github.com/Mojang/bedrock-samples/blob/main/behavior_pack/entities/ravager.json

GitHub

Samples and assets for building Minecraft: Bedrock Edition add-ons - Mojang/bedrock-samples

GitHub

Samples and assets for building Minecraft: Bedrock Edition add-ons - Mojang/bedrock-samples

Minecraft Bedrock Entities Documentation