-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replace finger gun strings/comments with bomb
- Loading branch information
1 parent
0007c59
commit 5cf9f7b
Showing
20 changed files
with
55 additions
and
55 deletions.
There are no files selected for viewing
10 changes: 5 additions & 5 deletions
10
...lowey/data/entity/functions/hostile/omega-flowey/attack/bomb/bullet/initialize.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
# Set scores | ||
scoreboard players set @s attack.clock.i -1 | ||
scoreboard players operation @s attack.speed.z = #attack-finger-guns attack.speed.z | ||
scoreboard players operation @s attack.speed.z = #attack-bomb attack.speed.z | ||
|
||
# Play bullet shoot sound | ||
playsound omega-flowey:attack.finger-guns.shoot hostile @a ~ ~ ~ 5 1 | ||
playsound omega-flowey:attack.bomb.shoot hostile @a ~ ~ ~ 5 1 | ||
|
||
# Set pitch and yaw from input | ||
execute store result entity @s Rotation[0] float 0.01 run data get storage attack:finger-guns yaw | ||
execute store result entity @s Rotation[1] float 0.01 run data get storage attack:finger-guns pitch | ||
execute store result entity @s Rotation[0] float 0.01 run data get storage attack:bomb yaw | ||
execute store result entity @s Rotation[1] float 0.01 run data get storage attack:bomb pitch | ||
|
||
# Start animation | ||
function animated_java:finger_gun_bullet/animations/shoot/play | ||
function animated_java:bomb_bullet/animations/shoot/play | ||
|
||
# Remove tags | ||
tag @s remove attack-bullet-new |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...flowey/data/entity/functions/hostile/omega-flowey/attack/bomb/bullet/terminate.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
## Terminate bullet | ||
function animated_java:finger_gun_bullet/remove/this | ||
function animated_java:bomb_bullet/remove/this |
4 changes: 2 additions & 2 deletions
4
...wey/data/entity/functions/hostile/omega-flowey/attack/bomb/executor/initialize.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
# Set scores | ||
scoreboard players set @s attack.clock.i -1 | ||
|
||
scoreboard players operation @s attack.executor.clock.length = #attack-finger-guns attack.executor.clock.length | ||
scoreboard players operation @s attack.executor.rate = #attack-finger-guns attack.executor.rate | ||
scoreboard players operation @s attack.executor.clock.length = #attack-bomb attack.executor.clock.length | ||
scoreboard players operation @s attack.executor.rate = #attack-bomb attack.executor.rate | ||
|
||
# Remove tags | ||
tag @s remove attack-executor-new |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...tity/functions/hostile/omega-flowey/attack/bomb/executor/loop/indicator/summon.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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:finger_gun/summon | ||
$execute positioned $(x) $(y) $(z) rotated $(yaw) $(pitch) run function animated_java:bomb/summon | ||
|
||
# Initialize indicator | ||
execute as @e[tag=attack-indicator-new] at @s run function entity:hostile/omega-flowey/attack/finger-guns/indicator/initialize | ||
execute as @e[tag=attack-indicator-new] at @s run function entity:hostile/omega-flowey/attack/bomb/indicator/initialize |
2 changes: 1 addition & 1 deletion
2
...owey/data/entity/functions/hostile/omega-flowey/attack/bomb/executor/terminate.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
execute as @e[tag=boss_fight] run function entity:hostile/omega-flowey/attack/finger-guns/executor/terminate/boss_fight | ||
execute as @e[tag=boss_fight] run function entity:hostile/omega-flowey/attack/bomb/executor/terminate/boss_fight | ||
|
||
kill @s |
6 changes: 3 additions & 3 deletions
6
...ey/data/entity/functions/hostile/omega-flowey/attack/bomb/indicator/initialize.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
# Set scores | ||
scoreboard players set @s attack.clock.i -1 | ||
scoreboard players operation @s attack.clock.i -= #attack-finger-guns attack.indicator.clock.delay | ||
scoreboard players operation @s attack.clock.i -= #attack-bomb attack.indicator.clock.delay | ||
|
||
scoreboard players operation @s attack.indicator.clock.length = #attack-finger-guns attack.indicator.clock.length | ||
scoreboard players operation @s attack.indicator.clock.length = #attack-bomb attack.indicator.clock.length | ||
|
||
# Set group ID | ||
function entity:group/set | ||
|
||
# Start animation | ||
function animated_java:finger_gun/animations/grow/play | ||
function animated_java:bomb/animations/grow/play | ||
|
||
# Remove tags | ||
tag @s remove attack-indicator-new |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
...ity/functions/hostile/omega-flowey/attack/bomb/indicator/loop/bullet/presummon.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
# Bullet summoning setup | ||
execute store result storage attack:finger-guns x double 0.01 run data get entity @s Pos[0] 100 | ||
execute store result storage attack:finger-guns z double 0.01 run data get entity @s Pos[2] 100 | ||
execute store result storage attack:bomb x double 0.01 run data get entity @s Pos[0] 100 | ||
execute store result storage attack:bomb z double 0.01 run data get entity @s Pos[2] 100 | ||
|
||
# Terminate associated laser | ||
function entity:hostile/omega-flowey/attack/finger-guns/indicator/loop/laser/terminate | ||
function entity:hostile/omega-flowey/attack/bomb/indicator/loop/laser/terminate | ||
|
||
# Play shoot animation | ||
function animated_java:finger_gun/animations/shoot/play | ||
function animated_java:bomb/animations/shoot/play | ||
|
||
# Summon bullet | ||
function entity:hostile/omega-flowey/attack/finger-guns/indicator/loop/bullet/summon with storage attack:finger-guns | ||
function entity:hostile/omega-flowey/attack/bomb/indicator/loop/bullet/summon with storage attack:bomb |
6 changes: 3 additions & 3 deletions
6
...entity/functions/hostile/omega-flowey/attack/bomb/indicator/loop/bullet/summon.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
# Summon bullet | ||
$execute positioned $(x) 35 $(z) run function animated_java:finger_gun_bullet/summon | ||
$execute positioned $(x) 35 $(z) run function animated_java:bomb_bullet/summon | ||
|
||
# Copy yaw to bullet | ||
execute store result storage attack:finger-guns yaw float 1 run data get entity @s Rotation[0] 100 | ||
execute store result storage attack:bomb yaw float 1 run data get entity @s Rotation[0] 100 | ||
|
||
# Initialize bullet | ||
execute as @e[tag=attack-bullet-new] run function entity:hostile/omega-flowey/attack/finger-guns/bullet/initialize | ||
execute as @e[tag=attack-bullet-new] run function entity:hostile/omega-flowey/attack/bomb/bullet/initialize |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...tity/functions/hostile/omega-flowey/attack/bomb/indicator/loop/laser/presummon.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Summon laser at same z-position as indicator | ||
execute store result storage attack:finger-guns z double 0.01 run data get entity @s Pos[2] 100 | ||
execute store result storage attack:bomb z double 0.01 run data get entity @s Pos[2] 100 | ||
|
||
function entity:hostile/omega-flowey/attack/finger-guns/indicator/loop/laser/summon with storage attack:finger-guns | ||
function entity:hostile/omega-flowey/attack/bomb/indicator/loop/laser/summon with storage attack:bomb |
4 changes: 2 additions & 2 deletions
4
.../entity/functions/hostile/omega-flowey/attack/bomb/indicator/loop/laser/summon.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
# Summon laser | ||
$execute positioned 0.5 33.5 $(z) run function animated_java:finger_gun_laser/summon | ||
$execute positioned 0.5 33.5 $(z) run function animated_java:bomb_laser/summon | ||
|
||
# Copy group id to laser | ||
execute store result storage group id int 1 run scoreboard players get @s group.id | ||
|
||
# Initialize laser | ||
execute as @e[tag=finger-guns-laser-new] run function entity:hostile/omega-flowey/attack/finger-guns/indicator/loop/laser/initialize with storage attack:finger-guns | ||
execute as @e[tag=bomb-laser-new] run function entity:hostile/omega-flowey/attack/bomb/indicator/loop/laser/initialize with storage attack:bomb |
2 changes: 1 addition & 1 deletion
2
...tity/functions/hostile/omega-flowey/attack/bomb/indicator/loop/laser/terminate.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
function entity:group/start | ||
execute as @e[tag=finger-guns-laser,scores={group.id=0}] run function animated_java:finger_gun_laser/remove/this | ||
execute as @e[tag=bomb-laser,scores={group.id=0}] run function animated_java:bomb_laser/remove/this | ||
function entity:group/end |
2 changes: 1 addition & 1 deletion
2
...wey/data/entity/functions/hostile/omega-flowey/attack/bomb/indicator/terminate.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
function animated_java:finger_gun/remove/this | ||
function animated_java:bomb/remove/this |
10 changes: 5 additions & 5 deletions
10
...ega-flowey/data/entity/functions/hostile/omega-flowey/attack/bomb/reset_scores.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
## Set fake player scores back to defaults (if they were changed by a pre-initialize attack function) | ||
# TODO(60): validate these attack parameters | ||
# (66 / 3) + 1 = 22 + 1 = 23 indicators | ||
scoreboard players set #attack-finger-guns attack.executor.clock.length 66 | ||
scoreboard players set #attack-finger-guns attack.executor.rate 3 | ||
scoreboard players set #attack-finger-guns attack.indicator.clock.delay 14 | ||
scoreboard players set #attack-bomb attack.executor.clock.length 66 | ||
scoreboard players set #attack-bomb attack.executor.rate 3 | ||
scoreboard players set #attack-bomb attack.indicator.clock.delay 14 | ||
# lifespan of indicator after summoning laser | ||
scoreboard players set #attack-finger-guns attack.indicator.clock.length 40 | ||
scoreboard players set #attack-finger-guns attack.speed.z 110 | ||
scoreboard players set #attack-bomb attack.indicator.clock.length 40 | ||
scoreboard players set #attack-bomb attack.speed.z 110 |
6 changes: 3 additions & 3 deletions
6
...acks/omega-flowey/data/entity/functions/hostile/omega-flowey/attack/bomb/start.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
## Summon finger-guns executor | ||
summon minecraft:marker ~ ~ ~ {CustomName: '"Finger-Guns Executor"', Tags:["omega-flowey-remastered","hostile","omega-flowey","attack","attack-executor","attack-executor-new","finger-guns"]} | ||
## Summon bomb executor | ||
summon minecraft:marker ~ ~ ~ {CustomName: '"Bomb Executor"', Tags:["omega-flowey-remastered","hostile","omega-flowey","attack","attack-executor","attack-executor-new","bomb"]} | ||
|
||
# Initialize attack-executor | ||
execute as @e[tag=attack-executor-new] at @s run function entity:hostile/omega-flowey/attack/finger-guns/executor/initialize | ||
execute as @e[tag=attack-executor-new] at @s run function entity:hostile/omega-flowey/attack/bomb/executor/initialize |
6 changes: 3 additions & 3 deletions
6
...packs/omega-flowey/data/entity/functions/hostile/omega-flowey/attack/bomb/tick.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
execute if entity @s[tag=attack-bullet] run function entity:hostile/omega-flowey/attack/finger-guns/bullet/loop | ||
execute if entity @s[tag=attack-executor] run function entity:hostile/omega-flowey/attack/finger-guns/executor/loop | ||
execute if entity @s[tag=attack-indicator] run function entity:hostile/omega-flowey/attack/finger-guns/indicator/loop | ||
execute if entity @s[tag=attack-bullet] run function entity:hostile/omega-flowey/attack/bomb/bullet/loop | ||
execute if entity @s[tag=attack-executor] run function entity:hostile/omega-flowey/attack/bomb/executor/loop | ||
execute if entity @s[tag=attack-indicator] run function entity:hostile/omega-flowey/attack/bomb/indicator/loop |