{"format_version":"1.21.0","animation_controllers":{"controller.animation.player.deagle":{"initial_state":"inactive","states":{"inactive":{"on_entry":["@s gabrielaplok:remove_reloading"],"transitions":[{"fire":"q.is_item_name_any('slot.weapon.mainhand','gabrielaplok:deagle')&&q.main_hand_item_use_duration&&q.scoreboard('deagle')>=1&&!q.property('gun:reloading')&&!q.property('gun:standby')&&q.is_alive"},{"reload":"q.is_item_name_any('slot.weapon.mainhand','gabrielaplok:deagle')&&q.main_hand_item_use_duration&&q.scoreboard('deagle')<=0&&!q.property('gun:reloading')&&q.is_alive"},{"reload":"q.is_item_name_any('slot.weapon.mainhand','gabrielaplok:deagle')&&q.is_sneaking&&v.attack_time&&q.scoreboard('deagle')<=9&&!q.property('gun:reloading')&&q.is_alive"}]},"fire":{"animations":["deagle_fire"],"on_entry":["/function guns/fire/deagle","/execute as @s[score={deagle=1}] run function effect/gun_dryfire"],"transitions":[{"inactive":"!q.main_hand_item_use_duration||!q.is_alive"},{"inactive":"(q.main_hand_item_use_duration&&q.all_animations_finished)||!q.is_alive"}]},"reload":{"animations":["deagle_reload"],"on_entry":["/execute as @s[hasitem={item=gabrielaplok:deagle_mag, quantity=1..}] run event entity @s gabrielaplok:add_reloading","/execute as @s[hasitem={item=gabrielaplok:deagle_mag, quantity=..0}] run function effect/gun_dryfire"],"transitions":[{"inactive":"!q.is_item_name_any('slot.weapon.mainhand','gabrielaplok:deagle')||!q.property('gun:reloading')||!q.is_alive"},{"reloaded":"q.all_animations_finished&&q.is_item_name_any('slot.weapon.mainhand','gabrielaplok:deagle')&&q.property('gun:reloading')&&q.is_alive"}]},"reloaded":{"on_entry":["/execute as @s[hasitem={item=gabrielaplok:deagle, location=slot.weapon.mainhand}] run function guns/reload/deagle"],"transitions":[{"inactive":"1"}]}}}}}