Title: - ' &b&l« &6&l家列表 &b&l» ' Title-Update: 10 Options: Default-Arguments: [0] Shape: - - '#########' - '#1234567#' - '#89`10``11``12``13``14`#' - '#`15``16``17``18``19``20``21`#' - '#`22``23``24``25``26``27``28`#' - 'P###A###N' Bindings: Commands: - 'homes' Buttons: '#': update: 10 display: mats: - MAGENTA_STAINED_GLASS_PANE - PURPLE_STAINED_GLASS_PANE - MAGENTA_STAINED_GLASS_PANE - PINK_STAINED_GLASS_PANE name: '&f&l▫ &a家列表' lore: - '&8&l&m ' - '&7点击回到主菜单' - '&8&l&m ' actions: all: - 'sound: ENTITY_EXPERIENCE_ORB_PICKUP' 'N': display: mats: - MAGENTA_STAINED_GLASS_PANE - PURPLE_STAINED_GLASS_PANE - MAGENTA_STAINED_GLASS_PANE - PINK_STAINED_GLASS_PANE name: '' icons: - condition: '${homes.hasNext}' display: material: cyan stained glass pane name: '&3下一页' actions: all: 'open: home ${js: {0}+1}' 'P': display: mats: - MAGENTA_STAINED_GLASS_PANE - PURPLE_STAINED_GLASS_PANE - MAGENTA_STAINED_GLASS_PANE - PINK_STAINED_GLASS_PANE name: '' icons: - condition: '${homes.hasPre}' display: material: lime stained glass pane name: '&a上一页' actions: all: 'open: home ${js: {0}-1}' 'A': update: 1 display: material: name tag name: '&f&l▫ &a设置家[&a&l1&a]' lore: - '&8&l&m ' - '&7将当前位置设置为家[&l1&7]' - '&7当前位置:' - '&fX: &a&l%player_x% &fY: &a&l%player_y% &fZ: &a&l%player_z%' - '&8&l&m ' - '&a▶ 点击左键立即设置' - '&8&l&m ' actions: left: - |- js: function set(){ var home = ${homes.list} var current = utils.getDataSection(player).getStringList("Home.list") current.add(home) utils.setData(player, "Home.list", current) var homex = %player_x% var currentx = utils.getDataSection(player).getStringList("Home.listx") currentx.add(homex) utils.setData(player, "Home.listx", currentx) var homey = %player_y% var currenty = utils.getDataSection(player).getStringList("Home.listy") currenty.add(homey) utils.setData(player, "Home.listy", currenty) var homez = %player_z% var currentz = utils.getDataSection(player).getStringList("Home.listz") currentz.add(homez) utils.setData(player, "Home.listz", currentz) var homew = %player_world% var currentw = utils.getDataSection(player).getStringList("Home.listw") currentw.add(homew) utils.setData(player, "Home.listw", currentw) } set() - 'op: sethome home-${homes.list}' - 'menu: home' '1': update: 1 display: mats: name: '&f&l▫ &a管理家[&a&l1&a]' lore: - '&8&l&m ' - '&a▶ 点击左键' - '&7回到家[&l1&7]' - '&8&l&m ' - '&a▶ Q键' - '&7删除家[&l1&7]' - '&8&l&m ' - '&7家方位: &a${homes.pow_1} ${homes.pox_1} ${homes.poy_1} ${homes.poz_1} ' - '&8&l&m ' actions: left: - 'op: home home_%math_1+${homes.list_1}[precision:0]%' drop: - 'tell: &7删除家 &7[&3&l%math_1+${homes.remove_1}[precision:0]%&7] &7.' - 'tell: &7删除坐标 ${homes.removew_1} ${homes.removex_1} ${homes.removey_1} ${homes.removez_1}&7.' - 'refresh' icons: - condition: '${homes.list_1}.length == 0' display: material: AIR '2': update: 1 display: mats: name: '&f&l▫ &a管理家[&a&l2&a]' lore: - '&8&l&m ' - '&a▶ 点击左键' - '&7回到家[&l2&7]' - '&8&l&m ' - '&a▶ Q键' - '&7删除家[&l2&7]' - '&8&l&m ' - '&7家方位: &a${homes.pow_2} ${homes.pox_2} ${homes.poy_2} ${homes.poz_2} ' - '&8&l&m ' actions: left: - 'op: home home_%math_1+${homes.list_2}[precision:0]%' drop: - 'tell: &7删除家 &7[&3&l%math_1+${homes.remove_2}[precision:0]%&7] &7.' - 'tell: &7删除坐标 ${homes.removew_2} ${homes.removex_2} ${homes.removey_2} ${homes.removez_2}&7.' - 'refresh' icons: - condition: '${homes.list_2}.length == 0' display: material: AIR '3': update: 1 display: mats: name: '&f&l▫ &a管理家[&a&l3&a]' lore: - '&8&l&m ' - '&a▶ 点击左键' - '&7回到家[&l3&7]' - '&8&l&m ' - '&a▶ Q键' - '&7删除家[&l3&7]' - '&8&l&m ' - '&7家方位: &a${homes.pow_3} ${homes.pox_3} ${homes.poy_3} ${homes.poz_3} ' - '&8&l&m ' actions: left: - 'op: home home_%math_1+${homes.list_3}[precision:0]%' drop: - 'tell: &7删除家 &7[&3&l%math_1+${homes.remove_3}[precision:0]%&7] &7.' - 'tell: &7删除坐标 ${homes.removew_3} ${homes.removex_3} ${homes.removey_3} ${homes.removez_3}&7' - 'refresh' icons: - condition: '${homes.list_3}.length == 0' display: material: AIR '4': update: 1 display: mats: name: '&f&l▫ &a管理家[&a&l4&a]' lore: - '&8&l&m ' - '&a▶ 点击左键' - '&7回到家[&l4&7]' - '&8&l&m ' - '&a▶ Q键' - '&7删除家[&l4&7]' - '&8&l&m ' - '&7家方位: &a${homes.pow_4} ${homes.pox_4} ${homes.poy_4} ${homes.poz_4} ' - '&8&l&m ' actions: left: - 'op: home home_%math_1+${homes.list_4}[precision:0]%' drop: - 'tell: &7删除家 &7[&3&l%math_1+${homes.remove_4}[precision:0]%&7] &7.' - 'tell: &7删除坐标 ${homes.removew_4} ${homes.removex_4} ${homes.removey_4} ${homes.removez_4}&7' - 'refresh' icons: - condition: '${homes.list_4}.length == 0' display: material: AIR '5': update: 1 display: mats: name: '&f&l▫ &a管理家[&a&l5&a]' lore: - '&8&l&m ' - '&a▶ 点击左键' - '&7回到家[&l5&7]' - '&8&l&m ' - '&a▶ Q键' - '&7删除家[&l5&7]' - '&8&l&m ' - '&7家方位: &a${homes.pow_5} ${homes.pox_5} ${homes.poy_5} ${homes.poz_5} ' - '&8&l&m ' actions: left: - 'op: home home_%math_1+${homes.list_5}[precision:0]%' drop: - 'tell: &7删除家 &7[&3&l%math_1+${homes.remove_5}[precision:0]%&7] &7.' - 'tell: &7删除坐标 ${homes.removew_5} ${homes.removex_5} ${homes.removey_5} ${homes.removez_5}&7' - 'refresh' icons: - condition: '${homes.list_5}.length == 0' display: material: AIR '6': update: 1 display: mats: name: '&f&l▫ &a管理家[&a&l6&a]' lore: - '&8&l&m ' - '&a▶ 点击左键' - '&7回到家[&l6&7]' - '&8&l&m ' - '&a▶ Q键' - '&7删除家[&l6&7]' - '&8&l&m ' - '&7家方位: &a${homes.pow_6} ${homes.pox_6} ${homes.poy_6} ${homes.poz_6} ' - '&8&l&m ' actions: left: - 'op: home home_%math_1+${homes.list_6}[precision:0]%' drop: - 'tell: &7删除家 &7[&3&l%math_1+${homes.remove_6}[precision:0]%&7] &7.' - 'tell: &7删除坐标 ${homes.removew_6} ${homes.removex_6} ${homes.removey_6} ${homes.removez_6}&7' - 'refresh' icons: - condition: '${homes.list_6}.length == 0' display: material: AIR '7': update: 1 display: mats: name: '&f&l▫ &a管理家[&a&l7&a]' lore: - '&8&l&m ' - '&a▶ 点击左键' - '&7回到家[&l7&7]' - '&8&l&m ' - '&a▶ Q键' - '&7删除家[&l7&7]' - '&8&l&m ' - '&7家方位: &a${homes.pow_7} ${homes.pox_7} ${homes.poy_7} ${homes.poz_7} ' - '&8&l&m ' actions: left: - 'op: home home_%math_1+${homes.list_7}[precision:0]%' drop: - 'tell: &7删除家 &7[&3&l%math_1+${homes.remove_7}[precision:0]%&7] &7.' - 'tell: &7删除坐标 ${homes.removew_7} ${homes.removex_7} ${homes.removey_7} ${homes.removez_7}&7' - 'refresh' icons: - condition: '${homes.list_7}.length == 0' display: material: AIR '8': update: 1 display: mats: name: '&f&l▫ &a管理家[&a&l8&a]' lore: - '&8&l&m ' - '&a▶ 点击左键' - '&7回到家[&l8&7]' - '&8&l&m ' - '&a▶ Q键' - '&7删除家[&l8&7]' - '&8&l&m ' - '&7家方位: &a${homes.pow_8} ${homes.pox_8} ${homes.poy_8} ${homes.poz_8} ' - '&8&l&m ' actions: left: - 'op: home home_%math_1+${homes.list_8}[precision:0]%' drop: - 'tell: &7删除家 &7[&3&l%math_1+${homes.remove_8}[precision:0]%&7] &7.' - 'tell: &7删除坐标 ${homes.removew_8} ${homes.removex_8} ${homes.removey_8} ${homes.removez_8}&7' - 'refresh' icons: - condition: '${homes.list_8}.length == 0' display: material: AIR '9': update: 1 display: mats: name: '&f&l▫ &a管理家[&a&l9&a]' lore: - '&8&l&m ' - '&a▶ 点击左键' - '&7回到家[&l9&7]' - '&8&l&m ' - '&a▶ Q键' - '&7删除家[&l9&7]' - '&8&l&m ' - '&7家方位: &a${homes.pow_9} ${homes.pox_9} ${homes.poy_9} ${homes.poz_9} ' - '&8&l&m ' actions: left: - 'op: home home_%math_1+${homes.list_9}[precision:0]%' drop: - 'tell: &7删除家 &7[&3&l%math_1+${homes.remove_9}[precision:0]%&7] &7.' - 'tell: &7删除坐标 ${homes.removew_9} ${homes.removex_9} ${homes.removey_9} ${homes.removez_9}&7' - 'refresh' icons: - condition: '${homes.list_9}.length == 0' display: material: AIR '10': update: 1 display: mats: name: '&f&l▫ &a管理家[&a&l10&a]' lore: - '&8&l&m ' - '&a▶ 点击左键' - '&7回到家[&l10&7]' - '&8&l&m ' - '&a▶ Q键' - '&7删除家[&l10&7]' - '&8&l&m ' - '&7家方位: &a${homes.pow_10} ${homes.pox_10} ${homes.poy_10} ${homes.poz_10} ' - '&8&l&m ' actions: left: - 'op: home home_%math_1+${homes.list_10}[precision:0]%' drop: - 'tell: &7删除家 &7[&3&l%math_1+${homes.remove_10}[precision:0]%&7] &7.' - 'tell: &7删除坐标 ${homes.removew_10} ${homes.removex_10} ${homes.removey_10} ${homes.removez_10}&7' - 'refresh' icons: - condition: '${homes.list_10}.length == 0' display: material: AIR '11': update: 1 display: mats: name: '&f&l▫ &a管理家[&a&l11&a]' lore: - '&8&l&m ' - '&a▶ 点击左键' - '&7回到家[&l11&7]' - '&8&l&m ' - '&a▶ Q键' - '&7删除家[&l11&7]' - '&8&l&m ' - '&7家方位: &a${homes.pow_11} ${homes.pox_11} ${homes.poy_11} ${homes.poz_11} ' - '&8&l&m ' actions: left: - 'op: home home_%math_1+${homes.list_11}[precision:0]%' drop: - 'tell: &7删除家 &7[&3&l%math_1+${homes.remove_11}[precision:0]%&7] &7.' - 'tell: &7删除坐标 ${homes.removew_11} ${homes.removex_11} ${homes.removey_11} ${homes.removez_2}&7' - 'refresh' icons: - condition: '${homes.list_11}.length == 0' display: material: AIR '12': update: 1 display: mats: name: '&f&l▫ &a管理家[&a&l12&a]' lore: - '&8&l&m ' - '&a▶ 点击左键' - '&7回到家[&l12&7]' - '&8&l&m ' - '&a▶ Q键' - '&7删除家[&l12&7]' - '&8&l&m ' - '&7家方位: &a${homes.pow_12} ${homes.pox_12} ${homes.poy_12} ${homes.poz_12} ' - '&8&l&m ' actions: left: - 'op: home home_%math_1+${homes.list_12}[precision:0]%' drop: - 'tell: &7删除家 &7[&3&l%math_1+${homes.remove_12}[precision:0]%&7] &7.' - 'tell: &7删除坐标 ${homes.removew_12} ${homes.removex_12} ${homes.removey_12} ${homes.removez_12}&7' - 'refresh' icons: - condition: '${homes.list_12}.length == 0' display: material: AIR '13': update: 1 display: mats: name: '&f&l▫ &a管理家[&a&l13&a]' lore: - '&8&l&m ' - '&a▶ 点击左键' - '&7回到家[&l13&7]' - '&8&l&m ' - '&a▶ Q键' - '&7删除家[&l13&7]' - '&8&l&m ' - '&7家方位: &a${homes.pow_13} ${homes.pox_13} ${homes.poy_13} ${homes.poz_13} ' - '&8&l&m ' actions: left: - 'op: home home_%math_1+${homes.list_13}[precision:0]%' drop: - 'tell: &7删除家 &7[&3&l%math_1+${homes.remove_13}[precision:0]%&7] &7.' - 'tell: &7删除坐标 ${homes.removew_13} ${homes.removex_13} ${homes.removey_13} ${homes.removez_13}&7' - 'refresh' icons: - condition: '${homes.list_13}.length == 0' display: material: AIR '14': update: 1 display: mats: name: '&f&l▫ &a管理家[&a&l14&a]' lore: - '&8&l&m ' - '&a▶ 点击左键' - '&7回到家[&l14&7]' - '&8&l&m ' - '&a▶ Q键' - '&7删除家[&l14&7]' - '&8&l&m ' - '&7家方位: &a${homes.pow_14} ${homes.pox_14} ${homes.poy_14} ${homes.poz_14} ' - '&8&l&m ' actions: left: - 'op: home home_%math_1+${homes.list_14}[precision:0]%' drop: - 'tell: &7删除家 &7[&3&l%math_1+${homes.remove_14}[precision:0]%&7] &7.' - 'tell: &7删除坐标 ${homes.removew_14} ${homes.removex_14} ${homes.removey_14} ${homes.removez_14}&7' - 'refresh' icons: - condition: '${homes.list_14}.length == 0' display: material: AIR '15': update: 1 display: mats: name: '&f&l▫ &a管理家[&a&l15&a]' lore: - '&8&l&m ' - '&a▶ 点击左键' - '&7回到家[&l15&7]' - '&8&l&m ' - '&a▶ Q键' - '&7删除家[&l15&7]' - '&8&l&m ' - '&7家方位: &a${homes.pow_15} ${homes.pox_15} ${homes.poy_15} ${homes.poz_15} ' - '&8&l&m ' actions: left: - 'op: home home_%math_1+${homes.list_15}[precision:0]%' drop: - 'tell: &7删除家 &7[&3&l%math_1+${homes.remove_15}[precision:0]%&7] &7.' - 'tell: &7删除坐标 ${homes.removew_15} ${homes.removex_15} ${homes.removey_15} ${homes.removez_15}&7' - 'refresh' icons: - condition: '${homes.list_15}.length == 0' display: material: AIR '16': update: 1 display: mats: name: '&f&l▫ &a管理家[&a&l16&a]' lore: - '&8&l&m ' - '&a▶ 点击左键' - '&7回到家[&l16&7]' - '&8&l&m ' - '&a▶ Q键' - '&7删除家[&l16&7]' - '&8&l&m ' - '&7家方位: &a${homes.pow_16} ${homes.pox_16} ${homes.poy_16} ${homes.poz_16} ' - '&8&l&m ' actions: left: - 'op: home home_%math_1+${homes.list_16}[precision:0]%' drop: - 'tell: &7删除家 &7[&3&l%math_1+${homes.remove_16}[precision:0]%&7] &7.' - 'tell: &7删除坐标 ${homes.removew_16} ${homes.removex_16} ${homes.removey_16} ${homes.removez_16}&7' - 'refresh' icons: - condition: '${homes.list_16}.length == 0' display: material: AIR '17': update: 1 display: mats: name: '&f&l▫ &a管理家[&a&l17&a]' lore: - '&8&l&m ' - '&a▶ 点击左键' - '&7回到家[&l17&7]' - '&8&l&m ' - '&a▶ Q键' - '&7删除家[&l17&7]' - '&8&l&m ' - '&7家方位: &a${homes.pow_17} ${homes.pox_17} ${homes.poy_17} ${homes.poz_17} ' - '&8&l&m ' actions: left: - 'op: home home_%math_1+${homes.list_17}[precision:0]%' drop: - 'tell: &7删除家 &7[&3&l%math_1+${homes.remove_17}[precision:0]%&7] &7.' - 'tell: &7删除坐标 ${homes.removew_17} ${homes.removex_17} ${homes.removey_17} ${homes.removez_17}&7' - 'refresh' icons: - condition: '${homes.list_17}.length == 0' display: material: AIR '18': update: 1 display: mats: name: '&f&l▫ &a管理家[&a&l18&a]' lore: - '&8&l&m ' - '&a▶ 点击左键' - '&7回到家[&l18&7]' - '&8&l&m ' - '&a▶ Q键' - '&7删除家[&l18&7]' - '&8&l&m ' - '&7家方位: &a${homes.pow_18} ${homes.pox_18} ${homes.poy_18} ${homes.poz_18} ' - '&8&l&m ' actions: left: - 'op: home home_%math_1+${homes.list_18}[precision:0]%' drop: - 'tell: &7删除家 &7[&3&l%math_1+${homes.remove_18}[precision:0]%&7] &7.' - 'tell: &7删除坐标 ${homes.removew_18} ${homes.removex_18} ${homes.removey_18} ${homes.removez_18}&7' - 'refresh' icons: - condition: '${homes.list_18}.length == 0' display: material: AIR '19': update: 1 display: mats: name: '&f&l▫ &a管理家[&a&l19&a]' lore: - '&8&l&m ' - '&a▶ 点击左键' - '&7回到家[&l19&7]' - '&8&l&m ' - '&a▶ Q键' - '&7删除家[&l19&7]' - '&8&l&m ' - '&7家方位: &a${homes.pow_19} ${homes.pox_19} ${homes.poy_19} ${homes.poz_19} ' - '&8&l&m ' actions: left: - 'op: home home_%math_1+${homes.list_19}[precision:0]%' drop: - 'tell: &7删除家 &7[&3&l%math_1+${homes.remove_19}[precision:0]%&7] &7.' - 'tell: &7删除坐标 ${homes.removew_19} ${homes.removex_19} ${homes.removey_19} ${homes.removez_19}&7' - 'refresh' icons: - condition: '${homes.list_19}.length == 0' display: material: AIR '20': update: 1 display: mats: name: '&f&l▫ &a管理家[&a&l20&a]' lore: - '&8&l&m ' - '&a▶ 点击左键' - '&7回到家[&l20&7]' - '&8&l&m ' - '&a▶ Q键' - '&7删除家[&l20&7]' - '&8&l&m ' - '&7家方位: &a${homes.pow_20} ${homes.pox_20} ${homes.poy_20} ${homes.poz_20} ' - '&8&l&m ' actions: left: - 'op: home home_%math_1+${homes.list_20}[precision:0]%' drop: - 'tell: &7删除家 &7[&3&l%math_1+${homes.remove_20}[precision:0]%&7] &7.' - 'tell: &7删除坐标 ${homes.removew_20} ${homes.removex_20} ${homes.removey_20} ${homes.removez_20}&7' - 'refresh' icons: - condition: '${homes.list_20}.length == 0' display: material: AIR '21': update: 1 display: mats: name: '&f&l▫ &a管理家[&a&l21&a]' lore: - '&8&l&m ' - '&a▶ 点击左键' - '&7回到家[&l21&7]' - '&8&l&m ' - '&a▶ Q键' - '&7删除家[&l21&7]' - '&8&l&m ' - '&7家方位: &a${homes.pow_21} ${homes.pox_21} ${homes.poy_21} ${homes.poz_21} ' - '&8&l&m ' actions: left: - 'op: home home_%math_1+${homes.list_21}[precision:0]%' drop: - 'tell: &7删除家 &7[&3&l%math_1+${homes.remove_21}[precision:0]%&7] &7.' - 'tell: &7删除坐标 ${homes.removew_21} ${homes.removex_21} ${homes.removey_21} ${homes.removez_21}&7' - 'refresh' icons: - condition: '${homes.list_21}.length == 0' display: material: AIR '22': update: 1 display: mats: name: '&f&l▫ &a管理家[&a&l22&a]' lore: - '&8&l&m ' - '&a▶ 点击左键' - '&7回到家[&l22&7]' - '&8&l&m ' - '&a▶ Q键' - '&7删除家[&l22&7]' - '&8&l&m ' - '&7家方位: &a${homes.pow_22} ${homes.pox_22} ${homes.poy_22} ${homes.poz_22} ' - '&8&l&m ' actions: left: - 'op: home home_%math_1+${homes.list_22}[precision:0]%' drop: - 'tell: &7删除家 &7[&3&l%math_1+${homes.remove_22}[precision:0]%&7] &7.' - 'tell: &7删除坐标 ${homes.removew_22} ${homes.removex_22} ${homes.removey_22} ${homes.removez_22}&7' - 'refresh' icons: - condition: '${homes.list_22}.length == 0' display: material: AIR '23': update: 1 display: mats: name: '&f&l▫ &a管理家[&a&l23&a]' lore: - '&8&l&m ' - '&a▶ 点击左键' - '&7回到家[&l23&7]' - '&8&l&m ' - '&a▶ Q键' - '&7删除家[&l23&7]' - '&8&l&m ' - '&7家方位: &a${homes.pow_1} ${homes.pox_1} ${homes.poy_1} ${homes.poz_1} ' - '&8&l&m ' actions: left: - 'op: home home_%math_1+${homes.list_23}[precision:0]%' drop: - 'tell: &7删除家 &7[&3&l%math_1+${homes.remove_23}[precision:0]%&7] &7.' - 'tell: &7删除坐标 ${homes.removew_23} ${homes.removex_23} ${homes.removey_23} ${homes.removez_23}&7' - 'refresh' icons: - condition: '${homes.list_23}.length == 0' display: material: AIR '24': update: 1 display: mats: name: '&f&l▫ &a管理家[&a&l24&a]' lore: - '&8&l&m ' - '&a▶ 点击左键' - '&7回到家[&l24&7]' - '&8&l&m ' - '&a▶ Q键' - '&7删除家[&l24&7]' - '&8&l&m ' - '&7家方位: &a${homes.pow_24} ${homes.pox_24} ${homes.poy_24} ${homes.poz_24} ' - '&8&l&m ' actions: left: - 'op: home home_%math_1+${homes.list_24}[precision:0]%' drop: - 'tell: &7删除家 &7[&3&l%math_1+${homes.remove_24}[precision:0]%&7] &7.' - 'tell: &7删除坐标 ${homes.removew_24} ${homes.removex_24} ${homes.removey_24} ${homes.removez_24}&7' - 'refresh' icons: - condition: '${homes.list_24}.length == 0' display: material: AIR '25': update: 1 display: mats: name: '&f&l▫ &a管理家[&a&l25&a]' lore: - '&8&l&m ' - '&a▶ 点击左键' - '&7回到家[&l25&7]' - '&8&l&m ' - '&a▶ Q键' - '&7删除家[&l25&7]' - '&8&l&m ' - '&7家方位: &a${homes.pow_25} ${homes.pox_25} ${homes.poy_25} ${homes.poz_25} ' - '&8&l&m ' actions: left: - 'op: home home_%math_1+${homes.list_25}[precision:0]%' drop: - 'tell: &7删除家 &7[&3&l%math_1+${homes.remove_25}[precision:0]%&7] &7.' - 'tell: &7删除坐标 ${homes.removew_5} ${homes.removex_25} ${homes.removey_25} ${homes.removez_25}&7' - 'refresh' icons: - condition: '${homes.list_25}.length == 0' display: material: AIR '26': update: 1 display: mats: name: '&f&l▫ &a管理家[&a&l26&a]' lore: - '&8&l&m ' - '&a▶ 点击左键' - '&7回到家[&l26&7]' - '&8&l&m ' - '&a▶ Q键' - '&7删除家[&l26&7]' - '&8&l&m ' - '&7家方位: &a${homes.pow_26} ${homes.pox_26} ${homes.poy_1} ${homes.poz_26} ' - '&8&l&m ' actions: left: - 'op: home home_%math_1+${homes.list_26}[precision:0]%' drop: - 'tell: &7删除家 &7[&3&l%math_1+${homes.remove_26}[precision:0]%&7] &7.' - 'tell: &7删除坐标 ${homes.removew_26} ${homes.removex_26} ${homes.removey_26} ${homes.removez_26}&7' - 'refresh' icons: - condition: '${homes.list_26}.length == 0' display: material: AIR '27': update: 1 display: mats: name: '&f&l▫ &a管理家[&a&l27&a]' lore: - '&8&l&m ' - '&a▶ 点击左键' - '&7回到家[&l27&7]' - '&8&l&m ' - '&a▶ Q键' - '&7删除家[&l27&7]' - '&8&l&m ' - '&7家方位: &a${homes.pow_27} ${homes.pox_27} ${homes.poy_27} ${homes.poz_27} ' - '&8&l&m ' actions: left: - 'op: home home_%math_1+${homes.list_27}[precision:0]%' drop: - 'tell: &7删除家 &7[&3&l%math_1+${homes.remove_27}[precision:0]%&7] &7.' - 'tell: &7删除坐标 ${homes.removew_27} ${homes.removex_27} ${homes.removey_27} ${homes.removez_27}&7' - 'refresh' icons: - condition: '${homes.list_27}.length == 0' display: material: AIR '28': update: 1 display: mats: name: '&f&l▫ &a管理家[&a&l28&a]' lore: - '&8&l&m ' - '&a▶ 点击左键' - '&7回到家[&l28&7]' - '&8&l&m ' - '&a▶ Q键' - '&7删除家[&l28&7]' - '&8&l&m ' - '&7家方位: &a${homes.pow_28} ${homes.pox_28} ${homes.poy_28} ${homes.poz_28} ' - '&8&l&m ' actions: left: - 'op: home home_%math_1+${homes.list_28}[precision:0]%' drop: - 'tell: &7删除家 &7[&3&l%math_1+${homes.remove_28}[precision:0]%&7] &7.' - 'tell: &7删除坐标 ${homes.removew_28} ${homes.removex_28 ${homes.removey_28} ${homes.removez_28}&7' - 'refresh' icons: - condition: '${homes.list_28}.length == 0' display: material: AIR Functions: homes: remove: |- function run(){ var homes = utils.getDataSection(player).getStringList("Home.list") var index = {0} var home = homes.subList(28 * %trmenu_args_0%, homes.size())[index-1] homes.remove(home) utils.setData(player, "Home.list", homes) return home } run() removex: |- function runx(){ var homex = utils.getDataSection(player).getStringList("Home.listx") var indexx = {0} var xhome = homex.subList(28 * %trmenu_args_0%, homex.size())[indexx-1] homex.remove(xhome) utils.setData(player, "Home.listx", homex) return xhome } runx() removey: |- function runy(){ var homey = utils.getDataSection(player).getStringList("Home.listy") var indexy = {0} var yhome = homey.subList(28 * %trmenu_args_0%, homey.size())[indexy-1] homey.remove(yhome) utils.setData(player, "Home.listy", homey) return yhome } runy() removez: |- function runz(){ var homez = utils.getDataSection(player).getStringList("Home.listz") var indexz = {0} var zhome = homez.subList(28 * %trmenu_args_0%, homez.size())[indexz-1] homez.remove(zhome) utils.setData(player, "Home.listz", homez) return zhome } runz() removew: |- function runw(){ var homew = utils.getDataSection(player).getStringList("Home.listw") var indexw = {0} var whome = homew.subList(28 * %trmenu_args_0%, homew.size())[indexw-1] homew.remove(whome) utils.setData(player, "Home.listw", homew) return whome } runw() list: |- function list(){ var homes = utils.sort(utils.getDataSection(player).getStringList("Home.list")) var type = {0} homes = homes.subList(28 * %trmenu_args_0%, homes.size()) if (type == 0){ return homes.size() } else { if (type <= homes.size()){ return homes[type - 1] } return '' } } list() pox: |- function listx(){ var homex = utils.sort(utils.getDataSection(player).getStringList("Home.listx")) var typex = {0} homex = homex.subList(28 * %trmenu_args_0%, homex.size()) if (typex == 0){ return homex.size() } else { if (typex <= homex.size()){ return homex[typex - 1] } return '' } } listx() poy: |- function listy(){ var homey = utils.sort(utils.getDataSection(player).getStringList("Home.listy")) var typey = {0} homey = homey.subList(28 * %trmenu_args_0%, homey.size()) if (typey == 0){ return homey.size() } else { if (typey <= homey.size()){ return homey[typey - 1] } return '' } } listy() poz: |- function listz(){ var homez = utils.sort(utils.getDataSection(player).getStringList("Home.listz")) var typez = {0} homez = homez.subList(28 * %trmenu_args_0%, homez.size()) if (typez == 0){ return homez.size() } else { if (typez <= homez.size()){ return homez[typez - 1] } return '' } } listz() pow: |- function listw(){ var homew = utils.sort(utils.getDataSection(player).getStringList("Home.listw")) var typew = {0} homew = homew.subList(28 * %trmenu_args_0%, homew.size()) if (typew == 0){ return homew.size() } else { if (typew <= homew.size()){ return homew[typew - 1] } return '' } } listw() hasNext: ${homes.list_0} > 28 hasPre: '{0} > 0'