跳到主要内容

item-consume-on-location(消耗物品触发)

玩家在指定位置右键,并且背包中有足够数量的指定 NeigeItems 物品时,扣除物品并执行脚本。

依赖

  • NeigeItems(必需)

params

必填:

  • location:坐标
  • item:NeigeItems 物品 ID
  • amount:消耗数量
  • kether:脚本列表

示例:

pay-door:
type: item-consume-on-location
params:
location: { x: 5, y: 64, z: 5 }
item: KEY_CARD_1
amount: 1
kether:
- 'tell "门已开启"'

行为细节

  • 仅主手、右键方块、点击位置等于 location 时触发
  • 执行者:触发的玩家