Skip to content

Commit

Permalink
Add unique functions for death room agronet card notifications (0.12.24)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bavadin authored Sep 25, 2024
1 parent 15cca7c commit 3cdedfd
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions Brilliance Datapack/data/do2/functions/version.mcfunction
Original file line number Diff line number Diff line change
@@ -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":"."}]

0 comments on commit 3cdedfd

Please sign in to comment.