Skip to content
On this page

猹の地图

⚙️ 配置文件

yml
############################
#         插件验证          #
############################
apiKey: "apiKey"
############################
#         系统设置          #
############################
map:
  主世界:
    # 地图对应世界
    world: "world"
    # 匹配方式 equal|contain|start|end(精确匹配|模糊匹配|以开头|以结为)
    match: "equal"
    # 地图位置及大小,例: 0,0 ~ 500,500
    # 起点(x,z)
    start: [ 0, 0 ]
    # 长度
    length: 500
    # 地图分时图片文件
    image:
      # 每早晨-中午地图显示
      6000: "主世界早.png"
      # 每日中午-晚上地图显示
      12000: "主世界中.png"
      # 每晚-早晨地图显示
      18000: "主世界晚.png"
    # 开启前附加指令
    pre-cmd:
      - "op:say 开启地图操作界面"
    # 右键点击指令
    click-cmd:
      - "op:say 我标记了地图{x},{z}处"
    # npc位置
    npc:
      商店:
        # npc图标
        icon: "商店.png"
        # npc位置
        x: 100
        y: 70
        z: 100
        # 光柱显示及颜色(删除该项不显示光柱)
        beam: [ 1, 1, 1 ]
        # 鼠标指向npc时显示额外信息
        tip:
          - "这是杂货店"
          - "你可以在这里买到一些道具"
        # 点击操作
        click-cmd:
          - "op:say 我点击了商店"
# 地图右上角使用说明,删除该项隐藏使用说明
# 图标使用文件夹下map/helper.png图片
helper:
  - "地图使用介绍"
  - "右键地图可以进行标点"
  - "点击NPC可以执行相关操作"

🌐 语言文件

yml
map-null: "§c当前世界不能打开地图"

⚙️ 客户端配置文件

yml
# Configuration file

general {
    S:minimapBorder=border.png            # 小地图边框贴图
    I:minimapBorderLength=2               # 边框厚度
    D:minimapIconScale=0.5                # 图标缩放比例
    D:minimapScale=0.5                    # 小地图缩放比例
    I:minimapSize=100                     # 小地图尺寸
    S:pinIcon=location.png                # 地标图标贴图
    S:playerIcon=location.png             # 玩家图标贴图
}