From 09f07887d2b5e22478d99e5992a579af6fbebd6e Mon Sep 17 00:00:00 2001 From: _Nik0__ Date: Mon, 18 Mar 2024 22:24:04 +0100 Subject: [PATCH] DP | Add map name to bossbar --- nnb_spawnsystem/data/nnb_spawnsystem/functions/root.mcfunction | 2 +- nnb_spawnsystem/main.jmc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nnb_spawnsystem/data/nnb_spawnsystem/functions/root.mcfunction b/nnb_spawnsystem/data/nnb_spawnsystem/functions/root.mcfunction index ed45c97..e3ea8c5 100644 --- a/nnb_spawnsystem/data/nnb_spawnsystem/functions/root.mcfunction +++ b/nnb_spawnsystem/data/nnb_spawnsystem/functions/root.mcfunction @@ -1 +1 @@ -execute if score phase nn_lobby matches 5 if score min nn_lobby >= 0 nn_lobby run bossbar set minecraft:game name [{"score":{"name":"min","objective":"nn_lobby"},"color":"yellow"},{"text":":","color":"yellow"},{"score":{"name":"sec","objective":"nn_lobby"},"color":"yellow"},{"text":" |","color":"dark_gray"},{"text":" Playing ","color":"aqua"},{"selector":"@e[tag=now_playing]","color":"gold"}] \ No newline at end of file +execute if score phase nn_lobby matches 5 if score min nn_lobby >= 0 nn_lobby run bossbar set minecraft:game name [{"score":{"name":"min","objective":"nn_lobby"},"color":"yellow"},{"text":":","color":"yellow"},{"score":{"name":"sec","objective":"nn_lobby"},"color":"yellow"},{"text":" |","color":"dark_gray"},{"text":" Playing ","color":"aqua"},{"storage":"nnb_spawnsystem:temp","nbt":"map","color":"gold"}] \ No newline at end of file diff --git a/nnb_spawnsystem/main.jmc b/nnb_spawnsystem/main.jmc index 42571de..d529f7d 100644 --- a/nnb_spawnsystem/main.jmc +++ b/nnb_spawnsystem/main.jmc @@ -35,7 +35,7 @@ function root() { bossbar set minecraft:game name [ {"score":{"name":"min","objective":"nn_lobby"},"color":"yellow"}, {"text":":","color":"yellow"},{"score":{"name":"sec","objective":"nn_lobby"},"color":"yellow"}, - {"text":" |","color":"dark_gray"},{"text":" Playing ","color":"aqua"},{"selector":"@e[tag=now_playing]","color":"gold"}]; + {"text":" |","color":"dark_gray"},{"text":" Playing ","color":"aqua"},{"storage":"nnb_spawnsystem:temp","nbt":"map","color":"gold"}]; }}}