Skip to content

Commit

Permalink
Add trigger sign
Browse files Browse the repository at this point in the history
  • Loading branch information
Frustrated-Programmer committed Feb 14, 2025
1 parent f55835f commit 07a2838
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ execute unless score $dungeon do2.run.active matches 0 run return 0

scoreboard players enable @s do2.trigger.settings

setblock -550 114 1983 minecraft:warped_wall_sign[facing=east]
data merge block -550 114 1983 {front_text:{has_glowing_text:1b,color:"white",messages:['{"text":"Click to learn"}','{"text":"about our"}','{"text":""}','{"text":"/trigger\'s","clickEvent":{"action":"run_command","value":"/function do2:scoreboard/triggers/explanation_sign"}}']}}

# Lock setting's room
scoreboard players set $dungeon do2.utility.lockConfigRoom 2
function do2:scoreboard/config/config_lock_inverse
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
tellraw @s ["",{"text":"§6-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-"}]
tellraw @s ["",{"text":"\n §e§l§nTRIGGER COMMANDS\n"}]
tellraw @s ["",{"text":"Tracked Out offers you 4 unique triggers you can run at any time via the §a§o/trigger §rcommand. Additionally you may click on them here but they will always be available to you to run in chat.\n\nEach one will explain what they do when triggered."}]
tellraw @s ["",{"text":"\n§f[§dABOUT§f]","clickEvent":{"action":"run_command","value":"/trigger do2.trigger.about set 1"},"hoverEvent":{"action":"show_text","contents":{"text":"Click to run the ABOUT trigger."}}},{"text":" §a§o/trigger do2.triggers.about"}]
tellraw @s ["",{"text":"§f[§dCOOP§f]","clickEvent":{"action":"run_command","value":"/trigger do2.trigger.coop set 1"},"hoverEvent":{"action":"show_text","contents":{"text":"Click to run the COOP trigger."}}},{"text":" §a§o/trigger do2.triggers.coop"}]
tellraw @s ["",{"text":"§f[§dSETTINGS§f]","clickEvent":{"action":"run_command","value":"/trigger do2.trigger.settings set 1"},"hoverEvent":{"action":"show_text","contents":{"text":"Click to run the SETTINGS trigger."}}},{"text":" §a§o/trigger do2.triggers.settings"}]
tellraw @s ["",{"text":"§f[§dVANILLA§f]","clickEvent":{"action":"run_command","value":"/trigger do2.trigger.vanilla set 1"},"hoverEvent":{"action":"show_text","contents":{"text":"Click to run the VANILLA trigger."}}},{"text":" §a§o/trigger do2.triggers.vanilla"}]
tellraw @s ["",{"text":"\n§6-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-"}]

4 changes: 2 additions & 2 deletions Brilliance Datapack/data/do2/functions/version.mcfunction
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# DATAPACK VERSION NUMBER: 0.15.0
# DATAPACK VERSION NUMBER: 0.15.2

tellraw @s ["",{"text":"The §o§n§aBrilliance Datapack§r's version is: [§b0.15.0§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.15.2§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 07a2838

Please sign in to comment.