
RPG职业选择(RPG系列调整)
添加了一个许多RPG中常见的职业选择界面。
查看大图RPG 职业选择(RPG 系列调整)
此模组添加了众多 RPG 游戏中常见的职业选择界面。
职业由“升级”组成,升级可以是法术(由 Spell Engine 提供支持)、实体属性修改器,或两者的组合。
内置职业
此模组附带内置的数据/资源包,基于 Daedelus 的 RPG 系列模组以及 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"
}
]
}
]
}
]
}
正在加载版本记录…

正在加载评论…
评论在新手盒子客户端中发表,这里同步展示。