GithubHelp home page GithubHelp logo

falistos / holographicextension Goto Github PK

View Code? Open in Web Editor NEW

This project forked from niall7459/holographicextension

0.0 1.0 0.0 133 KB

Add easy to create animations and placeholders into HolographicDisplays.

License: GNU General Public License v3.0

Java 100.00%

holographicextension's Introduction

Holographic Extension Live statistics

About

Holographic Extension is an add-on for Holographic Displays that adds animations like scroller text, typewriter, glowing and more.
It also adds placeholders from PlaceholderAPI (requires ProtocolLib) to your holograms!

Dependencies

Adding and using animations

You first open the animations.yml of the plugin.
In that file will you already find some default animations.

default animations.yml (Click to show/hide content)
# *********************************
# Holographic Extension Animations
# *********************************
# Animation Config File.
# --> Find help on the spigot resource page.
#
example:
  speed: 0.1
  frames:
  - '<glow size=5 normal=&7&l start=&e&l middle=&6&l end=&e&l repeatfirst=10>Kite Holographic Extension</glow>'
scroller:
  speed: 0.1
  frames:
  - '<scroll width=32 spacing=32>&cThis is a example scroller.</scroll>'
typing:
  speed: 0.1
  frames:
  - "<typewriter pause=10 backwards=true>Kite Holographic Extension Example.</typewriter>"
rainbow:
  speed: 0.1
  frames:
  - "<rainbow>Hey there, %player_name%</rainbow>"
# NOTICE: To use these placeholders, you need PlaceholderAPI and correct extensions..
# /papi ecloud download Player.
# /papi ecloud download Server.

To add a new animation, simply add a new name and add speed (time of updating the animation in seconds) and frames (actual text of the animation).
You then just add frames to the animation. (Supports predefined animations, which can be found here)

Now you just have to save the file, reload the plugin and implement the animation to your holograms.
To implement it, just use {ex:<animation name>} (replace <animation name> with the name you set in the animations-file).

Implementing Placeholders

Holographic extensions allows you, to use placeholders from PlaceholderAPI in your holograms.
To use those placeholders, you first have to make sure, that ProtocolLib is installed and running, since it won't work without it.

To use placeholders, you just have to add it to the hologram. It's that simple!

Updating placeholders

The placeholders won't update on their own.
You have to use the following special placeholders, in order to update it:

Version 1.9.3 and below

  • {r0.1} - Refresh every 0.1 seconds.
  • {r1} - Refresh every second.
  • {r2} - Refresh every 2 seconds.
  • {r5} - Refresh every 5 seconds.
  • {r10} - Refresh every 10 seconds.

Example: /hd add example {r1}%player_time%

Version 1.10.0 and above

  • {fastest} - Refresh every 0.1 seconds.
  • {fast} - Refresh every 0.5 seconds.
  • {medium} - Refresh every second.
  • {slow} - Refresh every 5 seconds.
  • {slowest} - Refresh every 10 seconds.

Example: /hd add example {medium}%player_time%

Commands

This plugin does not provide any editing commands.
You still create and manage holograms through Holographic displays.

Those commands are provided by Hext:

  • /hext reload - Reloads the animations.yml
  • /hext list - Lists all available animations
  • /hext support - Checks for any placeholder and/or ProtocolLib problems
  • /hext about - General plugin information

You can also use /ext as an alias.

Permissions

The permissions for commands are directly given to OP and (obviously) the console.
You can give yourself hext.admin to use all commands.

Other permissions:

  • hext.help
  • hext.info
  • hext.about
  • hext.reload
  • hext.list

Predefined animations

A full list of already made animations can be found on the KiteBoard-documentation wiki

License and terms

Please see the COPYRIGHT.md for terms and conditions.

holographicextension's People

Contributors

andre601 avatar andris155 avatar fabianmakila avatar falistos avatar niall7459 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.