From 2868d560cfc6f81367c00f862a6aac40df489f12 Mon Sep 17 00:00:00 2001 From: _Nik0__ Date: Sat, 31 Aug 2024 23:29:15 +0200 Subject: [PATCH] DP | More --- nnb_main/data/nnb_main/function/hide_as_names.mcfunction | 3 ++- nnb_main/main.jmc | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/nnb_main/data/nnb_main/function/hide_as_names.mcfunction b/nnb_main/data/nnb_main/function/hide_as_names.mcfunction index 1658e8c..3c38d1d 100644 --- a/nnb_main/data/nnb_main/function/hide_as_names.mcfunction +++ b/nnb_main/data/nnb_main/function/hide_as_names.mcfunction @@ -1,2 +1,3 @@ execute at @a if score @p nn_asplaced >= 1 nn_asplaced as @e[type=armor_stand] run tellraw @a {"text":" \u26a0| Optimizing Stuff...","color":"yellow","type":"text"} -execute at @a if score @p nn_asplaced >= 1 nn_asplaced as @e[type=armor_stand] as @e[type=armor_stand] run data modify entity @s CustomNameVisible set value 0b \ No newline at end of file +execute at @a if score @p nn_asplaced >= 1 nn_asplaced as @e[type=armor_stand] as @e[type=armor_stand] run data modify entity @s CustomNameVisible set value 0b +execute at @a if score @p nn_asplaced >= 1 nn_asplaced as @e[type=armor_stand] run scoreboard players set @p nn_asplaced 0 \ No newline at end of file diff --git a/nnb_main/main.jmc b/nnb_main/main.jmc index 3404f59..e30744a 100644 --- a/nnb_main/main.jmc +++ b/nnb_main/main.jmc @@ -136,6 +136,7 @@ function hide_as_names() { execute at @a if score @p nn_asplaced >= 1 nn_asplaced run execute as @e[type=armor_stand] expand { Text.tellraw(@a, "& ⚠| Optimizing Stuff..."); execute as @e[type=armor_stand] run data modify entity @s CustomNameVisible set value 0b; + scoreboard players set @p nn_asplaced 0; } }