From 79b88f2b82e95ae4fcdef516e89a1be8c0dd5720 Mon Sep 17 00:00:00 2001 From: CHOSSY Lucas Date: Fri, 15 Apr 2022 22:12:07 +0200 Subject: [PATCH] secret ended --- data/lthc.mage/functions/loading/score.mcfunction | 2 ++ data/lthc.mage/functions/secrets.mcfunction | 3 +-- data/lthc.mage/functions/secrets/end.mcfunction | 3 +++ 3 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 data/lthc.mage/functions/secrets/end.mcfunction diff --git a/data/lthc.mage/functions/loading/score.mcfunction b/data/lthc.mage/functions/loading/score.mcfunction index 57ceead..49ac880 100644 --- a/data/lthc.mage/functions/loading/score.mcfunction +++ b/data/lthc.mage/functions/loading/score.mcfunction @@ -3,4 +3,6 @@ scoreboard objectives add lthc.mage.capacitor_interact_detect custom:tune_notebl scoreboard objectives add lthc.mage.mental_state dummy scoreboard objectives add lthc.mage.current_charged dummy +scoreboard objectives add lthc.mage.secret dummy + scoreboard objectives add lthc.mage.info trigger diff --git a/data/lthc.mage/functions/secrets.mcfunction b/data/lthc.mage/functions/secrets.mcfunction index 8b9c0a3..5c60754 100644 --- a/data/lthc.mage/functions/secrets.mcfunction +++ b/data/lthc.mage/functions/secrets.mcfunction @@ -1,2 +1 @@ -give @s minecraft:player_head{SkullOwner:"LTHCTheMaster"} -give @s minecraft:player_head{SkullOwner:"Stoupy51"} +execute unless score @s lthc.mage.secret matches 1 run function lthc.mage:secrets/end diff --git a/data/lthc.mage/functions/secrets/end.mcfunction b/data/lthc.mage/functions/secrets/end.mcfunction new file mode 100644 index 0000000..a48415f --- /dev/null +++ b/data/lthc.mage/functions/secrets/end.mcfunction @@ -0,0 +1,3 @@ +give @s minecraft:player_head{SkullOwner:"LTHCTheMaster"} +give @s minecraft:player_head{SkullOwner:"Stoupy51"} +scoreboard players set @s lthc.mage.secret 1