Hologram Type Two
About 980 wordsAbout 3 min
This hologram's type is hologram, execution mode is surround
Animation Features
This animation is similar to the traditional chest menu animation of "direct click to select" style blind box opening
This animation generates 8 holograms surrounding the player
The player needs to right-click on one of the holograms they want to choose to open the blind box
Then the player can continue to right-click (customizable), simulating the feeling of needing to click multiple times to advance a progress bar
Upon the final click, the prize is obtained
Animation Structure
This animation consists of 8 Hologram Displays, centered around the player in the eight cardinal and ordinal directions
Customization Degree
You can change these:
- Hologram display text
- Number of times the player needs to click the same hologram
- Text after each player click
- Hologram background color
- Item display at the end
- Distance offset between holograms and the player or other hologram groups (can be changed according to your text width)
Global Configuration File
This execution template currently has no specific global configuration, only variable placeholders can be used
You can view the guide at hologram.yml Holograms
Template File
Note
Custom template files must be stored in the PixelReward/template/ folder
# Animation type
type: hologram
# Animation mode
mode: surround
# Reward template to apply
reward: toolreward
# Actions to player
actions:
#- teleport_to{location=world, 916.0,70,949,180,0} # Teleport to specific location
#- run_animation{animation=default;location=world,916.0, 71.5, 944.0, 0.0, 0.0} # Generate at specific location
# Two usage methods
- run_animation{animation=default}
hologram:
# Don't change these numbers
'0':
# Background ARGB color, do not leave empty, format is r;g;b;a red;green;blue;alpha
background-color: 117;117;117;255
text:
dynamic:
# Text displayed each time, you can remove or add text
init:
# Display only (initial must be default)
# Currently you need to set this template in the format: first default -> any number of right_click texts after
type: default
hologram:
- ''
- '<#E6FD14>| | | | | <#00FAFA><b>READY TO VERIFY</b></#00FAFA> <#E6FD14>| | | | |</#E6FD14>'
- '<#E6FD14>| | | | | <#FF0000>✘✘✘✘✘</#FF0000> <#E6FD14>| | | | |</#E6FD14>'
- '<#E6FD14>| | | | | | | | | |</#E6FD14>'
- '<#E6FD14>| | | | | | | | | |</#E6FD14>'
- '<#E6FD14>| | | | | <#870707>■■■■■■■■■■</#870707> <#E6FD14>| | | | |</#E6FD14>'
- '<#E6FD14>| | | | | | | | | |</#E6FD14>'
- '<#E6FD14>| | | | | | | | | |</#E6FD14>'
- '<#E6FD14>| | | | | <#B60F0F>ERROR</#B60F0F> <#E6FD14>| | | | |</#E6FD14>'
- '<#E6FD14>| | | | | <#00FAFA><b>RIGHT CLICK</b></#00FAFA> <#E6FD14>| | | | |</#E6FD14>'
- ''
click:
# Declare requires clicking
type: right_click
hologram:
- ''
- '<#E6FD14>| | | | | <#00FAFA><b>READY TO VERIFY</b></#00FAFA> <#E6FD14>| | | | |</#E6FD14>'
- '<#E6FD14>| | | | | <#53FF09>✔</#53FF09><#FF0000>✘✘✘✘</#FF0000> <#E6FD14>| | | | |</#E6FD14>'
- '<#E6FD14>| | | | | | | | | |</#E6FD14>'
- '<#E6FD14>| | | | | | | | | |</#E6FD14>'
- '<#E6FD14>| | | | | <#AF1C1C>■■■■■■■■■■</#AF1C1C> <#E6FD14>| | | | |</#E6FD14>'
- '<#E6FD14>| | | | | | | | | |</#E6FD14>'
- '<#E6FD14>| | | | | | | | | |</#E6FD14>'
- '<#E6FD14>| | | | | <#B60F0F>ERROR</#B60F0F> <#E6FD14>| | | | |</#E6FD14>'
- '<#E6FD14>| | | | | <#00FAFA><b>RIGHT CLICK</b></#00FAFA> <#E6FD14>| | | | |</#E6FD14>'
- ''
click2:
type: right_click
hologram:
- ''
- '<#E6FD14>| | | | | <#00FAFA><b>READY TO VERIFY</b></#00FAFA> <#E6FD14>| | | | |</#E6FD14>'
- '<#E6FD14>| | | | | <#53FF09>✔✔</#53FF09><#FF0000>✘✘✘</#FF0000> <#E6FD14>| | | | |</#E6FD14>'
- '<#E6FD14>| | | | | | | | | |</#E6FD14>'
- '<#E6FD14>| | | | | | | | | |</#E6FD14>'
- '<#E6FD14>| | | | | <#C34242>■■■■■■■■■■</#C34242> <#E6FD14>| | | | |</#E6FD14>'
- '<#E6FD14>| | | | | | | | | |</#E6FD14>'
- '<#E6FD14>| | | | | | | | | |</#E6FD14>'
- '<#E6FD14>| | | | | <#B60F0F>ERROR</#B60F0F> <#E6FD14>| | | | |</#E6FD14>'
- '<#E6FD14>| | | | | <#00FAFA><b>RIGHT CLICK</b></#00FAFA> <#E6FD14>| | | | |</#E6FD14>'
- ''
click3:
type: right_click
hologram:
- ''
- '<#E6FD14>| | | | | <#00FAFA><b>READY TO VERIFY</b></#00FAFA> <#E6FD14>| | | | |</#E6FD14>'
- '<#E6FD14>| | | | | <#53FF09>✔✔✔</#53FF09><#FF0000>✘✘</#FF0000> <#E6FD14>| | | | |</#E6FD14>'
- '<#E6FD14>| | | | | | | | | |</#E6FD14>'
- '<#E6FD14>| | | | | | | | | |</#E6FD14>'
- '<#E6FD14>| | | | | <#D87878>■■■■■■■■■■</#D87878> <#E6FD14>| | | | |</#E6FD14>'
- '<#E6FD14>| | | | | | | | | |</#E6FD14>'
- '<#E6FD14>| | | | | | | | | |</#E6FD14>'
- '<#E6FD14>| | | | | <#B60F0F>ERROR</#B60F0F> <#E6FD14>| | | | |</#E6FD14>'
- '<#E6FD14>| | | | | <#00FAFA><b>RIGHT CLICK</b></#00FAFA> <#E6FD14>| | | | |</#E6FD14>'
- ''
click4:
type: right_click
hologram:
- ''
- '<#E6FD14>| | | | | <#00FAFA><b>READY TO VERIFY</b></#00FAFA> <#E6FD14>| | | | |</#E6FD14>'
- '<#E6FD14>| | | | | <#53FF09>✔✔✔✔</#53FF09><#FF0000>✘</#FF0000> <#E6FD14>| | | | |</#E6FD14>'
- '<#E6FD14>| | | | | | | | | |</#E6FD14>'
- '<#E6FD14>| | | | | | | | | |</#E6FD14>'
- '<#E6FD14>| | | | | <#E2B1B1>■■■■■■■■■■</#E2B1B1> <#E6FD14>| | | | |</#E6FD14>'
- '<#E6FD14>| | | | | | | | | |</#E6FD14>'
- '<#E6FD14>| | | | | | | | | |</#E6FD14>'
- '<#E6FD14>| | | | | <#B60F0F>ERROR</#B60F0F> <#E6FD14>| | | | |</#E6FD14>'
- '<#E6FD14>| | | | | <#00FAFA><b>RIGHT CLICK</b></#00FAFA> <#E6FD14>| | | | |</#E6FD14>'
- ''
click5:
type: right_click
hologram:
- ''
- '<#E6FD14>| | | | | <#00FAFA><b>READY TO VERIFY</b></#00FAFA> <#E6FD14>| | | | |</#E6FD14>'
- '<#E6FD14>| | | | | <#53FF09>✔✔✔✔✔</#53FF09> <#E6FD14>| | | | |</#E6FD14>'
- '<#E6FD14>| | | | | | | | | |</#E6FD14>'
- '<#E6FD14>| | | | | | | | | |</#E6FD14>'
- '<#E6FD14>| | | | | <#FFFFFF>■■■■■■■■■■</#FFFFFF> <#E6FD14>| | | | |</#E6FD14>'
- '<#E6FD14>| | | | | | | | | |</#E6FD14>'
- '<#E6FD14>| | | | | | | | | |</#E6FD14>'
- '<#E6FD14>| | | | | <#FFFFFF>CHECKING</#FFFFFF> <#E6FD14>| | | | |</#E6FD14>'
- '<#E6FD14>| | | | | <#00FAFA><b>RIGHT CLICK</b></#00FAFA> <#E6FD14>| | | | |</#E6FD14>'
- ''
click6:
type: default
# Confirm this click is to claim the prize
# Note you must end with a text group where can-claim is true!
can-claim: true
hologram:
- ''
- '<#E6FD14>| | | | | <#00FAFA><b>VERIFIED</b></#00FAFA> <#E6FD14>| | | | |</#E6FD14>'
- '<#E6FD14>| | | | | <#53FF09>✔✔✔✔✔</#53FF09> <#E6FD14>| | | | |</#E6FD14>'
- '<#E6FD14>| | | | | | | | | |</#E6FD14>'
- '<#E6FD14>| | | | | | | | | |</#E6FD14>'
- '<#E6FD14>| | | | | <#1AFF00>■■■■■■■■■■</#1AFF00> <#E6FD14>| | | | |</#E6FD14>'
- '<#E6FD14>| | | | | | | | | |</#E6FD14>'
- '<#E6FD14>| | | | | | | | | |</#E6FD14>'
- '<#E6FD14>| | | | | <#B60F0F>VALID</#B60F0F> <#E6FD14>| | | | |</#E6FD14>'
- '<#E6FD14>| | | | | <rainbow><b>GET THE REWARD</b></rainbow> <#E6FD14>| | | | |</#E6FD14>'
- ''
options:
# Whether to allow only one instance of this template to run on the server at a time
# If you forcefully teleport players to a specific location before generating the animation, it's recommended to set this to true
one-only: true
# Horizontal offset from the center, default 4.0
side-offset: 4.0
# Forward offset from the center, default 2.0 (the higher this number, the closer the side holograms are to the player)
forward-offset: 2.0
# Surround distance from the player
surround-distance: 6.0
# Vertical offset from the ground
vertical-offset: 1.0
# Duration, to prevent players from not clicking after the lottery starts, the plugin will forcefully end the lottery after 30 seconds by default
# The prize will be given to the player normally, but the animation display process will be skipped
valid-time: 30
# Since the plugin generates holograms around the player based on the player's position
# You can set some offset values for the player's position
# To make it better fit your own server situation
# Only supports XYZ coordinates
# Fill with 0.0;0.0;0.0 if empty
# x;y;z
player-loc-offset: 0.0;-0.35;0.0