mirror of
https://github.com/LZStealth/armor-statues.git
synced 2025-08-10 20:45:53 +01:00
Initial commit for armor statues
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
#
|
||||
# Description: Send notifications to chat
|
||||
# Called by: armor_statues:help
|
||||
# Entity @s: Player
|
||||
#
|
||||
execute store success score #as_success as_help run tag @s add as_chat
|
||||
execute unless score #as_success as_help matches 1 run tag @s remove as_chat
|
||||
|
||||
#
|
||||
execute if entity @s[tag=as_chat] run tellraw @s [{"text":"Notifications will be directed to chat","color":"aqua"}]
|
||||
execute if entity @s[tag=!as_chat] run tellraw @s [{"text":"Notifications will be directed to the action bar","color":"aqua"}]
|
11
data/armor_statues/functions/help/credits.mcfunction
Normal file
11
data/armor_statues/functions/help/credits.mcfunction
Normal file
@@ -0,0 +1,11 @@
|
||||
#
|
||||
# Description: Display credits in chat
|
||||
# Called by: armor_statues:help
|
||||
# Entity @s: Player
|
||||
#
|
||||
tellraw @s [{"text":"Customizable Armor Stands - Credits","color":"yellow","bold":"true"}]
|
||||
tellraw @s [{"text":"Coding and original concept: ","color":"aqua"},{"text":"Phssthpok","color":"#87325d","bold":"true","clickEvent":{"action":"open_url","value":"https://twitter.com/MCPhssthpok"}}]
|
||||
tellraw @s ["",{"text":"Additional improvements: ","color":"aqua"},{"text":"MSpaceDev","color":"#e30000","bold":"true","clickEvent":{"action":"open_url","value":"https://www.youtube.com/c/MinecraftSpace"}}]
|
||||
tellraw @s [{"text":"Development and improvements: ","color":"aqua"},{"text":"MukiTanuki","color":"#0072e5","bold":"true","clickEvent":{"action":"open_url","value":"https://twitter.com/MukiTanuki"}}]
|
||||
tellraw @s [{"text":"\nThanks to many other people for help with testing and suggestions -Phssthpok","color":"aqua"}]
|
||||
tellraw @s [{"text":"--------------------------","color":"yellow","bold":"true"}]
|
6
data/armor_statues/functions/help/get_book.mcfunction
Normal file
6
data/armor_statues/functions/help/get_book.mcfunction
Normal file
@@ -0,0 +1,6 @@
|
||||
#
|
||||
# Description: Get book via chat link
|
||||
# Called by: armor_statues:help
|
||||
# Entity @s: Player
|
||||
#
|
||||
function armor_statues:give
|
14
data/armor_statues/functions/help/main.mcfunction
Normal file
14
data/armor_statues/functions/help/main.mcfunction
Normal file
@@ -0,0 +1,14 @@
|
||||
#
|
||||
# Description: Display main help options
|
||||
# Called by: armor_statues:help
|
||||
# Entity @s: Player
|
||||
#
|
||||
tellraw @s [{"text":"Customizable Armor Stands - Help","color":"yellow","bold":"true"},{"text":"\nGet the book by:","color":"aqua","bold":"false"}]
|
||||
execute if data storage customizable_armor_stands:settings as_admin{book_help:"Enabled"} run tellraw @s [{"text":" - Clicking ","color":"aqua"},{"text":"here","color":"green","clickEvent":{"action":"run_command","value":"/trigger as_help set 2"}}]
|
||||
execute if score #as_shrine_x as_help matches ..0 run tellraw @s [{"text":" - Going to the shrine at ","color":"aqua"},{"score":{"name":"#as_shrine_x","objective":"as_help"},"color":"aqua"},{"text":",","color":"aqua"},{"score":{"name":"#as_shrine_z","objective":"as_help"},"color":"aqua"}]
|
||||
execute if score #as_shrine_x as_help matches 1.. run tellraw @s [{"text":" - Going to the shrine at ","color":"aqua"},{"score":{"name":"#as_shrine_x","objective":"as_help"},"color":"aqua"},{"text":",","color":"aqua"},{"score":{"name":"#as_shrine_z","objective":"as_help"},"color":"aqua"}]
|
||||
execute if data storage customizable_armor_stands:settings as_admin{book_craft:"Enabled"} run tellraw @s [{"text":" - Crafting a written book titled \"Statues\"","color":"aqua"}]
|
||||
execute if entity @s[tag=as_chat] run tellraw @s [{"text":"Send notifications to: ","color":"aqua"},{"text":"Chat","color":"green","clickEvent":{"action":"run_command","value":"/trigger as_help set 3"}, "hoverEvent":{"action":"show_text", "contents":{"text":"Click to toggle between Chat and Actionbar", "color":"yellow"}}}]
|
||||
execute if entity @s[tag=!as_chat] run tellraw @s [{"text":"Send notifications to: ","color":"aqua"},{"text":"Actionbar","color":"green","clickEvent":{"action":"run_command","value":"/trigger as_help set 3"}, "hoverEvent":{"action":"show_text", "contents":{"text":"Click to toggle between Chat and Actionbar", "color":"yellow"}}}]
|
||||
tellraw @s [{"text":"Credits","color":"green","clickEvent":{"action":"run_command","value":"/trigger as_help set 4"}}]
|
||||
tellraw @s [{"text":"--------------------------","color":"yellow","bold":"true"}]
|
Reference in New Issue
Block a user