Skip to content

Commit

Permalink
use bomb AJ model for bullet
Browse files Browse the repository at this point in the history
- also convert indicator to marker entity
  • Loading branch information
TheAfroOfDoom committed Jan 9, 2024
1 parent 3c62233 commit 55c2840
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
## Terminate bullet
function animated_java:bomb_bullet/remove/this
function animated_java:bomb/remove/this
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Summon indicator
$execute positioned $(x) $(y) $(z) rotated $(yaw) $(pitch) run function animated_java:bomb/summon
$summon minecraft:marker $(x) $(y) $(z) { CustomName: '"Bomb Indicator"', Tags:["omega-flowey-remastered","groupable","hostile","omega-flowey","attack","attack-indicator","attack-indicator-new","bomb"]}

# Initialize indicator
execute as @e[tag=attack-indicator-new] at @s run function entity:hostile/omega-flowey/attack/bomb/indicator/initialize
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
# Summon bullet
$execute positioned $(x) 35 $(z) run function animated_java:bomb_bullet/summon

# Copy yaw to bullet
execute store result storage attack:bomb yaw float 1 run data get entity @s Rotation[0] 100
$execute positioned $(x) 45 $(z) rotated 0 0 run function animated_java:bomb/summon

# Initialize bullet
execute as @e[tag=attack-bullet-new] run function entity:hostile/omega-flowey/attack/bomb/bullet/initialize
Original file line number Diff line number Diff line change
@@ -1 +1 @@
function animated_java:bomb/remove/this
kill @s

0 comments on commit 55c2840

Please sign in to comment.