GermGuiExtend


GermGuiExtend简介

GermGuiExtend 是萌芽引擎的免费附属插件,它支持为扩展槽位创建支持按键触发的的快捷栏槽位,以及创建系统商店


配置文件

PotionSettings.yml

#当按下 U 键
KeyDown_22:
  #槽位的ID
  germplugin_potion_test:
    #药水索引名
    potion1:
      #要求槽位中的物品nbt、lore、name包含即可
      match: "萌芽的草药"
      #如果触发成功减少数量
      deductAmount: 1
      #玩家拥有该权限才可以使用
      hasPermission: "germ.potion.potion1"
      #冷却时间 单位秒
      cooldown: 10
      #在使用后模拟左键(LEFT)或右键(RIGHT)使用槽位中的物品,填写CANCEL为取消模拟
      #需要注意,一些插件会在响应后左键右键后处理手持物品,如果与本模拟有歧义问题,并非本插件问题
      emulator: CANCEL
      #如果物品使用成功则触发指令 删除为不触发
      successCmds:
        - "cmd<->say s"
        - "opcmd<->say s"
        - "servercmd<->say s"

ShopSettings.yml

EssentialSettings:
  title: "&e萌芽引擎附属商店"
CommoditySettings:
  #商店名字 使用指令 gge shop shop1 打开商店 需要权限 germshop.open.shop1
  shop1:
    #商品索引名
    commodity1:
      name: "&e暴风大剑"
      price: 10000
      points: 9999
      #完整权限是 germshop.buy.shop1.commodify1
      permission: "commodify1"
      rewardCmds:
        - "opcmd<->我买了种子"
      showItem:
        ==: org.bukkit.inventory.ItemStack
        type: IRON_SWORD
        meta:
          ==: ItemMeta
          meta-type: UNSPECIFIC
          display-name: '§2暴风大剑'
          lore:
            - '§f攻击力+ 13'
            - '§7没有别的特殊作用了'

ShopGui.yml

player_inventory_shop:
  options:
    animations:
      - "从透明到不透明"
  private:
    background:
      path: 'local<->textures/germshop/background.png'
      locationX: "w*0.325"
      locationY: "h*0.1"
      width: "w*0.3"
      height: "h*0.68"
    player:
      show: false
      size: 'w*0.01'
      locationX: 'w*0.2'
      locationY: 'h*0.4'
    book:
      show: false
      locationX: '-10'
      locationY: '30'
    SlotSettings:
      Slot_0:
        show: false
        size: "w*0.0262"
        locationX: 'w*0.675'
        locationY: 'h*0.253'
      Slot_1:
        show: false
        size: "w*0.0262"
        locationX: 'w*0.546'
        locationY: 'h*0.228'
        locationZ: '90'
      Slot_2:
        show: false
        size: "w*0.0262"
        locationX: 'w*0.575'
        locationY: 'h*0.228'
      Slot_3:
        show: false
        size: "w*0.0262"
        locationX: 'w*0.546'
        locationY: 'h*0.281'
      Slot_4:
        show: false
        size: "w*0.0262"
        locationX: 'w*0.575'
        locationY: 'h*0.281'
      #5槽属于头部装备
      Slot_5:
        show: false
        size: "w*0.028"
        locationX: 'w*0.27'
        locationY: 'h*0.074'
      Slot_6:
        show: false
        size: "w*0.028"
        locationX: 'w*0.27'
        locationY: 'h*0.14'
      Slot_7:
        show: false
        size: "w*0.028"
        locationX: 'w*0.27'
        locationY: 'h*0.207'
      Slot_8:
        show: false
        size: "w*0.028"
        locationX: 'w*0.27'
        locationY: 'h*0.274'
      #9槽属于背包第一行的第一格
      Slot_9:
        show: true

        size: "w*0.0265"
        locationX: 'w*0.336'
        locationY: 'h*0.524'
      Slot_10:
        show: true

        size: "w*0.0265"
        locationX: 'w*0.367'
        locationY: 'h*0.524'
      Slot_11:
        show: true

        size: "w*0.0265"
        locationX: 'w*0.399'
        locationY: 'h*0.524'
      Slot_12:
        show: true

        size: "w*0.0265"
        locationX: 'w*0.4302'
        locationY: 'h*0.524'
      Slot_13:
        show: true

        size: "w*0.0265"
        locationX: 'w*0.4615'
        locationY: 'h*0.524'
      Slot_14:
        show: true

        size: "w*0.0265"
        locationX: 'w*0.4932'
        locationY: 'h*0.524'
      Slot_15:
        show: true

        size: "w*0.0265"
        locationX: 'w*0.525'
        locationY: 'h*0.524'
      Slot_16:
        show: true

        size: "w*0.0265"
        locationX: 'w*0.556'
        locationY: 'h*0.524'
      Slot_17:
        show: true

        size: "w*0.0265"
        locationX: 'w*0.5875'
        locationY: 'h*0.524'
      Slot_18:
        show: true

        size: "w*0.0265"
        locationX: 'w*0.336'
        locationY: 'h*0.584'
      Slot_19:
        show: true

        size: "w*0.0265"
        locationX: 'w*0.367'
        locationY: 'h*0.584'
      Slot_20:
        show: true

        size: "w*0.0265"
        locationX: 'w*0.399'
        locationY: 'h*0.584'
      Slot_21:
        show: true

        size: "w*0.0265"
        locationX: 'w*0.4302'
        locationY: 'h*0.584'
      Slot_22:
        show: true

        size: "w*0.0265"
        locationX: 'w*0.4615'
        locationY: 'h*0.584'
      Slot_23:
        show: true

        size: "w*0.0265"
        locationX: 'w*0.4932'
        locationY: 'h*0.584'
      Slot_24:
        show: true

        size: "w*0.0265"
        locationX: 'w*0.525'
        locationY: 'h*0.584'
      Slot_25:
        show: true

        size: "w*0.0265"
        locationX: 'w*0.556'
        locationY: 'h*0.584'
      Slot_26:
        show: true

        size: "w*0.0265"
        locationX: 'w*0.5875'
        locationY: 'h*0.584'
      Slot_27:
        show: true

        size: "w*0.0265"
        locationX: 'w*0.336'
        locationY: 'h*0.645'
      Slot_28:
        show: true

        size: "w*0.0265"
        locationX: 'w*0.367'
        locationY: 'h*0.645'
      Slot_29:
        show: true

        size: "w*0.0265"
        locationX: 'w*0.399'
        locationY: 'h*0.645'
      Slot_30:
        show: true

        size: "w*0.0265"
        locationX: 'w*0.4302'
        locationY: 'h*0.645'
      Slot_31:
        show: true

        size: "w*0.0265"
        locationX: 'w*0.4615'
        locationY: 'h*0.645'
      Slot_32:
        show: true

        size: "w*0.0265"
        locationX: 'w*0.4932'
        locationY: 'h*0.645'
      Slot_33:
        show: true

        size: "w*0.0265"
        locationX: 'w*0.525'
        locationY: 'h*0.645'
      Slot_34:
        show: true

        size: "w*0.0265"
        locationX: 'w*0.556'
        locationY: 'h*0.645'
      Slot_35:
        show: true

        size: "w*0.0265"
        locationX: 'w*0.5875'
        locationY: 'h*0.645'
      Slot_36:
        show: true

        size: "w*0.0265"
        locationX: 'w*0.336'
        locationY: 'h*0.712'
      Slot_37:
        show: true

        size: "w*0.0265"
        locationX: 'w*0.367'
        locationY: 'h*0.712'
      Slot_38:
        show: true

        size: "w*0.0265"
        locationX: 'w*0.399'
        locationY: 'h*0.712'
      Slot_39:
        show: true

        size: "w*0.0265"
        locationX: 'w*0.4302'
        locationY: 'h*0.712'
      Slot_40:
        show: true

        size: "w*0.0265"
        locationX: 'w*0.4615'
        locationY: 'h*0.712'
      Slot_41:
        show: true

        size: "w*0.0265"
        locationX: 'w*0.4932'
        locationY: 'h*0.712'
      Slot_42:
        show: true

        size: "w*0.0265"
        locationX: 'w*0.525'
        locationY: 'h*0.712'
      Slot_43:
        show: true

        size: "w*0.0265"
        locationX: 'w*0.556'
        locationY: 'h*0.712'
      Slot_44:
        show: true

        size: "w*0.0265"
        locationX: 'w*0.5875'
        locationY: 'h*0.712'
      #45是盾牌的槽
      Slot_45:
        show: false
        size: "w*0.028"
        locationX: 'w*0.389'
        locationY: 'h*0.275'
  title:
    type: 4
    #文字的对齐方式 左对齐 left  右对齐 right 居中 center  可删除 默认为left
    align: "center"
    #缩放 注意引号 可用 w h 计算 1为原大小
    scale: 'w*0.0012'
    #字符串
    texts:
      - "&e萌芽引擎"
    locationX: "w*0.384"
    locationY: "h*0.108"
    #这个图片的动画(可删除)
  commodity_list:
    type: 8
    width: 'w*0.265'
    height: 'h*0.312'
    locationX: 'w*0.336'
    locationY: 'h*0.161'
    sliderV:
      type: 3
      defaultPath: 'local<->textures/germshop/gdk.png'
      hoverPath: 'local<->textures/germshop/gdk.png'
      width: "w*0.01"
      height: "h*0.045"
    #竖向滑块栏的宽度
    widthV: 'w*0.015'
    #竖向滑块栏的高度
    heightV: 'h*0.268'
    #是否关闭竖向滑块
    invalidV: false
    #竖向可滚动的像素
    scrollableV: '0'
    #已经滚动的像素 要小于等于可滚动的像素
    scrolledV: '0'
    #滑块栏的坐标
    locationVX: 'w*0.601'
    locationVY: 'h*0.161'
    #是否关闭横向滑块
    invalidH: true
commodity:
  type: 11
  locationX: "w*0.336"
  locationY: "h*0.161"
  height: 'h*0.065'
  relativeParts:
    background:
      enable: true
      type: 0
      path: 'local<->textures/germshop/sk.png'
      locationX: "0"
      locationY: "0"
      locationZ: "0"
      width: "w*0.341"
      height: "h*0.065"
    slot:
      type: 5
      enable: true
      size: "w*0.027"
      invalid: false
      interact: false
      identity: "cper_slot_1"
      fillPath: 'local<->textures/germshop/wp1.png'
      emptyPath: 'local<->textures/germshop/wp1.png'
      hoverSound: ''
      clickSound: 'minecraft:ui.button.click'
      locationX: "w*0.004"
      locationY: "h*0.007"
    buy:
      type: 3
      defaultPath: 'local<->textures/germshop/an1.png'
      hoverPath: 'local<->textures/germshop/an2.png'
      hoverSound: ''
      clickSound: 'minecraft:ui.button.click'
      locationX: "w*0.231"
      locationY: "h*0.015"
      locationZ: "0"
      width: "w*0.03"
      height: "h*0.036"
      invalid: false
      align: "center"
      texts:
        - "&b购买"
      textScale: "w*0.0012"
      hoverAlign: "center"
      hoverTextScale: "w*0.0012"
      hoverTexts:
        - "&e购买"
      textOffsetX: "w*0.001"
    price_icon:
      enable: true
      type: 0
      path: 'local<->textures/germshop/hb1.png'
      locationX: "w*0.143"
      locationY: "h*0.040"
      width: "w*0.007"
      height: "h*0.02"
    points_icon:
      enable: true
      type: 0
      path: 'local<->textures/germshop/hb2.png'
      locationX: "w*0.184"
      locationY: "h*0.040"
      width: "w*0.007"
      height: "h*0.02"
    name:
      type: 4
      align: "left"
      scale: 'w*0.0012'
      texts:
        - "&3金银珠宝"
      locationX: "w*0.045"
      locationY: "h*0.024"
      locationZ: "0"
    price:
      type: 4
      align: "center"
      scale: 'w*0.0012'
      texts:
        - "&e300"
      locationX: "w*0.166"
      locationY: "h*0.040"
      locationZ: "0"
    points:
      type: 4
      align: "center"
      scale: 'w*0.0012'
      texts:
        - "&b0"
      locationX: "w*0.209"
      locationY: "h*0.040"
      locationZ: "0"
germshop_child:
  options:
    animations:
      - "从小变大"
    openDos:
      - "delay<->100"
      - "putPlaceholder<->ttt@%金币%*%shopchild_input_input%"
      - "update<->信息4@texts@&e%calculate_ttt%"
      - "goto<->1"
  background:
    enable: true
    type: 0
    path: 'local<->textures/germshop/background2.png'
    locationX: "w*0.406"
    locationY: "h*0.291"
    width: "w*0.13"
    height: "h*0.22"
  title:
    type: 4
    align: "center"
    scale: 'w*0.0012'
    texts:
      - "&7 · &f订单信息&7 · "
    locationX: "w*0.472"
    locationY: "h*0.317"
    locationZ: "0"
  name:
    type: 4
    align: "center"
    scale: 'w*0.0012'
    texts:
      - "&a%商品名字%"
    locationX: "w*0.472"
    locationY: "h*0.3425"
    locationZ: "0"
  价格:
    type: 4
    align: "center"
    scale: 'w*0.00115'
    texts:
      - "&e价格"
    locationX: "w*0.4395"
    locationY: "h*0.370"
    locationZ: "0"
  price:
    type: 4
    align: "center"
    scale: 'w*0.00115'
    texts:
      - ""
    locationX: "w*0.478"
    locationY: "h*0.370"
    locationZ: "0"
  points:
    type: 4
    align: "center"
    scale: 'w*0.00115'
    texts:
      - "&b%点券%"
    locationX: "w*0.508"
    locationY: "h*0.370"
    locationZ: "0"
  信息6:
    type: 4
    align: "center"
    scale: 'w*0.0012'
    texts:
      - "&b数量:"
    locationX: "w*0.445"
    locationY: "h*0.408"
    locationZ: "0"
  input:
    type: 7
    autoClear: true
    background: false
    limit: 2
    focus: true
    permanentFocus: true
    regular: "[^(0-9)]"
    sync: true
    input: '1'
    width: "w*0.0155"
    height: "h*0.02"
    locationX: "w*0.497"
    locationY: "h*0.411"
  reduce:
    type: 3
    #按钮默认的图片、GIF(如果填的是gif文件就会渲染成gif)
    defaultPath: 'local<->textures/germshop/-1.png'
    #鼠标悬浮到按钮时的图片、GIF(如果填的是gif文件就会渲染成gif)
    hoverPath: 'local<->textures/germshop/-2.png'
    #悬浮到按钮播放声音(可删除)
    hoverSound: ''
    #点击按钮播放声音(可删除)
    clickSound: 'minecraft:ui.button.click'
    locationX: "w*0.475"
    locationY: "h*0.408"
    locationZ: "0"
    width: "w*0.01"
    height: "h*0.02"
    #是否是禁止点击悬浮的
    invalid: false
    clickDos:
      - "update<->input@input@%shopchild_input_input%-1"
  add:
    type: 3
    #按钮默认的图片、GIF(如果填的是gif文件就会渲染成gif)
    defaultPath: 'local<->textures/germshop/+1.png'
    #鼠标悬浮到按钮时的图片、GIF(如果填的是gif文件就会渲染成gif)
    hoverPath: 'local<->textures/germshop/+2.png'
    #悬浮到按钮播放声音(可删除)
    hoverSound: ''
    #点击按钮播放声音(可删除)
    clickSound: 'minecraft:ui.button.click'
    locationX: "w*0.515"
    locationY: "h*0.408"
    locationZ: "0"
    width: "w*0.01"
    height: "h*0.02"
    #是否是禁止点击悬浮的
    invalid: false
    clickDos:
      - "update<->input@input@%shopchild_input_input%+1"
  确定购买:
    type: 3
    #按钮默认的图片、GIF(如果填的是gif文件就会渲染成gif)
    defaultPath: 'local<->textures/germshop/an1.png'
    #鼠标悬浮到按钮时的图片、GIF(如果填的是gif文件就会渲染成gif)
    hoverPath: 'local<->textures/germshop/an2.png'
    #悬浮到按钮播放声音(可删除)
    hoverSound: ''
    #点击按钮播放声音(可删除)
    clickSound: 'minecraft:ui.button.click'
    locationX: "w*0.420"
    locationY: "h*0.448"
    locationZ: "0"
    width: "w*0.045"
    height: "h*0.04"
    #是否是禁止点击悬浮的
    invalid: false
    align: "center"
    #默认字符串将显示在按钮中间,支持PAPI变量(可删除)
    texts:
      - "&e&l确定购买"
    #默认字符串大小 默认1
    textScale: "w*0.001"
    #对齐模式 可删除
    hoverAlign: "center"
    #悬浮字符串大小 默认1
    hoverTextScale: "w*0.001"
    #悬浮字符串,介绍同上(可删除)
    hoverTexts:
      - "&b&l确定购买"
    #在根据对齐方式对齐后坐标再偏移多少
    textOffsetX: "w*0.0015"
    textOffsetY: "0"
    textOffsetZ: "0"
  取消购买:
    type: 3
    #按钮默认的图片、GIF(如果填的是gif文件就会渲染成gif)
    defaultPath: 'local<->textures/germshop/an1.png'
    #鼠标悬浮到按钮时的图片、GIF(如果填的是gif文件就会渲染成gif)
    hoverPath: 'local<->textures/germshop/an2.png'
    #悬浮到按钮播放声音(可删除)
    hoverSound: ''
    #点击按钮播放声音(可删除)
    clickSound: 'minecraft:ui.button.click'
    locationX: "w*0.476"
    locationY: "h*0.448"
    locationZ: "0"
    width: "w*0.045"
    height: "h*0.04"
    #是否是禁止点击悬浮的
    invalid: false
    texts:
      - "&c&l取消购买"
    #默认字符串大小 默认1
    textScale: "w*0.001"
    #对齐模式 可删除
    hoverAlign: "center"
    #悬浮字符串大小 默认1
    hoverTextScale: "w*0.001"
    #悬浮字符串,介绍同上(可删除)
    hoverTexts:
      - "&d&l取消购买"
    #在根据对齐方式对齐后坐标再偏移多少
    textOffsetX: "w*0.0015"
    textOffsetY: "0"
    textOffsetZ: "0"
    clickDos:
      - "closeChild<->shopchild"
germshop_提示界面:
  options:
    startX: "0"
    startY: "0"
    guide: true
    animations:
      - "从小变大"
  购买成功底图:
    enable: true
    type: 0
    path: 'local<->textures/germshop/background3.png'
    locationX: "w*0.406"
    locationY: "h*0.291"
    width: "w*0.13"
    height: "h*0.16"
  提示:
    type: 4
    align: "center"
    scale: 'w*0.0012'
    texts:
      - "&b&l购买成功"
    locationX: "w*0.472"
    locationY: "h*0.34"
    locationZ: "0"
  确定:
    type: 3
    defaultPath: 'local<->textures/germshop/an1.png'
    hoverPath: 'local<->textures/germshop/an2.png'
    clickSound: 'minecraft:ui.button.click'
    locationX: "w*0.420"
    locationY: "h*0.395"
    locationZ: "0"
    width: "w*0.045"
    height: "h*0.04"
    invalid: false
    align: "center"
    texts:
      - "&e&l确定"
    textScale: "w*0.001"
    hoverAlign: "center"
    hoverTextScale: "w*0.001"
    hoverTexts:
      - "&b&l确定"
    textOffsetX: "w*0.0015"
    clickDos:
      - "valid<->all"
      - "closeChild<->thisGui"
  取消:
    type: 3
    defaultPath: 'local<->textures/germshop/an1.png'
    hoverPath: 'local<->textures/germshop/an2.png'
    clickSound: 'minecraft:ui.button.click'
    locationX: "w*0.476"
    locationY: "h*0.395"
    locationZ: "0"
    width: "w*0.045"
    height: "h*0.04"
    invalid: false
    texts:
      - "&c&l取消"
    textScale: "w*0.001"
    hoverAlign: "center"
    hoverTextScale: "w*0.001"
    hoverTexts:
      - "&d&l取消"
    textOffsetX: "w*0.0015"
    clickDos:
      - "valid<->all"
      - "closeChild<->thisGui"

results matching ""

    No results matching ""