阿萨辛无祸
'Shop8':
    material: 351
    amount: 4
    slot: 43
    display_name: '&f墨囊'
    lore:
    - '&f价格: 10'
    left_click_commands:
    - '[console] eco give %player_name% 10'
    - '[console] clear %player_name% dye 4'
    - '[message] &f你出售了墨囊.'
    left_click_requirement:
      requirements:
        anything_here1:
          type: string equals
          input: '%checkitem_mat:DYE,data:0%'
          output: 'yes'
        anything_here:
          type: has item
          material: DYE
          amount: 4
      deny_commands:
      - '[message] &f你没有墨囊.'


anything_here1:
          type: string equals
          input: '%checkitem_mat:DYE,data:0%'
          output: 'yes'
上面这串 :因为点击会直接给金币所以看bbs帖子加的,可是虽然这样做不会给金币了,但也不会检测给背包内有物品则出售了!

想要点击检测 ,其他没有子id的物品大部分都可以出售!

目前插件版本:DeluxeMenus-1.10.5.jar
核心:spigot!


求助!!



无敌三脚猫
input: '%checkitem_mat:INK_SACK%'
以前这个物品名字不叫dye

阿萨辛无祸
无敌三脚猫 发表于 2022-5-18 14:26
input: '%checkitem_mat:INK_SACK%'
以前这个物品名字不叫dye

好像不是这个名字,没反应。。

guixinyang
是什么版本的服务端,不同版本可能名字存在差异,你把墨囊换成其他的试试

阿萨辛无祸
guixinyang 发表于 2022-5-18 21:29
是什么版本的服务端,不同版本可能名字存在差异,你把墨囊换成其他的试试 ...

1.12.2spigot

无敌三脚猫
阿萨辛无祸 发表于 2022-5-18 20:05
好像不是这个名字,没反应。。

你写了两个条件啊,你改了一个anything_here1,那anything_here下面的DYE你改了吗?

阿萨辛无祸
无敌三脚猫 发表于 2022-5-18 22:30
你写了两个条件啊,你改了一个anything_here1,那anything_here下面的DYE你改了吗? ...

改了啊,clear id 显示没有改物品

阿萨辛无祸
chan_ming 发表于 2022-5-18 23:57
这个ID没反应吧?

是的,一点反应都没有! 估计没办法作子id了