#execute on attacker run say left click
#execute on target run say right click

scoreboard players add $intro mowse_main 1
tellraw @a {"text":" ","color":"light_purple"}

execute if score $intro mowse_main matches 1 run tellraw @a {"text":"<Battle Boar>: It's carnage out there... a real pigsty! ","color":"light_purple"}
execute if score $intro mowse_main matches 1 run playsound minecraft:entity.hoglin.ambient hostile @a -49 216 47 1 .8

execute if score $intro mowse_main matches 2 run execute if score $player_count mowse_main matches 2.. run tellraw @a {"text":"<Battle Boar>: Just when we think we're bacon, a few reincarnating soldiers turn up!","color":"light_purple"}
execute if score $intro mowse_main matches 2 run execute if score $player_count mowse_main matches ..1 run tellraw @a {"text":"<Battle Boar>: Just when we think we're bacon, a reincarnating soldier turns up!","color":"light_purple"}
execute if score $intro mowse_main matches 2 run playsound minecraft:entity.hoglin.ambient hostile @a -49 216 47 1 1.2

execute if score $intro mowse_main matches 3 run tellraw @a {"text":"<Battle Boar>: The barbaric bastion-dwellers out there get all their power from two wool cores...","color":"light_purple"}
execute if score $intro mowse_main matches 3 run playsound minecraft:entity.hoglin.ambient hostile @a -49 216 47 1 1

execute if score $intro mowse_main matches 4 run tellraw @a {"text":"<Battle Boar>: We can only win this war when they're both thrown in that magical lava pit over there!","color":"light_purple"}
execute if score $intro mowse_main matches 4 run playsound minecraft:entity.hoglin.ambient hostile @a -49 216 47 1 1.1

execute if score $intro mowse_main matches 5 run tellraw @a {"text":"<Battle Boar>: Can we count on you to vanquish our foes?","color":"light_purple"}
execute if score $intro mowse_main matches 5 run playsound minecraft:entity.hoglin.ambient hostile @a -49 216 47 1 0.9

execute if score $intro mowse_main matches 6 run tellraw @a {"text":"<Battle Boar>: Great! I'll stay here and protect this monu- I mean lava pit. Go forth!","color":"light_purple"}
execute if score $intro mowse_main matches 6 run playsound minecraft:entity.hoglin.ambient hostile @a -49 216 47 1 1.3
execute if score $intro mowse_main matches 6 run kill @e[tag=m_intro_talk]


execute if score $intro mowse_main matches 6 run schedule function mowse:click/intro_scene_1 2s

execute if score $intro mowse_main matches 1..6 run execute as @a at @s run playsound minecraft:ui.toast.in master @s ~ ~ ~ 2 1.2





data remove entity @s attack


