#Animation can't be played using /playanimation

1 messages · Page 1 of 1 (latest)

dark jay
#

I don't know why it doesn't work when I'm trying to play it using /playanimation

    "format_version": "1.8.0",
    "animations": {
        "animation.dragons_fury.fire": {
            "animation_length": 0.16667,
            "bones": {
                "dragon_fury": {
                    "position": {
                        "0.0": [0, 0, 0],
                        "0.0833": [3.2043, 3.0079, 2.3843],
                        "0.1667": [0, 0, 0]
                    }
                }
            }
        }
    }
}```
zealous pulsar
#

Does the animation work when played in the rp file?

dark jay
zealous pulsar
#

Ah, gotcha. I'm not entirely sure why it's not playing then. Do you get any errors when you run the command in the chat?

zealous pulsar
#

Huh, strange. Wait, are you trying to animate an attachable?

#

I don't think that's possible with /playanimation

dark jay
#

oh

#

darn

#

is there a workaround for this?

#

I'm trying to recreate the bow animation that can be found in minecraft:use_animation but sadly, it doesn't work unless my item has a durability component

zealous pulsar
#

Ah, gotcha. Perhaps you can see if you can query for a property in the rp, and set that property based on whether the player has the right items in their inventory?

dark jay
#

how is that done btw?

zealous pulsar
#

Setting the property? You can probably add an event to the player that sets it, and then trigger it using a function in tick.json and the hasitem filter. Run the true event on all players who have the right item, the false one on all who dont. This does require modifying player.json btw.

dark jay
#

that's what I did here

dark jay
#

I turned it into a food item then I add an event inside player.json that will run upon using the item

zealous pulsar
#

Ok. So it doesn't work to query for the property in the resource pack?