Holographic Titles: type: command debug: true name: holotitles description: Used to create holographic titles in the world. usage: /holotitles <&lb>create/remove/move/list<&rb> <&lb>title<&rb> <&lb>text<&rb> aliases: - holo - ht permission: holotitles permission message: <&e>Type /help for a list of commands. allowed help: - determine > tab complete: - if !>: - stop - determine ]]> script: - if !>: - narrate "<&e>Type /help for a list of commands." - stop - choose "": - case "create": - define title - define text - if <[title]> == null: - narrate "<&9>Holotitles<&co> <&c>No value entered for title. <&nl><&b>Proper format<&co> <&7>/holo create [title] [text]" - stop - else if <[text]> == null: - narrate "<&9>Holotitles<&co> <&c>No value entered for text. <&nl><&b>Proper format<&co> <&7>/holo create [title] [text]" - stop - else: - define textString ].trim.parse_color> - spawn "armor_stand[custom_name_visible=true;custom_name=<[textString]>;gravity=false;visible=false]" save:standTitle - yaml id:holotitles_list set .<[title]>.location: - yaml id:holotitles_list set .<[title]>.entityName: - yaml id:holotitles_list set .<[title]>.text:<[textString]> - yaml "savefile:/yml_saves/holotitles_list.yml" id:holotitles_list - narrate "<&9>Holotitles<&co> <&e>Holo title <[title]> created at ." - case "remove": - define title - if <[title]> == null: - narrate "<&9>Holotitles<&co> <&c>No value entered for title. <&nl><&b>Proper format<&co> <&7>/holo remove [title]" - stop - else: - remove .<[title]>.entityName]> - wait 1t - yaml id:holotitles_list set .<[title]>:! - yaml "savefile:/yml_saves/holotitles_list.yml" id:holotitles_list - case "move": - define title - define moveX - define moveY - define moveZ - if <[title]> == null: - narrate "<&9>Holotitles<&co> <&c>No value entered for title. <&nl><&b>Proper format<&co> <&7>/holo move [title] [X] [Y] [Z]" - stop - else if <[moveX]> == null: - narrate "<&9>Holotitles<&co> <&c>No value entered for title. <&nl><&b>Proper format<&co> <&7>/holo move [title] [X] [Y] [Z]" - stop - else if <[moveY]> == null: - narrate "<&9>Holotitles<&co> <&c>No value entered for title. <&nl><&b>Proper format<&co> <&7>/holo move [title] [X] [Y] [Z]" - stop - else if <[moveZ]> == null: - narrate "<&9>Holotitles<&co> <&c>No value entered for title. <&nl><&b>Proper format<&co> <&7>/holo move [title] [X] [Y] [Z]" - stop - else: - define entityID .<[title]>.entityName]> - teleport <[entityID]> <[entityID].location.add[<[moveX]>,<[moveY]>,<[moveZ]>]> - yaml id:holotitles_list set .<[title]>.location:<[entityID].location> - yaml "savefile:/yml_saves/holotitles_list.yml" id:holotitles_list - case "list": - narrate List - case "help": - narrate Help - default: - narrate "<&c>Invalid sub-command! Type /holo help for a list of commands." holotitles_load: type: world debug: false events: on server start: - yaml "load:/yml_saves/holotitles_list.yml" id:holotitles_list