Topic category: Plugins and third-party tools
Hi,
I'm using an older workspace for this example. I have yet to port the whole mod to the most recent version but before that, I want to identify the cause of this issue.
My animated weapon items (pistol in this example) are using procedure triggered animations. The are used with the "When right-clicked (entity pos.)"-trigger of the item, which works perfectly otherwise.
The problem is that the animations for shooting or reloading etc. are playing for all instances of the said item in the world, meaning not only the item in the player's hand but every pistol item in any visible GUI, any pistol item on the ground or in the hand of another player.
https://i.imgur.com/rL0jADM.png
https://i.imgur.com/0u631Nf.png
How do I change the procedure so that the animation is only applied/played for the one iteration of the item in the players hand?
It seems that there are no options to narrow down which item is targeted for the animation when using the procedure block
"if item element [PISTOL] is the item [Item in main hand of [event/target entity]] then play animation [animation.pistol.shoot]".
Thanks for any ideas!
This is the procedure block used
https://i.imgur.com/70VZGsm.jpeg