菜单无法移动

菜单只能放在第一格,无法移动,现将菜单修改为可移动式

插件引用

官网:https://github.com/RockinChaos/ItemJoin

配置方法

注意:当初让菜单无法移动的原因是,ItemJoin在给予玩家物品时,是给予的固定位置,菜单默认第一格,如果第一格有物品则给予失败(只有玩家物品栏、背包都没有菜单时才会重新给予)

目录

1.19.2(Better_World)\plugins\ItemJoin\items.yml

移除 itemflags: 中的 inventory-modify 即可

itemflags: inventory-modify
items:
#使用命令获取时的名称
  Jion_Java:
    #物品名称,请大写
    id: CLOCK
    #游戏中的格子(左下角开始为0,从左往右一直到右上角)
    slot: 0
    #游戏中的名称
    name: '§6§l更美好的菜单§r' 
    lore:
      - '&7快捷菜单'
      - '&7方便你的生活 .'
      - '&a更美好的世界'
      - '&eJava&r/&e基岩版&r&6共用菜单'
    #join:加入
    #respawn:重生
    #world-change:世界变更
    #region-enter:启用enabled-regions:
    triggers: join, respawn, world-change
    #使用的权限可有可无,如果需要,格式必须为(itemjoin.xxxx)
    #启用的世界
    enabled-worlds: world, world_nether, world_the_end, sheng, ziyuan, shop, jianzhu, squareland_world
    itemflags: inventory-modify, self-drops, CreativeBypass, unbreakable
    interact:
    - 'console: cp caidan %player%'

修改后的itemflags:

itemflags: self-drops, CreativeBypass, unbreakable

最后更新于