Default Execution Template
About 285 wordsLess than 1 minute
This file mainly controls the executed template, default is hologram
template/default.yml
# The animation type this template will execute
type: hologram
# Animation execution mode
mode: monitor
# The requirement of running this execution template
requirement:
req1: has_money;1000;true
req2: papi_double;%player_level%;>=;10
# Reward template paired with this template
reward: toolreward
# Actions to the player executing this template
# Distance should be 5-7 blocks to display everything
actions:
- console_command{command=eco take %player% 1000}
#- 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
# ↑ This teleports the player to a specific location and generates there
# Two usage methods
# ↓ This generates directly in front of the player (at any location)
- run_animation{animation=default}
hologram:
# Don't change these numbers
# Left
'2':
text:
# Top text
top:
- '<rainbow>←←←←←←←←←←←←←←←</rainbow>'
- '<gray><strikethrough> </strikethrough></gray>'
# Bottom text
bottom:
- '<gray><strikethrough> </strikethrough></gray>'
# Middle
'1':
text:
top:
- '<shadow:#000000FF><b>%reward_template%</b></shadow>'
- '<rainbow>{a}{a}{a}{a}{a}{a}{a}{a}{a}{a}{a}{a}{a}{a}{a}{a}</rainbow>'
- '<gray><strikethrough> </strikethrough></gray>'
bottom:
- '<gray><strikethrough> </strikethrough></gray>'
# Right
'0':
text:
top:
- '<rainbow>←←←←←←←←←←←←←←←</rainbow>'
- '<gray><strikethrough> </strikethrough></gray>'
bottom:
- '<gray><strikethrough> </strikethrough></gray>'
# Options
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 3.3
side-offset: 3.3
# Forward offset from the center, default 0.5 (the higher this number, the closer the side holograms are to the player)
forward-offset: 0.5