-
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.
🧑‍💻 update player display when running set/unset_active_player admin …
…function
- Loading branch information
1 parent
5608de1
commit e336d27
Showing
2 changed files
with
7 additions
and
0 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
datapacks/omegaflowey/data/omegaflowey.admin/function/set_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,7 +1,11 @@ | ||
tag @a remove omegaflowey.player.fighting_flowey | ||
tag @s add omegaflowey.player.fighting_flowey | ||
|
||
function gu:generate | ||
data modify storage omegaflowey:bossfight active_player_uuid set from storage gu:main out | ||
|
||
function omegaflowey.main:summit/room/cave/active_player_display/update_value with storage omegaflowey:bossfight | ||
|
||
function omegaflowey.utils:log/self { text_component: '[ \ | ||
{ "text": "Set you as the active bossfight player", "color": "yellow" } \ | ||
]' } |
3 changes: 3 additions & 0 deletions
3
datapacks/omegaflowey/data/omegaflowey.admin/function/unset_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,4 +1,7 @@ | ||
tag @s remove omegaflowey.player.fighting_flowey | ||
|
||
function omegaflowey.main:summit/room/cave/active_player_display/update_value with storage omegaflowey:bossfight | ||
|
||
function omegaflowey.utils:log/self { text_component: '[ \ | ||
{ "text": "Unset you as the active bossfight player", "color": "yellow" } \ | ||
]' } |