#Attack Animation Only Happened Once

1 messages · Page 1 of 1 (latest)

honest fjord
errant oxide
#

Can you send the rp entity file and the animation file? Also the animation controller if you're using one

honest fjord
#

{
"format_version": "1.10.0",
"minecraft:client_entity": {
"description": {
"identifier": "dominion:allosaurus_d",
"materials": {
"default": "entity_alphatest"
},
"textures": {
"default": "textures/entity/allosaurus/allo_adult"
},
"geometry": {
"default": "geometry.allo_domi"
},
"animations": {
"setup": "animation.allo_domi.idle",
"walk": "animation.allo_domi.walk",
"look_at_target": "animation.allo_domi.look_at_target",
"baby_transform": "animation.allo_domi.baby_transform",
"attack": "animation.allo_domi.attack",
"roar": "animation.allo_domi.roar"
},
"render_controllers": [
"controller.render.allosaurus_d"
],
"spawn_egg": {
"texture": "dominion:allosaurus_d",
"texture_index": 0
},
"scripts": {
"animate": [
"setup",
{
"walk": "query.modified_move_speed"
},
"look_at_target",
{
"baby_transform": "query.is_baby"
},
{
"attack": "query.is_delayed_attacking"
},
{
"roar": "query.is_roaring"
}
]
}
}
}
}

#

{
"format_version": "1.10.0",
"animation_controllers": {
"controller.animation.allosaurus_d.general": {
"initial_state": "default",
"states": {
"default": {
"animations": [
{
"walk": "query.modified_move_speed"
}
],
"transitions": [
{
"roar": "query.is_roaring"
}
]
},
"attack": {
"animations": [
"attack"
],
"transitions": [
{
"default": "query.is_delayed_attacking"
}
]
},
"roar": {
"animations": [
"roar"
],
"transitions": [
{
"default": "query.all_animations_finished"
}
]
}
}
},
"controller.animation.allosaurus_d.attack": {
"initial_state": "default",
"states": {
"default": {
"transitions": [
{
"attack": "query.variant == 1"
}
]
},
"attack": {
"animations": [
"attack"
],
"transitions": [
{
"default": "query.variant == 0"
}
]
}
}
}
}
}

errant oxide
#

Ok, it looks like you aren't using the animation controller so that's not an issue. Maybe set the attack animation to loop?

honest fjord
#

Ok, I'll try