From 3cdedfde0c7f3279a74fd7a1cae922ff606ef6ff Mon Sep 17 00:00:00 2001 From: Bavadin <115598588+Bavadin@users.noreply.github.com> Date: Wed, 25 Sep 2024 14:10:53 -0700 Subject: [PATCH] Add unique functions for death room agronet card notifications (0.12.24) --- .../data/do2/functions/agronet/card_bought.mcfunction | 8 ++++++++ .../cards/gained_in_dungeon/moment_of_clarity.mcfunction | 7 +++++++ .../cards/gained_in_dungeon/pay_to_win.mcfunction | 7 +++++++ .../cards/gained_in_dungeon/pork_chop_power.mcfunction | 7 +++++++ .../cards/gained_in_dungeon/tactical_approach.mcfunction | 7 +++++++ Brilliance Datapack/data/do2/functions/version.mcfunction | 4 ++-- 6 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 Brilliance Datapack/data/do2/functions/cards/gained_in_dungeon/moment_of_clarity.mcfunction create mode 100644 Brilliance Datapack/data/do2/functions/cards/gained_in_dungeon/pay_to_win.mcfunction create mode 100644 Brilliance Datapack/data/do2/functions/cards/gained_in_dungeon/pork_chop_power.mcfunction create mode 100644 Brilliance Datapack/data/do2/functions/cards/gained_in_dungeon/tactical_approach.mcfunction diff --git a/Brilliance Datapack/data/do2/functions/agronet/card_bought.mcfunction b/Brilliance Datapack/data/do2/functions/agronet/card_bought.mcfunction index a985524a..2605ad50 100644 --- a/Brilliance Datapack/data/do2/functions/agronet/card_bought.mcfunction +++ b/Brilliance Datapack/data/do2/functions/agronet/card_bought.mcfunction @@ -1,7 +1,9 @@ +# Item Bought execute if score $dungeon do2.agronet.card_bought matches -3 run add-item victory-tome 5 execute if score $dungeon do2.agronet.card_bought matches -2 run add-item victory-tome 3 execute if score $dungeon do2.agronet.card_bought matches -1 run add-item victory-tome 1 +# Card Bought execute if score $dungeon do2.agronet.card_bought matches 0 run card-bought moment-of-clarity execute if score $dungeon do2.agronet.card_bought matches 1 run card-bought sneak execute if score $dungeon do2.agronet.card_bought matches 2 run card-bought stability @@ -33,3 +35,9 @@ execute if score $dungeon do2.agronet.card_bought matches 27 run card-bought sil execute if score $dungeon do2.agronet.card_bought matches 28 run card-bought fuzzy-bunny-slippers execute if score $dungeon do2.agronet.card_bought matches 29 run card-bought deepfrost execute if score $dungeon do2.agronet.card_bought matches 30 run card-bought brilliance + +# Card Gained in Dungeon +execute if score $dungeon do2.agronet.card_bought matches 31 run card-bought moment-of-clarity +execute if score $dungeon do2.agronet.card_bought matches 32 run card-bought pork-chop-power +execute if score $dungeon do2.agronet.card_bought matches 33 run card-bought pay-to-win +execute if score $dungeon do2.agronet.card_bought matches 34 run card-bought tactical-approach \ No newline at end of file diff --git a/Brilliance Datapack/data/do2/functions/cards/gained_in_dungeon/moment_of_clarity.mcfunction b/Brilliance Datapack/data/do2/functions/cards/gained_in_dungeon/moment_of_clarity.mcfunction new file mode 100644 index 00000000..ece4d70d --- /dev/null +++ b/Brilliance Datapack/data/do2/functions/cards/gained_in_dungeon/moment_of_clarity.mcfunction @@ -0,0 +1,7 @@ +# - Start Log - +execute as @a[scores={do2.logs.cards=1..}] run tellraw @s ["",{"text":"§f[§9B§r]: Card Gained in Dungeon: ("},{"text":"§aMoment Of Clarity","hoverEvent":{"action":"show_item","value":"{id:'minecraft:iron_nugget', Count:1, tag:{NameFormat:{color:\"gray\",OriginalName:'{\"color\":\"gray\",\"text\":\"✲ Moment of Clarity ✲\"}',ModifiedName:'{\"color\":\"gray\",\"text\":\"✲ Moment of Clarity ✲\"}'},CustomRoleplayData:1b,CustomModelData:106,display:{Name:'{\"color\":\"gray\",\"text\":\"✲ Moment of Clarity ✲\"}'},tracked:0b}}"}},{"text":")"}] +# - End Log - + +# Agronet Event Handling +scoreboard players set $dungeon do2.agronet.card_bought 31 +execute as @p[tag=do2.received_shulker] run function do2:agronet/card_bought \ No newline at end of file diff --git a/Brilliance Datapack/data/do2/functions/cards/gained_in_dungeon/pay_to_win.mcfunction b/Brilliance Datapack/data/do2/functions/cards/gained_in_dungeon/pay_to_win.mcfunction new file mode 100644 index 00000000..ad39d56c --- /dev/null +++ b/Brilliance Datapack/data/do2/functions/cards/gained_in_dungeon/pay_to_win.mcfunction @@ -0,0 +1,7 @@ +# - Start Log - +execute as @a[scores={do2.logs.cards=1..}] run tellraw @s ["",{"text":"§f[§9B§r]: Card Gained in Dungeon: ("},{"text":"§aPay To Win","hoverEvent":{"action":"show_item","value":"{id:'minecraft:iron_nugget', Count:1, tag:{NameFormat:{color:\"#fed83d\",OriginalName:'{\"text\":\"✲ Pay to Win ✲\"}',ModifiedName:'{\"color\":\"#FED83D\",\"text\":\"✲ Pay to Win ✲\"}'},CustomRoleplayData:1b,CustomModelData:107,display:{Name:'{\"color\":\"#FED83D\",\"text\":\"✲ Pay to Win ✲\"}'},tracked:0b}}"}},{"text":")"}] +# - End Log - + +# Agronet Event Handling +scoreboard players set $dungeon do2.agronet.card_bought 33 +execute as @p[tag=do2.received_shulker] run function do2:agronet/card_bought \ No newline at end of file diff --git a/Brilliance Datapack/data/do2/functions/cards/gained_in_dungeon/pork_chop_power.mcfunction b/Brilliance Datapack/data/do2/functions/cards/gained_in_dungeon/pork_chop_power.mcfunction new file mode 100644 index 00000000..3c46d435 --- /dev/null +++ b/Brilliance Datapack/data/do2/functions/cards/gained_in_dungeon/pork_chop_power.mcfunction @@ -0,0 +1,7 @@ +# - Start Log - +execute as @a[scores={do2.logs.cards=1..}] run tellraw @s ["",{"text":"§f[§9B§r]: Card Gained in Dungeon: ("},{"text":"§aPork Chop Power","hoverEvent":{"action":"show_item","value":"{id:'minecraft:iron_nugget', Count:1, tag:{NameFormat:{color:\"#fed83d\",OriginalName:'{\"color\":\"gray\",\"text\":\"✲≡ Pork Chop Power ≡✲\"}',ModifiedName:'{\"color\":\"#FED83D\",\"text\":\"✲≡ Pork Chop Power ≡✲\"}'},CustomRoleplayData:1b,CustomModelData:109,display:{Name:'{\"color\":\"#FED83D\",\"text\":\"✲≡ Pork Chop Power ≡✲\"}'},tracked:0b}}"}},{"text":")"}] + - End Log - + +# Agronet Event Handling +scoreboard players set $dungeon do2.agronet.card_bought 32 +execute as @p[tag=do2.received_shulker] run function do2:agronet/card_bought \ No newline at end of file diff --git a/Brilliance Datapack/data/do2/functions/cards/gained_in_dungeon/tactical_approach.mcfunction b/Brilliance Datapack/data/do2/functions/cards/gained_in_dungeon/tactical_approach.mcfunction new file mode 100644 index 00000000..9924fb14 --- /dev/null +++ b/Brilliance Datapack/data/do2/functions/cards/gained_in_dungeon/tactical_approach.mcfunction @@ -0,0 +1,7 @@ +# - Start Log - +execute as @a[scores={do2.logs.cards=1..}] run tellraw @s ["",{"text":"§f[§9B§r]: Card Gained in Dungeon: ("},{"text":"§aTactical Approach","hoverEvent":{"action":"show_item","value":"{id:'minecraft:iron_nugget', Count:1, tag:{NameFormat:{color:\"#fed83d\",OriginalName:'{\"color\":\"#FED83D\",\"text\":\"✲≡ Tactical Approach ≡✲\"}',ModifiedName:'{\"color\":\"#FED83D\",\"text\":\"✲≡ Tactical Approach ≡✲\"}'},CustomRoleplayData:1b,CustomModelData:108,display:{Name:'{\"color\":\"#FED83D\",\"text\":\"✲≡ Tactical Approach ≡✲\"}'},tracked:0b}}"}},{"text":")"}] +# - End Log - + +# Agronet Event Handling +scoreboard players set $dungeon do2.agronet.card_bought 34 +execute as @p[tag=do2.received_shulker] run function do2:agronet/card_bought \ 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 4055c5eb..3b342dca 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.23 +# DATAPACK VERSION NUMBER: 0.12.24 -tellraw @s ["",{"text":"The §o§n§aBrilliance Datapack§r's version is: [§b0.12.23§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.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":"."}]