customize armor stands

This commit is contained in:
Daniel Løvbrøtte Olsen
2020-03-19 15:59:23 +01:00
parent 53d88fc3be
commit a8bfeda4bd
89 changed files with 2499 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
#
# Description: Send notifications to chat
# Called by: as: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"}]

View File

@@ -0,0 +1,11 @@
#
# Description: Display credits in chat
# Called by: as: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":"green","bold":"true"}]
tellraw @s [{"text":"Vanilla Tweaks integration: ","color":"aqua"},{"text":"MSpaceDev","color":"green","bold":"true"}]
tellraw @s [{"text":"Additional ideas and improvements: ","color":"aqua"},{"text":"MukiTanuki","color":"green","bold":"true"}]
tellraw @s [{"text":"\nThanks to many other people for help with testing and suggestions -Phssthpok","color":"aqua"}]
tellraw @s [{"text":"--------------------------","color":"yellow","bold":"true"}]

View File

@@ -0,0 +1,6 @@
#
# Description: Get book via chat link
# Called by: as:help
# Entity @s: Player
#
function as:give

View File

@@ -0,0 +1,14 @@
#
# Description: Display main help options
# Called by: as: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", "value":{"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", "value":{"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"}]