bingdi_
如何创建一个这么个类型的商店
购买一个商品,购买的条件(PriceType)有几种
例如 钻石3个 绿宝石1个 金锭60个
那么玩家满足其中一个条件就可以获得 奖励(RewardType) 奖励一个指令吧

简单来说就是玩家背包有1个绿宝石,那么他就能买这个东西

这个可以做到吗,如果可以,求配置

弥猫うた
PriceType: item
    Price:
    - - type:DIAMOND
      - amount:3
    - - type:Gold_Ingot
      - amount:1
    - - type:Emerald
      - amount:60
    RewardType: opcommand或者command
      Reward:
          - xxx

xmdhs



https://www.mcbbs.net/thread-830440-1-1.html

bingdi_
xmdhs 发表于 2019-12-28 10:34
https://www.mcbbs.net/thread-830440-1-1.html

求具体配置

bingdi_
Mucrazy 发表于 2019-12-28 10:27
PriceType: item
    Price:
    - - type:DIAMOND

你这个是需要全部满足才行
我要的是满足其中一个

弥猫うた
bingdi_ 发表于 2019-12-28 11:31
你这个是需要全部满足才行
我要的是满足其中一个

shop:
xxxx:
        Condition:
        - match:DIAMOND
        - dontmatch:Gold_Ingot,Emerald
        PriceType: item
                Price:
                - - type:DIAMOND
                  - amount:3
                RewardType: opcommand
                  Reward:
                          - xxx
        InventoryLocation: 1
xxxx:
        Condition:
        - match:Gold_Ingot
        - dontmatch:DIAMOND,Emerald
        PriceType: item
                Price:
                - - type:Gold_Ingot
                  - amount:1
                RewardType: opcommand
                  Reward:
                          - xxx
        InventoryLocation: 1
xxxx:
        Condition:
        - match:Emerald
        - dontmatch:DIAMOND,Gold_Ingot
        PriceType: item
                Price:
                - - type:Emerald
                  - amount:60
                RewardType: opcommand
                  Reward:
                          - xxx
        InventoryLocation: 1
那就判断呗