本帖最后由 桥优 于 2022-7-17 22:00 编辑 
已自行解决
actions:
all:
condition: 'item *"material:DIAMOND,amount:20"'
actions:
- 'close'
- 'take-item: material:DIAMOND,amount:20' #扣除物品
- 'op: itemget &c物品' #控制台指令
- 'tell: &7&l[系统] &c兑换成功!'
deny:
- 'close'
- 'tell: &7&l[系统] &c物品不足!'
已自行解决
actions:
all:
condition: 'item *"material:DIAMOND,amount:20"'
actions:
- 'close'
- 'take-item: material:DIAMOND,amount:20' #扣除物品
- 'op: itemget &c物品' #控制台指令
- 'tell: &7&l[系统] &c兑换成功!'
deny:
- 'close'
- 'tell: &7&l[系统] &c物品不足!'
  '1':
display:
material: stone
name: '§7消耗物品'
lore:
- 'xxxx'
actions:
all:
condition: 'check papi *%checkitem_amount_mat:物品名% == *1'
actions:
- 'command: xxx'
- 'tell: 成功消耗物品, 执行了指令 xxx'
deny:
- 'close'
- 'tell: 你没有足够的物品'
- 'sound: BLOCK_ANVIL_LAND'
display:
material: stone
name: '§7消耗物品'
lore:
- 'xxxx'
actions:
all:
condition: 'check papi *%checkitem_amount_mat:物品名% == *1'
actions:
- 'command: xxx'
- 'tell: 成功消耗物品, 执行了指令 xxx'
deny:
- 'close'
- 'tell: 你没有足够的物品'
- 'sound: BLOCK_ANVIL_LAND'