Kether 动作
TreasuresLite 注册的 Kether 脚本动作,用于在 Kether 脚本中控制宝箱行为。
动作列表
| 动作 | 语法 | 说明 |
|---|---|---|
tsl-put | tsl-put {宝箱ID} {x} {y} {z} [face {朝向}] | 在指定坐标放置宝箱 |
tsl-open | tsl-open {宝箱ID} | 打开指定宝箱 |
tsl-cancel | tsl-cancel | 取消当前宝箱操作 |
tsl-close | tsl-close | 关闭宝箱界面 |
tsl-claim | tsl-claim | 领取宝箱奖励 |
详细说明
tsl-put
在指定世界坐标放置一个宝箱。可选 face 参数指定朝向。
tsl-put "rare_chest" 100 64 200
tsl-put "rare_chest" 100 64 200 face north
tsl-open
为当前玩家打开指定 ID 的宝箱。
tsl-open "rare_chest"
tsl-cancel
取消当前正在进行的宝箱交互操作。
tsl-cancel
tsl-close
关闭玩家当前打开的宝箱界面。
tsl-close
tsl-claim
领取当前宝箱中的奖励物品。
tsl-claim
组合示例
// 放置宝箱并自动打开
tsl-put "daily_chest" 100 64 200 face south
tsl-open "daily_chest"