caozheng2015
cc菜单打开其他的菜单怎么设置KEEP-OPEN—这个写在哪里

世予予
写在DATA-VALUE下面一行就可以了

caozheng2015
世予 发表于 2019-8-4 10:11
写在DATA-VALUE下面一行就可以了

DATA-VALUE我菜单上没写

caozheng2015
世予 发表于 2019-8-4 10:11
写在DATA-VALUE下面一行就可以了

menu-settings:

  # REQUIRED
  # Appears as the title of the menu.
  name: '&1游戏菜单'

  # REQUIRED
  # The number of rows in the menu.
  rows: 3

  # OPTIONAL (you can remove this or set it to '')
  # Bind multiple commands using ; (command: 'menu; m; me')

  # OPTIONAL
  # How frequently the menu will be refreshed, in seconds.
  # Useful if you have variables in items' descriptions.
  auto-refresh: 5
  # OPTIONAL
  # This command command will be executed when the menu is opened.
  # Supports all the icon command types.
  

  # OPTIONAL
  # The menu will open only when right-clicking with a compass.
  open-with-item:
    id: compass
    left-click: false
    right-click: true

######################
#+                  +#
#       ITEMS        #
#+                  +#
######################

1:
  ID: 395
  POSITION-X: 1
  POSITION-Y: 1
  NAME: '&c*&2地图'
  LORE:
    - '&7点击选择传送列表'
  COMMAND: 'op:chestcommands open shijie'

世予予
caozheng2015 发表于 2019-8-4 10:13
DATA-VALUE我菜单上没写

那你菜单配置截图一下让我康康

mcvimik
TreeDiagramF4:
  NAME: ' '
  ID: 160
  DATA-VALUE: 15
  KEEP-OPEN: true
  POSITION-X: 4
  POSITION-Y: 6

只要再position xy上方任意位置均可
我上面的例子你参照一下

解决请给最佳嗷。谢谢

mcvimik
caozheng2015 发表于 2019-8-4 10:14
menu-settings:

  # REQUIRED

1:
  ID: 395
  KEEP-OPEN: true
  POSITION-X: 1
  POSITION-Y: 1
  NAME: '&c*&2地图'
  LORE:
    - '&7点击选择传送列表'
  COMMAND: 'op:chestcommands open shijie'

世予予
  1. menu-settings:
  2.   name: '&1游戏菜单'
  3.   rows: 3
  4.   command: 'compass'
  5.   open-with-item:


  6. TreeDiagramA1:
  7.   NAME: '&c*&2地图'
  8.   LORE:
  9.     - '&7点击选择传送列表'
  10.   ID: 395
  11.   KEEP-OPEN: true
  12.   COMMAND: 'op:chestcommands open shijie'
  13.   POSITION-X: 1
  14.   POSITION-Y: 1
复制代码

好了 复制替换一下就可以了

Zapic
我服了你们…
一个都不知道有open: 函数么…
不需要op: cc open,不需要keep-open.
只需要这样:
  1. COMMAND: 'open: menu.yml'
复制代码

就这么简单.

第一页 上一页 下一页 最后一页