🎉 [精灵]CompanionsPlus v3.0.0 版本已发布 ✨ 点击查看
Skip to content

商店菜单 ​

菜单如何出售/收购物品 ​

  • 主要节点

shopType节点 商店类型

  1. sell 出售
  2. buy 购买
  3. leftBuyRightSell 左买右卖(1.7.7+)
  4. leftSellRightBuy 左卖右买(1.7.7+)

shopMaterial节点 商店出售/收购的物品材质

格式 物品材质:数量

  1. 原版物品 shopMaterial: 'APPLE:64'
  2. 物品库物品(1.7.7+) shopMaterial: '[ID]:64'

shopMoney 金币
shopPoint 点券
shopCurrency 多货币价格(1.4.2+) shopGiveMaterial 商店给予物品(1.8.2+)

shopMoney示例(1.2.0+) ​

需金币插件Vault

yaml
'sell':
  index: 38
  name: '   &8[&c金币出售物品&8]'
  material: APPLE
  lore:
    - "&f- &7点击出售物品"
    - "&f- &7出售64个苹果获得100金币"
  isEnchant: false
  custom-model-data: 0
  # 商店类型 sell 是出售 buy 是购买
  shopType: 'sell'
  # 出售的商品 格式 物品材质:数量
  shopMaterial: "APPLE:64"
  # 价格
  shopMoney: 100
  commands:
    - '[message] 出售64苹果成功获得100金币'
'buy':
  index: 39
  name: '   &8[&c金币购买物品&8]'
  material: APPLE
  lore:
    - "&f- &7点击购买物品"
    - "&f- &7100金币购买64个苹果"
  isEnchant: false
  custom-model-data: 0
  # 商店类型 sell 是出售 buy 是购买
  shopType: 'buy'
  # 出售的商品 格式 物品材质:数量
  shopMaterial: "APPLE:64"
  # 价格
  shopMoney: 100

shopPoint示例(1.2.0+) ​

需点券插件PlayerPoints3.0.0+

yaml
'sell1':
  index: 40
  name: '   &8[&c点券出售物品&8]'
  material: POTATO
  lore:
    - "&f- &7点击出售物品"
    - "&f- &7出售64个土豆获得100点券"
  isEnchant: false
  custom-model-data: 0
  # 商店类型 sell 是出售 buy 是购买
  shopType: 'sell'
  # 出售的商品 格式 物品材质:数量
  shopMaterial: "POTATO:64"
  # 价格
  shopPoint: 100
'buy1':
  index: 41
  name: '   &8[&c点券购买物品&8]'
  material: POTATO
  lore:
    - "&f- &7点击收购物品"
    - "&f- &7100点券购买64个土豆"
  isEnchant: false
  custom-model-data: 0
  # 商店类型 sell 是出售 buy 是购买
  shopType: 'buy'
  # 出售的商品 格式 物品材质:数量
  shopMaterial: "POTATO:64"
  # 价格
  shopPoint: 100

shopCurrency示例(1.4.2+) ​

需多货币插件PlayerCurrency1.0.3+

yaml
'42':
  index: 42
  name: '   &8[&c自定义货币购买物品&8]'
  material: POTATO
  lore:
    - "&f- &7100购买1个土豆"
  isEnchant: false
  custom-model-data: 0
  # 商店类型 sell 是出售 buy 是购买
  shopType: 'buy'
  # 出售的商品 格式 物品材质:数量
  shopMaterial: "POTATO:1"
  # 价格 类型: 价格
  shopCurrency: "money:100"
'43':
  index: 43
  name: '   &8[&c自定义货币购买物品&8]'
  material: POTATO
  lore:
    - "&f- &7点击购买土豆"
  isEnchant: false
  custom-model-data: 0
  # 商店类型 sell 是出售 buy 是购买
  shopType: 'buy'
  input: '[number] 请输入购买数量'
  # 出售的商品 格式 物品材质:数量
  shopMaterial: "POTATO:${input}"
  # 价格 类型: 价格
  shopCurrency: "money:${input * 100}"

shopGiveMaterial示例(1.8.2+) ​

yaml
'sell':
  index: 38
  name: '   &8[&c物换物&8]'
  material: APPLE
  lore:
    - "&f- &7点击出售物品"
    - "&f- &7出售64个苹果获得64个石头"
  isEnchant: false
  custom-model-data: 0
  # 商店类型 sell 是出售 buy 是购买
  shopType: 'sell'
  # 出售的商品 格式 物品材质:数量
  shopMaterial: "APPLE:64"
  # 价格是物品 格式 物品材质:数量
  shopGiveMaterial: "STONE:64"