-
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.
š ā»ļø move all active player root tag info under single execution instā¦
ā¦ance
- Loading branch information
1 parent
048fc14
commit 8303467
Showing
4 changed files
with
14 additions
and
12 deletions.
There are no files selected for viewing
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
5 changes: 5 additions & 0 deletions
5
.../omegaflowey.main/function/telemetry/bossfight/tag/root/start/as_active_player.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,6 @@ | ||
function omegaflowey.main:telemetry/bossfight/tag/root/start/get_player_id | ||
|
||
data modify storage omegaflowey:telemetry temp.bossfight_root_next.player_health set from entity @s Health | ||
|
||
function omegaflowey.main:telemetry/data/active_player/gamemode/as_active_player | ||
data modify storage omegaflowey:telemetry temp.bossfight_root_next.player_gamemode set from storage omegaflowey:telemetry temp.data.g |
9 changes: 1 addition & 8 deletions
9
...egaflowey/data/omegaflowey.main/function/telemetry/data/active_player/gamemode.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,10 +1,3 @@ | ||
function omegaflowey.main:telemetry/data/shared | ||
|
||
$execute as $(active_player_uuid) if entity @s[gamemode=survival] run \ | ||
data modify storage omegaflowey:telemetry temp.data.g set value 0 | ||
$execute as $(active_player_uuid) if entity @s[gamemode=creative] run \ | ||
data modify storage omegaflowey:telemetry temp.data.g set value 1 | ||
$execute as $(active_player_uuid) if entity @s[gamemode=adventure] run \ | ||
data modify storage omegaflowey:telemetry temp.data.g set value 2 | ||
$execute as $(active_player_uuid) if entity @s[gamemode=spectator] run \ | ||
data modify storage omegaflowey:telemetry temp.data.g set value 3 | ||
$execute as $(active_player_uuid) run function omegaflowey.main:telemetry/data/active_player/gamemode/as_active_player |
8 changes: 8 additions & 0 deletions
8
...egaflowey.main/function/telemetry/data/active_player/gamemode/as_active_player.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,8 @@ | ||
execute if entity @s[gamemode=survival] run return run \ | ||
data modify storage omegaflowey:telemetry temp.data.g set value 0 | ||
execute if entity @s[gamemode=creative] run return run \ | ||
data modify storage omegaflowey:telemetry temp.data.g set value 1 | ||
execute if entity @s[gamemode=adventure] run return run \ | ||
data modify storage omegaflowey:telemetry temp.data.g set value 2 | ||
execute if entity @s[gamemode=spectator] run return run \ | ||
data modify storage omegaflowey:telemetry temp.data.g set value 3 |