-
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.
force indicator to summon on opposite side if another indicator still…
… exists - errors if both exist
- Loading branch information
1 parent
d013ee9
commit 48701ed
Showing
5 changed files
with
37 additions
and
11 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
...unctions/hostile/omega-flowey/attack/flies/executor/initialize/indicator/error.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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
data merge storage utils:error { error: '[ {"text": "Cannot start another ", "color":"yellow"}, {"text": "flies ", "color": "red"}, {"text":"attack when two are already running.","color":"yellow"} ]'} | ||
function utils:error with storage utils:error |
25 changes: 14 additions & 11 deletions
25
...ions/hostile/omega-flowey/attack/flies/executor/initialize/indicator/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
7 changes: 7 additions & 0 deletions
7
...tile/omega-flowey/attack/flies/executor/initialize/indicator/presummon/flipped.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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
function entity:hostile/omega-flowey/attack/flies/executor/initialize/indicator/presummon/normal | ||
|
||
# flip x | ||
scoreboard players operation @s attack.position.x *= #-1 mathf.const | ||
|
||
# flip yaw | ||
scoreboard players operation @s attack.indicator.yaw *= #-1 mathf.const |
10 changes: 10 additions & 0 deletions
10
...stile/omega-flowey/attack/flies/executor/initialize/indicator/presummon/normal.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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# x: 20.00 | ||
scoreboard players set @s attack.position.x 2000 | ||
|
||
# face west | ||
scoreboard players set @s attack.indicator.yaw 9000 | ||
|
||
# y-position will summon at y: 33.00 | ||
scoreboard players set @s attack.position.y 3300 | ||
# z-position will summon at z: 17.00 | ||
scoreboard players set @s attack.position.z 1700 |
4 changes: 4 additions & 0 deletions
4
...stile/omega-flowey/attack/flies/executor/initialize/indicator/presummon/random.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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
execute store result score @s math.0 run random value 0..1 | ||
|
||
execute if score @s math.0 matches 0 run function entity:hostile/omega-flowey/attack/flies/executor/initialize/indicator/presummon/normal | ||
execute if score @s math.0 matches 1 run function entity:hostile/omega-flowey/attack/flies/executor/initialize/indicator/presummon/flipped |