1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Addon HolographicDisplaysAddon 1.0.0b

An addon to hook into HolographicDisplays

  1. LimeGlass
    Supported Minecraft Versions:
    • 1.12, 1.18
    [​IMG]

    HolographicDisplaysAddon - By LimeGlass

    Source: https://github.com/TheLimeGlass/HolographicDisplaysAddon


    An addon to add full support for HolographicDisplays. This addon is using my framework structure so it allows me to make quick updates and get more information when an error happens, if one actually does happen. If you find any bug please tell me in the discussion. Just don't use the review section for that please. Thanks.

    All of the syntax for this addon are generated in a Syntax.yml with information on it, a disabler for each syntax and if it supports what changers.

    Example script:
    Code (Skript):
    1. command /test:
    2.     trigger:
    3.         set {_hologram} to new hologram at location above player
    4.         add text "&5The holographic displays Skript addon test" to hologram {_hologram}
    5.         broadcast "%location of hologram {_hologram}%"
    6.         wait 3 seconds
    7.         set location of hologram {_hologram} to location 3 meters above location of hologram {_hologram}
    8.         add item diamond to hologram {_hologram}
    9.         add text "&6Testing" to hologram {_hologram}
    10.         add item diamond sword to hologram {_hologram} at line 3
    11.         wait 3 seconds
    12.         add item light green stained glass pane to hologram {_hologram}
    13.         add text "&a&l&nBottom line" to hologram {_hologram} at line 4
    14.         wait 3 seconds
    15.         set {_holograms::*} to all of the holograms
    16.         broadcast "%height of holograms {_holograms::*}%"
    17.         broadcast "%creation time of holograms {_holograms::*}%"
    18.         loop creation time of holograms {_holograms::*}:
    19.             broadcast "&6%difference between loop-value and now%"
    20.         broadcast "done"
    21.         unregister holograms all of the holograms

    Syntax:

    Code (Skript):
    1.  
    2. {
    3.   "conditions": [
    4.     {
    5.       "id": "CondIsHolo",
    6.       "name": "Entity is hologram",
    7.       "description": [
    8.         "Check if an entity is a hologram."
    9.       ],
    10.       "patterns": [
    11.         "%entities% (is|are) [a] holo[gra(m|phic display)]",
    12.         "%entities% (isn't|is not|aren't|are not) [a] holo[gra(m|phic display)]"
    13.       ]
    14.     },
    15.     {
    16.       "id": "CondIsDefaultVisible",
    17.       "name": "Hologram Default Visibility",
    18.       "description": [
    19.         "Check if the default visibility is set for holograms."
    20.       ],
    21.       "patterns": [
    22.         "%holograms% (is|are) [allow[ing]] placeholders",
    23.         "%holograms% (isn't|is not|aren't|are not) [allow[ing]] placeholders",
    24.         "%holograms% (is|are) (default visible|visible by default)",
    25.         "%holograms% (isn't|is not|aren't|are not) (default visible|visible by default)"
    26.       ]
    27.     },
    28.     {
    29.       "id": "CondIsVisible",
    30.       "name": "Hologram Visible To Players",
    31.       "description": [
    32.         "Check if holograms are visible to players."
    33.       ],
    34.       "patterns": [
    35.         "%holograms% (is|are) visible to %players%",
    36.         "%holograms% (isn't|is not|aren't|are not) visible to %players%"
    37.       ]
    38.     },
    39.     {
    40.       "id": "CondDeleted",
    41.       "name": "Hologram is deleted",
    42.       "description": [
    43.         "Check if a hologram is deleted."
    44.       ],
    45.       "patterns": [
    46.         "%holograms% (is|are) deleted",
    47.         "%holograms% (isn't|is not|aren't|are not) deleted"
    48.       ]
    49.     }
    50.   ],
    51.   "effects": [
    52.     {
    53.       "id": "EffClearLines",
    54.       "name": "Clear hologram lines",
    55.       "description": [
    56.         "Clears the lines of hologram(s)."
    57.       ],
    58.       "patterns": [
    59.         "clear [all [of]] [the] lines of holo[gra(m|phic display)][s] %holograms%"
    60.       ]
    61.     },
    62.     {
    63.       "id": "EffAppendItemLine",
    64.       "name": "Hologram append item line",
    65.       "description": [
    66.         "Add a hologram line of an item to the hologram(s)."
    67.       ],
    68.       "patterns": [
    69.         "(append|add) item [line] %itemstacks% to holo[gra(m|phic display)][s] %holograms% [(in|at) line %numbers%]",
    70.         "(append|add) text [line] %strings% to holo[gra(m|phic display)][s] %holograms% [(in|at) line %numbers%]"
    71.       ]
    72.     },
    73.     {
    74.       "id": "ExprHologramPlaceholders",
    75.       "name": "Hologram placeholder toggle",
    76.       "description": [
    77.         "Returns a boolean that sets if the hologram(s) should support placeholders or not."
    78.       ],
    79.       "patterns": [
    80.         "set [allow[ing]] placeholders of %holograms% to %boolean%",
    81.         "make %holograms% [allow[ing]] placeholders"
    82.       ]
    83.     },
    84.     {
    85.       "id": "SetHologramDefaultVisible",
    86.       "name": "Hologram visible default",
    87.       "description": [
    88.         "Boolean to determine if hologram(s) are visible by default."
    89.       ],
    90.       "patterns": [
    91.         "set (default visib(ility|le)|visible by default) of %holograms% to %boolean%",
    92.         "make %holograms% (default visib(ility|le)|visible by default)"
    93.       ]
    94.     },
    95.     {
    96.       "id": "EffHideShow",
    97.       "name": "Show/Hide hologram",
    98.       "description": [
    99.         "Hide or show hologram(s) to player(s)."
    100.       ],
    101.       "patterns": [
    102.         "(show|hide) holo[gra(m|phic display)][s] %holograms% [(to|from) %players%]"
    103.       ]
    104.     },
    105.     {
    106.       "id": "EffTeleport",
    107.       "name": "Teleport Hologram",
    108.       "description": [
    109.         "teleport holograms to locations."
    110.       ],
    111.       "patterns": [
    112.         "teleport holo[gra(m|phic display)][s] %holograms% to %location%"
    113.       ]
    114.     },
    115.     {
    116.       "id": "EffUnregisterHologram",
    117.       "name": "Unregister hologram",
    118.       "description": [
    119.         "Unregister/Delete hologram(s) from existance."
    120.       ],
    121.       "patterns": [
    122.         "unregister [holo[gra(m|phic display)][s]] %holograms%"
    123.       ]
    124.     }
    125.   ],
    126.   "expressions": [
    127.     {
    128.       "id": "ExprHologram",
    129.       "name": "Create hologram",
    130.       "description": [
    131.         "Create a hologram at a location. It is returned as an expression."
    132.       ],
    133.       "return type": "Holograms",
    134.       "patterns": [
    135.         "[a] new holo[gra(m|phic display)[s]] at [the] %locations%"
    136.       ]
    137.     },
    138.     {
    139.       "id": "ExprHologramLine",
    140.       "name": "Hologram Line",
    141.       "description": [
    142.         "Modify a line of a hologram."
    143.       ],
    144.       "return type": "Object",
    145.       "changers": [
    146.         "add",
    147.         "set",
    148.         "remove",
    149.         "remove all",
    150.         "delete",
    151.         "reset"
    152.       ],
    153.       "patterns": [
    154.         "[the] line %numbers% of [holo[gra(m|phic display)[s]]] %holograms%"
    155.       ]
    156.     },
    157.     {
    158.       "id": "ExprHologramCreated",
    159.       "name": "Hologram creation",
    160.       "description": [
    161.         "Returns the date(s) hologram(s) were created at. Can be used in difference between syntax."
    162.       ],
    163.       "return type": "Date",
    164.       "patterns": [
    165.         "[the] [all [of]] [the] (time created|creat(ion|ed) (date|time[[ ]stamp])) of %holograms%",
    166.         "%holograms%'[s] [all [of]] [the] (time created|creat(ion|ed) (date|time[[ ]stamp]))"
    167.       ]
    168.     },
    169.     {
    170.       "id": "ExprHologramHeight",
    171.       "name": "Hologram height",
    172.       "description": [
    173.         "Returns the height(s) of the hologram(s). This is determined by how many lines it has. It's overall height."
    174.       ],
    175.       "return type": "double",
    176.       "patterns": [
    177.         "[the] [all [of]] [the] holo[gra(m|phic display)][s] height[s] of %holograms%",
    178.         "%holograms%'[s] [all [of]] [the] holo[gra(m|phic display)][s] height[s]"
    179.       ]
    180.     },
    181.     {
    182.       "id": "ExprHologramVisibility",
    183.       "name": "Hologram viewers",
    184.       "description": [
    185.         "A modifiable list of players that can view the hologram."
    186.       ],
    187.       "return type": "Player",
    188.       "changers": [
    189.         "add",
    190.         "set",
    191.         "remove",
    192.         "remove all",
    193.         "delete",
    194.         "reset"
    195.       ],
    196.       "patterns": [
    197.         "[the] [all [of]] [the] (viewer[s]|visibil(e|ity) [list]) of %holograms%",
    198.         "%holograms%'[s] [all [of]] [the] (viewer[s]|visibil(e|ity) [list])"
    199.       ]
    200.     },
    201.     {
    202.       "id": "ExprHolograms",
    203.       "name": "Holograms hologram",
    204.       "description": [
    205.         "Grabs all the holograms currently registered. If the plugins string is not set, it will grab all the holograms registered under HolographicDisplaysAddon"
    206.       ],
    207.       "return type": "Holograms",
    208.       "patterns": [
    209.         "[all [of]] [the] holo[gra(m|phic display)]s [[(under|for)] plugin[s] %strings%]"
    210.       ]
    211.     }
    212.   ],
    213.   "types": [
    214.     {
    215.       "id": "Hologram",
    216.       "name": "Holograms",
    217.       "patterns": [
    218.         "holo[gram][s]"
    219.       ]
    220.     }
    221.   ]
    222. }
    If you have any suggestions that I should add. Please use the discussion page to notify me about them. If you need any help with this addon as well you can pm me or use the discussion of this resource, Thanks.

    Enjoy!

Recent Updates

  1. Refresh
  2. Bug fixes

Recent Reviews

  1. sklake
    sklake
    5/5,
    Version: 1.0.0b
    good addon. If there a function to replace or update the line will be better, btw thanks for this great addon.
  2. TheOnlyRida
    TheOnlyRida
    4/5,
    Version: 1.0.0b
    Fantastic addon to support Holographic Display! One thing that I feel is missing are hologram interaction events like events that will be triggered when an entity touches or clicks on a hologram
  3. JustADev
    JustADev
    5/5,
    Version: 1.0.0a
    Nice Addon! I really love the syntax, and the author keeps this addon up to date. Good Job