默认执行模板
411 字约 1 分钟
这个文件主要控制执行的模板, 默认为 hologram
你可以创建新的文件并将这些内容复制进去 即可创建新的执行模板
template/default.yml
# 该模板会执行的动画(animation)类型
type: hologram
# 动画执行的模式
mode: monitor
# 运行该执行模板的要求
requirement:
req1: has_money;1000;true
req2: papi_double;%player_level%;>=;10
# 与该模板配合的奖励模板
reward: toolreward
# 对执行该模板的玩家的行为
# 距离应该5-7格,可以展示所有
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 生成在特定位置
# ↑ 这个是TP玩家到特定位置并且在特定位置生成
# 两种用法 Two usage
# ↓ 这个是直接在玩家面前(任意位置)生成
- run_animation{animation=default}
hologram:
# 不要更改这些数字
# 左
'2':
text:
# 上方文字
top:
- '<rainbow>←←←←←←←←←←←←←←←</rainbow>'
- '<gray><strikethrough> </strikethrough></gray>'
# 下方文字
bottom:
- '<gray><strikethrough> </strikethrough></gray>'
# 中
'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>'
# 右
'0':
text:
top:
- '<rainbow>←←←←←←←←←←←←←←←</rainbow>'
- '<gray><strikethrough> </strikethrough></gray>'
bottom:
- '<gray><strikethrough> </strikethrough></gray>'
# 选项
options:
# 是否只允许一个该模板同时在服务器执行
# 如果你强行传送玩家到某个位置再生成动画, 那么推荐你设置为true
one-only: true
# 与中间的水平偏离值, 默认3.3
side-offset: 3.3
# 与中间的水平偏离值, 默认0.5 (这个数字越高, 两边的全息图离玩家越近)
forward-offset: 0.5