## Runs from controller.animation.end_force_bottle.summon_end_force
## @s = ldz:end_force_bottle


playsound entity.end_force_bottle.smash @a ~ ~ ~
particle ldz:end_force_bottle_break ~ ~ ~
particle ldz:end_force_bottle_splash ~ ~ ~

execute at @s[rxm=0] run tp ~ ~-1 ~

## 20
execute at @s[scores={EndForceValue=1}] run summon ldz:end_force ~ ~ ~ 0 0 set_power_to_2
execute at @s[scores={EndForceValue=1}] run summon ldz:end_force ~ ~ ~ 0 0 set_power_to_2

## 35
execute at @s[scores={EndForceValue=2}] run summon ldz:end_force ~ ~ ~ 0 0 set_power_to_5
execute at @s[scores={EndForceValue=2}] run summon ldz:end_force ~ ~ ~ 0 0 set_power_to_2

## 50
execute at @s[scores={EndForceValue=3}] run summon ldz:end_force ~ ~ ~ 0 0 set_power_to_5
execute at @s[scores={EndForceValue=3}] run summon ldz:end_force ~ ~ ~ 0 0 set_power_to_5
event entity @s despawn