RPG Class Selection (RPG Series Tweaks)

模组

· 作者 TheRedBrain

添加了源自众多角色扮演游戏的职业选择界面。

0 本站下载 0 关注 更新于 3 个月前

需要前置:Fabric API、RPG Inventory、Fzzy Config、Spell Engine

最新 1.4.0 · 1.21.1 · Fabric

一键开服(送7天)

RPG 职业选择 (RPG Series Tweaks)

此模组添加了源自众多 RPG 游戏的职业选择界面。

职业由“升级项”组成,这些升级项可以是法术(由 Spell Engine 驱动)、实体属性修改器,或两者的组合。

内置职业

该模组附带了内置的数据包/资源包,其中添加了基于 Daedelus 的 RPG Series 模组和 Fichte 的 More RPG Series 模组的职业。

您可以随意参考这些数据包,或将其作为基础来打造更个性化的体验。

如何访问该界面?

有 4 种方式可以打开职业选择界面:

  • 热键(默认为“K”)。可在服务器配置中禁用。
  • 玩家首次加入世界时自动打开该界面。可在服务器配置中禁用。
  • 与“RPG 职业选择方块”交互。该方块在生存模式中不可用,专为地图制作者和服务器管理员设计。
  • 其他模组可以通过提供的 API 方法实现自定义方法来打开此界面。

每种方法都可以使用配置选项、方块实体数据或方法参数来自定义所打开的界面。

自定义选项包括:

  • 打开界面时显示的职业
  • 是否将职业列表限制为初始职业和玩家当前职业
  • 玩家是否可以更改职业
  • 玩家是否可以更改当前职业的升级项

额外自定义

该模组提供了多种职业选择界面的布局。可在服务器配置中更改所使用的布局。

工作原理

当玩家选择一个职业时,该职业定义的物品会被放置到特定的装备槽位中。选定的升级项会存储在该物品上。

目前使用的装备槽位由 RPG Inventory 提供。
正在探索与 Trinkets 的替代兼容性,并可能在未来添加。

职业和职业升级项可以通过进度解锁。

职业通过数据包定义。

示例职业:

{
  "class_identifier": "rpgclassselection:fire_wizard",
  "unlock_advancement_identifier": "minecraft:story/smelt_iron",
  "visible_when_locked": true,
  "description": "class_selection_screen.rpgclassselection.fire_wizard.description",
  "locked_description": "class_selection_screen.rpgclassselection.fire_wizard.locked_description",
  "upgrade_entry_group_list": [
    {
      "upgrade_entry_list": [
        {
          "upgrade_identifier": "rpgclassselection:fire_spell_1",
          "unlock_advancement_identifier": "minecraft:story/mine_diamond",
          "visible_when_locked": true,
          "title": "spell.wizards.fire_blast.name",
          "icon_path": "wizards:textures/spell/fire_blast.png",
          "component_list": [
            {
              "type": "spell",
              "spell_identifier": "wizards:fire_blast",
              "attribute_identifier": "",
              "attribute_modifier_amount": 0.0,
              "attribute_modifier_operation": ""
            },
            {
              "type": "attribute_modifier",
              "spell_identifier": "",
              "attribute_identifier": "minecraft:generic.attack_damage",
              "attribute_modifier_amount": 3.0,
              "attribute_modifier_operation": "ADD_VALUE"
            }
          ]
        }
      ]
    },
    {},
    {
      "upgrade_entry_list": [
        {
          "upgrade_identifier": "rpgclassselection:fire_spell_2",
          "title": "spell.wizards.fire_breath.name",
          "icon_path": "wizards:textures/spell/fire_breath.png",
          "component_list": [
            {
              "type": "spell",
              "spell_identifier": "wizards:fire_breath"
            }
          ]
        }
      ]
    }
  ]
}

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源