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