Graphisk

Addon Graphisk 2.0.0-ALPHA

  • 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!

Supported Minecraft Versions
  1. 1.12
  2. 1.18
  3. 1.19
Graphisk - By LimeGlass
Old name was HolographicDisplaysAddon

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


An addon to add full support for Hologram plugins.

All of the syntax for this addon are generated below with information on it.

Plugins currently supported:
  • HolographicDisplays 3.0.1
  • DecentHolograms 2.8.1
Planned Support:
  • Holograms
  • HolographicDisplays v2 (Old API support)

Example script:
code_language.skript:
command /test:
    trigger:
        set {_hologram} to new hologram at location above player
        add text "&5The holographic displays Skript addon test" to hologram {_hologram}
        broadcast "%location of hologram {_hologram}%"
        wait 3 seconds
        set location of hologram {_hologram} to location 3 meters above location of hologram {_hologram}
        add item diamond to hologram {_hologram}
        add text "&6Testing" to hologram {_hologram}
        add item diamond sword to hologram {_hologram} at line 3
        wait 3 seconds
        add item light green stained glass pane to hologram {_hologram}
        add text "&a&l&nBottom line" to hologram {_hologram} at line 4
        wait 3 seconds
        set {_holograms::*} to all of the holograms
        broadcast "%height of holograms {_holograms::*}%"
        broadcast "%creation time of holograms {_holograms::*}%"
        loop creation time of holograms {_holograms::*}:
            broadcast "&6%difference between loop-value and now%"
        broadcast "done"
        unregister holograms all of the holograms

Syntax:

code_language.skript:
{
  "conditions": [
    {
      "id": "CondIsHolo",
      "name": "Entity is hologram",
      "description": [
        "Check if an entity is a hologram."
      ],
      "patterns": [
        "%entities% (is|are) [a] holo[gra(m|phic display)]",
        "%entities% (isn't|is not|aren't|are not) [a] holo[gra(m|phic display)]"
      ]
    },
    {
      "id": "CondIsDefaultVisible",
      "name": "Hologram Default Visibility",
      "description": [
        "Check if the default visibility is set for holograms."
      ],
      "patterns": [
        "%holograms% (is|are) [allow[ing]] placeholders",
        "%holograms% (isn't|is not|aren't|are not) [allow[ing]] placeholders",
        "%holograms% (is|are) (default visible|visible by default)",
        "%holograms% (isn't|is not|aren't|are not) (default visible|visible by default)"
      ]
    },
    {
      "id": "CondIsVisible",
      "name": "Hologram Visible To Players",
      "description": [
        "Check if holograms are visible to players."
      ],
      "patterns": [
        "%holograms% (is|are) visible to %players%",
        "%holograms% (isn't|is not|aren't|are not) visible to %players%"
      ]
    },
    {
      "id": "CondDeleted",
      "name": "Hologram is deleted",
      "description": [
        "Check if a hologram is deleted."
      ],
      "patterns": [
        "%holograms% (is|are) deleted",
        "%holograms% (isn't|is not|aren't|are not) deleted"
      ]
    }
  ],
  "effects": [
    {
      "id": "EffClearLines",
      "name": "Clear hologram lines",
      "description": [
        "Clears the lines of hologram(s)."
      ],
      "patterns": [
        "clear [all [of]] [the] lines of holo[gra(m|phic display)][s] %holograms%"
      ]
    },
    {
      "id": "EffAppendItemLine",
      "name": "Hologram append item line",
      "description": [
        "Add a hologram line of an item to the hologram(s)."
      ],
      "patterns": [
        "(append|add) item [line] %itemstacks% to holo[gra(m|phic display)][s] %holograms% [(in|at) line %numbers%]",
        "(append|add) text [line] %strings% to holo[gra(m|phic display)][s] %holograms% [(in|at) line %numbers%]"
      ]
    },
    {
      "id": "ExprHologramPlaceholders",
      "name": "Hologram placeholder toggle",
      "description": [
        "Returns a boolean that sets if the hologram(s) should support placeholders or not."
      ],
      "patterns": [
        "set [allow[ing]] placeholders of %holograms% to %boolean%",
        "make %holograms% [allow[ing]] placeholders"
      ]
    },
    {
      "id": "SetHologramDefaultVisible",
      "name": "Hologram visible default",
      "description": [
        "Boolean to determine if hologram(s) are visible by default."
      ],
      "patterns": [
        "set (default visib(ility|le)|visible by default) of %holograms% to %boolean%",
        "make %holograms% (default visib(ility|le)|visible by default)"
      ]
    },
    {
      "id": "EffHideShow",
      "name": "Show/Hide hologram",
      "description": [
        "Hide or show hologram(s) to player(s)."
      ],
      "patterns": [
        "(show|hide) holo[gra(m|phic display)][s] %holograms% [(to|from) %players%]"
      ]
    },
    {
      "id": "EffTeleport",
      "name": "Teleport Hologram",
      "description": [
        "teleport holograms to locations."
      ],
      "patterns": [
        "teleport holo[gra(m|phic display)][s] %holograms% to %location%"
      ]
    },
    {
      "id": "EffUnregisterHologram",
      "name": "Unregister hologram",
      "description": [
        "Unregister/Delete hologram(s) from existance."
      ],
      "patterns": [
        "unregister [holo[gra(m|phic display)][s]] %holograms%"
      ]
    }
  ],
  "expressions": [
    {
      "id": "ExprHologram",
      "name": "Create hologram",
      "description": [
        "Create a hologram at a location. It is returned as an expression."
      ],
      "return type": "Holograms",
      "patterns": [
        "[a] new holo[gra(m|phic display)[s]] at [the] %locations%"
      ]
    },
    {
      "id": "ExprHologramLine",
      "name": "Hologram Line",
      "description": [
        "Modify a line of a hologram."
      ],
      "return type": "Object",
      "changers": [
        "add",
        "set",
        "remove",
        "remove all",
        "delete",
        "reset"
      ],
      "patterns": [
        "[the] line %numbers% of [holo[gra(m|phic display)[s]]] %holograms%"
      ]
    },
    {
      "id": "ExprHologramCreated",
      "name": "Hologram creation",
      "description": [
        "Returns the date(s) hologram(s) were created at. Can be used in difference between syntax."
      ],
      "return type": "Date",
      "patterns": [
        "[the] [all [of]] [the] (time created|creat(ion|ed) (date|time[[ ]stamp])) of %holograms%",
        "%holograms%'[s] [all [of]] [the] (time created|creat(ion|ed) (date|time[[ ]stamp]))"
      ]
    },
    {
      "id": "ExprHologramHeight",
      "name": "Hologram height",
      "description": [
        "Returns the height(s) of the hologram(s). This is determined by how many lines it has. It's overall height."
      ],
      "return type": "double",
      "patterns": [
        "[the] [all [of]] [the] holo[gra(m|phic display)][s] height[s] of %holograms%",
        "%holograms%'[s] [all [of]] [the] holo[gra(m|phic display)][s] height[s]"
      ]
    },
    {
      "id": "ExprHologramVisibility",
      "name": "Hologram viewers",
      "description": [
        "A modifiable list of players that can view the hologram."
      ],
      "return type": "Player",
      "changers": [
        "add",
        "set",
        "remove",
        "remove all",
        "delete",
        "reset"
      ],
      "patterns": [
        "[the] [all [of]] [the] (viewer[s]|visibil(e|ity) [list]) of %holograms%",
        "%holograms%'[s] [all [of]] [the] (viewer[s]|visibil(e|ity) [list])"
      ]
    },
    {
      "id": "ExprHolograms",
      "name": "Holograms hologram",
      "description": [
        "Grabs all the holograms currently registered. If the plugins string is not set, it will grab all the holograms registered under HolographicDisplaysAddon"
      ],
      "return type": "Holograms",
      "patterns": [
        "[all [of]] [the] holo[gra(m|phic display)]s [[(under|for)] plugin[s] %strings%]"
      ]
    }
  ],
  "types": [
    {
      "id": "Hologram",
      "name": "Holograms",
      "patterns": [
        "holo[gram][s]"
      ]
    }
  ]
}

Report any issues at https://github.com/TheLimeGlass/Graphisk/issues

Enjoy!
Author
LimeGlass
Downloads
16,216
Views
16,216
First release
Last update
Rating
4.75 star(s) 4 ratings

More resources from LimeGlass

Latest updates

  1. 2.0.0-ALPHA

    Renaming HolographicDisplaysAddon to Graphisk Added support for 1.19.4 Added support for...
  2. Refresh

    Updated all files to newer standards and added Gradle and Github source...
  3. Bug fixes

    Bug fixes in some nullable situations. Also added, a settable text. Some people were confused...

Latest reviews

good addon. If there a function to replace or update the line will be better, btw thanks for this great addon.
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
Nice Addon! I really love the syntax, and the author keeps this addon up to date. Good Job