初始属性物品

初始属性物品

为不同游玩风格提供初始属性和起始物品。

冒险

该项目提供了一个高度可自定义的初始职业选择,使整合包能够轻松地在开局为玩家提供不同的流派和初始物品。GUI 面板的背景图片和面板大小均可自定义,但需要依赖另一个模组。进入世界后,若未选择职业,玩家每隔几分钟就会收到私聊,如图所示。

私聊

点击职业选择后:

面板

选择职业后面板锁定,职业无法再切换,也无法打开面板(配置项默认)。

config\initialattributesitems\careers.json:

{
      "id": "warrior",
      "name": "战士",//标题|title
      "description": "重甲近战,靠近敌人并承伤。",//文字介绍|Text introduction
      "icon": "minecraft:iron_sword",
      "attributes": [
        {
          "id": "minecraft:generic.armor",//要给予的属性|attributes to be given
          "value": 1.0
        },
        {
          "id": "minecraft:generic.attack_damage",
          "value": 1.0
        }
      ],
      "items": [
        {
          "id": "minecraft:iron_sword",//要给予的物品|items to give
          "count": 1
        },
        {
          "id": "minecraft:bread",
          "count": 8
        }
      ]
    },

config\initialattributesitems\client_gui.json:

{
  "backgroundPath": "",//背景图片的绝对路径|absolute path of the background image
  "panelWidth": 260,
  "panelHeight": 200
}~~~~