Skip to content

Commit

Permalink
add splat effect after housefly shrinks
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAfroOfDoom committed Jan 31, 2024
1 parent 5575428 commit 1568e17
Show file tree
Hide file tree
Showing 3 changed files with 252 additions and 85 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
data merge storage utils:damage { damage: 2, radius: 1.5 }
execute positioned ~ ~-0.5 ~ run function entity:utils/damage with storage utils:damage

# Move forward
function entity:hostile/omega-flowey/attack/flies/bullet/loop/move

execute if entity @s[tag=is_terminating] run function entity:hostile/omega-flowey/attack/flies/bullet/loop/terminating
execute if entity @s[tag=is_terminating] run return 0

# Move forward
function entity:hostile/omega-flowey/attack/flies/bullet/loop/move

# Begin terminating after reaching the venus fly trap's mouth
function entity:group/start
execute if entity @e[scores={group.id=0},tag=attack-indicator,tag=flies,distance=..5] run tag @s add is_terminating
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,8 @@ execute if score @s attack.clock.i matches 0 run playsound omega-flowey:attack.f
# Start animation
execute if score @s attack.clock.i matches 0 run function animated_java:housefly/animations/shrink/play

execute if score @s attack.clock.i matches 5.. run function entity:hostile/omega-flowey/attack/flies/bullet/terminate
# Move forward until done shrinking
execute if score @s attack.clock.i matches ..3 run function entity:hostile/omega-flowey/attack/flies/bullet/loop/move

# Terminate
execute if score @s attack.clock.i matches 10.. run function entity:hostile/omega-flowey/attack/flies/bullet/terminate
Loading

0 comments on commit 1568e17

Please sign in to comment.