From e0cd41a9c9e3e8fc0438ea89bbc27b6ce63575ae Mon Sep 17 00:00:00 2001 From: Bavadin <115598588+Bavadin@users.noreply.github.com> Date: Wed, 25 Sep 2024 14:26:19 -0700 Subject: [PATCH] Predicate config room lock on not having do2.staff (0.12.25) --- .../do2/functions/scoreboard/config/config_lock.mcfunction | 3 ++- Brilliance Datapack/data/do2/functions/version.mcfunction | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Brilliance Datapack/data/do2/functions/scoreboard/config/config_lock.mcfunction b/Brilliance Datapack/data/do2/functions/scoreboard/config/config_lock.mcfunction index 5edde7cc..52b9cbc0 100644 --- a/Brilliance Datapack/data/do2/functions/scoreboard/config/config_lock.mcfunction +++ b/Brilliance Datapack/data/do2/functions/scoreboard/config/config_lock.mcfunction @@ -4,4 +4,5 @@ summon minecraft:armor_stand -514 114.7 1956 {CustomName:'{"text":"Settings cann summon minecraft:item_display -514.4 116 1956 {Tags:["do2.stop_settings"],width:1f,height:1f,item:{id:"minecraft:barrier",Count:1b},view_range:2f,transformation:{left_rotation:[0f,-1f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[0.8f,0.8f,2f]}} fill -515 118 1954 -515 114 1958 minecraft:iron_bars replace air -execute as @a[x=-539,dx=25,y=113,dy=7,z=1938,dz=23] run tp @s -512 114 1956 90 0 +execute as @a[x=-539,dx=25,y=113,dy=7,z=1938,dz=23] unless entity @s[tag=do2.staff] run tp @s -512 114 1956 90 0 +execute as @a[x=-539,dx=25,y=113,dy=7,z=1938,dz=23] if entity @s[tag=do2.staff] run tellraw @s ["",{"text":"§f[§9B§r]: You have the tag [§bdo2.staff§r], and this has stopped:\n - §5tp "},{"selector":"@s","color":"dark_purple"},{"text":"§5-512 114 1956 90 0\n§f[§9B§r]: Click "},{"text":"§b[here]","clickEvent":{"action":"run_command","value":"/tp @s -512 114 1956 90 0"}},{"text":" to run the command anyway."}] \ No newline at end of file diff --git a/Brilliance Datapack/data/do2/functions/version.mcfunction b/Brilliance Datapack/data/do2/functions/version.mcfunction index 3b342dca..69dab743 100644 --- a/Brilliance Datapack/data/do2/functions/version.mcfunction +++ b/Brilliance Datapack/data/do2/functions/version.mcfunction @@ -1,4 +1,4 @@ -# DATAPACK VERSION NUMBER: 0.12.24 +# DATAPACK VERSION NUMBER: 0.12.25 -tellraw @s ["",{"text":"The §o§n§aBrilliance Datapack§r's version is: [§b0.12.24§r] Check latest version "},{"text":"§o§b§nhere§r","clickEvent":{"action":"open_url","value":"https://github.com/trackedout/Brilliance/blob/main/Brilliance%20Datapack/data/do2/functions/version.mcfunction"}},{"text":"."}] +tellraw @s ["",{"text":"The §o§n§aBrilliance Datapack§r's version is: [§b0.12.25§r] Check latest version "},{"text":"§o§b§nhere§r","clickEvent":{"action":"open_url","value":"https://github.com/trackedout/Brilliance/blob/main/Brilliance%20Datapack/data/do2/functions/version.mcfunction"}},{"text":"."}]