基岩版 UI

这个页面介绍的内容只在付费版中提供。

使用

  • 同时 需要 Geyser 和 Floodgate;

  • 必须将 Geyser 配置文件中 auth-type 项设置为 floodgate

  • 如果你是群组服务器,请按照 这个页面 完成 floodgate 在群组服中的配置;

  • 自此,所有进入服务器的基岩版玩家都会使用新的 UI,如果没有,请尝试将 config.yml 中的 menu.bedrock.check-method 选项修改为 UUID

  • 基岩版 UI 的生成是自动的,无需手动修改。

添加图标

在商品的配置中添加 bedrock.icon 选项即可为其添加图标。图标的格式有两种:

  • path;;本地资源包路径,例如:path;;textures/blocks/stone_granite.png

  • url;;网络图片直链,例如:url;;https://raw.githubusercontent.com/Jens-Co/MinecraftItemImages/main/1.20/melon_slice.png

一个使用了自定义图标的商品配置如下:

  D:
    price-mode: ANY
    product-mode: CLASSIC_ALL
    # 添加的部分
    bedrock:
      hide: false
      icon: 'url;;https://raw.githubusercontent.com/Jens-Co/MinecraftItemImages/main/1.20/melon_slice.png'
    products:
      1:
        material: melon_slice
        amount: 1
    buy-prices:
      5:
        economy-type: exp
        amount: 2
        placeholder: '&6{amount} e'
        start-apply: 0  
      2:
        economy-type: levels
        amount: 5
        placeholder: '&6{amount} e1'
        start-apply: 0 
    sell-prices:
      1:
        economy-plugin: Vault
        amount: 1
        placeholder: '&6{amount} Coins'
        start-apply: 0
    sell-limits:
      global: 640
      default: 128
      vip: 192
    sell-limits-conditions:
      vip:
        - 'permission: group.vip'
    sell-limits-reset-mode: 'TIMED'
    sell-limits-reset-time: '00:00:00'  

效果图如下:

#

隐藏按钮

如果你想要某个按钮不展示给基岩版玩家,将示例中的 bedrock.hide 选项改为 true 即可。

Last updated