跳到主要内容

one-click-executor(点击执行)

在指定坐标放一个“可点击点”,玩家右键触发后执行 Kether 脚本。

params

必填:

  • location:坐标(相对于地牢世界)
  • kether:脚本列表

示例:

gate-1:
type: one-click-executor
params:
location: { x: -137, y: 137, z: -26 }
kether:
- 'tell "你点击了机关"'

行为细节

  • 触发事件:PlayerInteractEvent(右键方块)
  • 执行者:触发的玩家