
本模组需要安装 Project MMO。
适用于 1.21.1 的发布版本 + 适用于 1.20.1 的 2.0.0 发布版本。1.20.1 版本包含破坏性更改,并完全移除了职业系统。该功能将在接下来几天内由我发布的另一个新模组中重新加入。
关于
本模组为游戏添加了技能书,涵盖所有 Project MMO 默认技能,可用于给予玩家可变数量的经验值或等级。
它还允许你创建自定义物品,以向任意技能授予任意数量的等级或经验值,甚至可以将某项技能直接设置为特定等级。此外,它支持添加技能列表,使玩家在消耗该物品时能够从选项中选择一项来获取等级或经验值。
当你创建自定义物品时,需指定类型 [skillbook, insignia]、4种颜色之一(取决于类型)以及5个品质等级之一 [plain, iron, gold, emerald, diamond]。以下是黑色技能书和红色纹章的5个品质等级的示例:

创建自定义物品
使用的 DataComponent 是 SkillGrantData,它具有8个属性:name, skills, application_type, application_value, experience_cost, texture_type, rank, 和 color。
- name: 可翻译的字符串代码。改变物品名称,但需在语言文件中添加对应条目。留空则使用默认名称。
- skills: 技能列表。如果只包含1个技能,则立即赋予奖励;如果包含多个技能(最多4个),则允许玩家选择。
- application_type: 数值应用于技能的方式。允许的值:[level, xp, set]
- application_value: 要授予的等级数量或经验值数量。任何有效的整数均可。
- experience_cost: 使用该物品所需的 Minecraft 经验等级数量。设为0表示无消耗。
- texture_type: 纹理应显示为技能书还是纹章。允许的值:[skillbook, insignia]
- rank: 书籍附魔染色(trim)的颜色。允许的值:[plain, iron, gold, emerald, diamond]
- color: 物品的颜色。技能书可选颜色:[blue, green, black, purple]。纹章可选颜色:[white, red, teal, purple]。仅对于 plain 品质的纹章,还有以下额外颜色:[orange, light_purple, green, blue, light_blue, yellow, pink, black]
如果你想给玩家一本能增加其 good_looks 技能10级的自定义技能书,可以使用游戏内的 /give 命令,如下所示:
1.21.1 命令:
/give @p pmmo_skill_books:skill_grant[pmmo_skill_books:skill_grant_data={name:test.skill_grant.good_looks, skills:[good_looks], application_type:level, application_value:10, experience_cost:10, texture_type:skillbook, rank:gold, color:green}]
1.20.1 命令:
/give @p pmmo_skill_books:skill_grant{pmmo_skill_books:{skills:["good_looks"],color:"green",application_type:"level",application_value:10,experience_cost:10,name:"test.skill_grant.good_looks",rank:"gold",texture_type:"skillbook"}} 1
这将创建一本名为 test.skill_grant.good_looks 的绿色技能书,带有金色附魔染色,给予玩家 good_looks 技能10级。确保将 test.skill_grant.good_looks 添加到翻译语言文件中,否则它的名称将 literally 显示为该字符串。同时,你可能也想在此处为 pmmo.good_looks 设置一个技能名称。
这太简单了,我们来制作一个钻石徽章,给予玩家 10,000 点经验值,可用于魔法、钓鱼、伐木或采矿中的任意一项。
1.21.1 命令:
/give @p pmmo_skill_books:skill_grant[pmmo_skill_books:skill_grant_data={name:test.item,skills:[magic, fishing, woodcutting, mining], application_type:xp, application_value:10000, experience_cost:0, texture_type:insignia, rank:diamond, color:purple}]
1.20.1 命令:
/give @p pmmo_skill_books:skill_grant{pmmo_skill_books:{skills:["magic","fishing","woodcutting","mining"],color:"purple",application_type:"xp",application_value:10000,experience_cost:0,name:"test.item",rank:"diamond",texture_type:"insignia"}} 1
我还向语言文件中添加了以下内容:
生成的物品如下:

当我使用该物品时,会打开此界面:

我点击了“钓鱼”并确认获得 10,000 点钓鱼经验。真不错! 你可以使用任何创建或向游戏中添加物品的系统来添加你自己的自定义物品,例如通过数据包中的战利品表、自定义配方或成就奖励,或使用 KubeJS 等模组注册物品。
你还可以实现类似的功能,例如创建一本书将某项技能设定为特定等级,比如 1 级的全知(Omniscience)。然后在 PMMO 中为该技能制作一些强大的效果,并将这本书设为稀有掉落物。
未来升级计划:
- 添加基本的战利品表选项,以便为那些不想自定义内容的玩家以简单的方式将这些物品引入游戏。
- 添加新的书籍颜色 / 装饰。
免责声明:这些技能书默认情况下不会在游戏中掉落,也无法合成。整合包制作者或服务器管理员可以将它们作为奖励发放给玩家,无论是通过服务器商店还是用于活动。他们也可以将它们添加到战利品表中,让玩家有所期待或与其他玩家交易,或者为其创建合成配方。
旧版 1.20.1 专属功能 - 已移至新模组
职业系统 这将在 1.21.1 中成为一个功能更完善、独立的模组,即 Project MMO: Classes。
本模组还为 Project MMO 添加了一个基础的职业系统。它将所有 DND 5e 职业(以及一些子职业和自定义子职业)添加为技能,并新增了一种第三类技能书,可将它们的等级设置为 1、2、3 或 4。默认情况下,你同时只能拥有 2 个职业,且所有子职业都要求你先拥有对应的主职业才能选择。此外,每个主职业最多只能拥有 1 个子职业。使用每一级职业书所需的经验等级比上一级多 5 级,起始等级为 20。同样,这些物品在游戏中不可掉落或合成,仅供你在此基础上构建内容,例如为这些职业和子职业创建自定义增益,并按需将它们加入战利品表。
随着我的整合包开发进展,我正在不断添加新的子职业。如果你希望我为你添加某些自定义技能或职业 / 子职业,请告诉我,我会将其加入其中。
由于你只能拥有 2 个主职业,且每个主职业只能有 1 个子职业,如果你想尝试其他组合,就需要一种移除它们的方法。请使用以下命令:
/pmmo_skill_books forget <class or subclass>
以遗忘某个职业或子职业。如果你遗忘了一个主职业,它也会删除该职业对应的所有子职业。
创意灵感
增益效果
如果你想使用本模组的职业系统,以下是一些我为激发灵感所做的工作。我结合了 PMMO 现有的增益系统以及 Apothic Attributes 添加的属性,创造出有趣的职业加成:
- 战士每升一级都会提供可观的生命值,并增加一定的伤害减免和护甲值。
- 法师职业会提供大量的法力值和法力回复速度,适用于 Ars Nouveau 或 Iron's Spells and Spell Books。
- 盗贼在蹲下时会获得隐身效果以及加速效果,从而能更快地潜行。刺客子职业则提供更高的暴击率和暴击伤害。
- 术士的子职业死神允许使用来自其他模组的强力镰刀,并提供生命偷取百分比。
- 圣骑士的子职业女武神可以像装备鞘翅一样飞行。
- 武僧职业在静止站立 30 秒后会获得生命恢复效果,并且受到的跌落伤害显著降低。
物品限制
为游戏中一些强大的物品添加职业限制(例如游侠子职业的追踪者、Scannable 模组物品或术士的传送法杖),可以让每个职业拥有独特的身份标识。这些只是利用 Project MMO 现有的数据包和通过 perks TOML 配置 perk 的需求系统所能实现的一些创意想法。
提示
使用 CraftTweaker 配置 perk 也能在这里开启许多有趣的玩法,例如:当生命值低于半心时,2 级战士每 10 分钟可获得 30 秒的生命恢复效果。在这些 perk 中使用 min_level 和 max_level 可以精确控制不同等级带来的差异。
指令书 - 已在 1.21.1 中移除
还有一些自定义书籍可以在玩家使用时执行命令。目前这些仅是用于解锁 Parcool 中限制的技能书,例如跑酷中的蹬墙跑。除非你的整合包中包含 Parcool 并启用了其限制功能,且随后为该玩家禁用了该限制,否则这些书籍对你无效。我是通过一个玩家加入服务器时触发的成就来实现的,该成就会运行一个 mcfunction。当玩家使用这本书时,如果对应的技能处于禁用状态,则会启用它。

This mod requires Project MMO.
1.21.1 Release + 1.20.1 2.0.0 release. The 1.20.1 release has breaking changes and removes the class system entirely. It will be added back in a new mod that I will post here in the next couple days.
About
This mod adds skill books to the game for all default Project MMO skills that can be used to award players with a variable amount of experience or levels.
It also allows you to create custom items to award any amount of levels or experience to any skill, or even set a skill to a specific level. It also allows you to add a list of skills, allowing the user to select one of the options to gain the levels or experience when they use the item.
When you create a custom item you specify the type [skillbook, insignia] one of 4 colors [depends on type], and one of 5 tiers [plain, iron, gold, emerald, diamond]. Here is an example of the 5 tiers of a black skill book and a red insignia:

Creating Custom Items
The DataComponent used is SkillGrantData and it has 8 attributes: name, skills, application_type, application_value, experience_cost, texture_type, rank, and color.
- name: the translatable string code. Changes the name of the item but need to add to the lang file. Leave blank for default.
- skills: A list of skills. If 1 skill then it will immediately grant the bonus. If multiple skills (max of 4) it will let you choose.
- application_type: How the value should be applied to the skill. Allowed values: [level, xp, set]
- application_value: The number of levels or experience to grant. Any valid integer.
- experience_cost: The amount of minecraft levels of experience it costs to use this item. Put 0 for no cost.
- texture_type: If the texture should be a skill book or an insignia. Allowed values: [skillbook, insignia]
- rank: What color of trim the book should have. Allowed values: [plain, iron, gold, emerald, diamond]
- color: What color the item should be. Skillbook values: [blue, green, black, purple]. Insignia values: [white, red, teal, purple]. For plain insignias only there are also these additional colors: [orange, light_purple, green, blue, light_blue, yellow, pink, black]
If you wanted to give a player a custom skill book that increased their good_looks levels by 10, you could use the in game /give command like this:
1.21.1 Command:
/give @p pmmo_skill_books:skill_grant[pmmo_skill_books:skill_grant_data={name:test.skill_grant.good_looks, skills:[good_looks], application_type:level, application_value:10, experience_cost:10, texture_type:skillbook, rank:gold, color:green}]
1.20.1 Command:
/give @p pmmo_skill_books:skill_grant{pmmo_skill_books:{skills:["good_looks"],color:"green",application_type:"level",application_value:10,experience_cost:10,name:"test.skill_grant.good_looks",rank:"gold",texture_type:"skillbook"}} 1
This would create a green skill book with gold trim called test.skill_grant.good_looks that gives the player 10 levels of the good_looks skill. Make sure to add test.skill_grant.good_looks to the translation lang file or it will literally have that as the name. You'll probably want to give pmmo.good_looks a skill name as well while you're there.
That was too easy, lets make a diamond insignia that gives the player 10,000 experience to either magic, fishing, woodcutting, or mining.
1.21.1 Command:
/give @p pmmo_skill_books:skill_grant[pmmo_skill_books:skill_grant_data={name:test.item,skills:[magic, fishing, woodcutting, mining], application_type:xp, application_value:10000, experience_cost:0, texture_type:insignia, rank:diamond, color:purple}]
1.20.1 Command:
/give @p pmmo_skill_books:skill_grant{pmmo_skill_books:{skills:["magic","fishing","woodcutting","mining"],color:"purple",application_type:"xp",application_value:10000,experience_cost:0,name:"test.item",rank:"diamond",texture_type:"insignia"}} 1
I also added this to the lang file:
"test.item": "Diamond Insignia of Legends"
Here is the resulting item:

When I use the item it opens this screen:

I clicked Fishing and confirm to gain 10,000 Fishing XP. Neat! You can use any system of creating or adding items to the game to add your own custom items, like loot tables, custom recipes, or achievement rewards in datapacks or register items with mods like KubeJS.
You can also do things like create a book that sets a skill to a specific level, like level 1 Omniscience. Then make some powerful effects in PMMO for that skill and make the book a rare chase item.
Future Upgrades:
- Add basic loot table options to introduce these into the game in a simple way for players who don't want to customize them.
- Add new book colors / trims.
DISCLAIMER: None of these skill books drop in the game by default, nor are they craftable. Modpack makers or server operators can give these out as rewards to their players, either through server stores or for events. They can also add them to loot tables to give something for players to look for or trade with other players, or create recipes for them.
Old 1.20.1 Only Features - Moved to new mod
Class System This will be a separate more fully featured mod in 1.21.1, Project MMO: Classes.
This mod also adds a basic class system to Project MMO. It adds all of the 5e DND classes (and some subclasses as well as custom subclasses) as skills and adds a third type of skill book that sets their levels to 1, 2, 3, or 4. By default you can only have 2 classes at a time, and all subclasses require that you have the main class in order to take it. You can also only have 1 subclass for any given primary class. Using each level of class book requires 5 more exp levels than the last, starting at 20. Again, these are not droppable or craftable in the game and are only there for you to build around by creating custom perks for these classes and subclasses and adding them to loot tables as you see fit.
I am actively adding new subclasses to this as I develop my modpack. If you would like me to add some custom skills or classes / subclasses for you please let me know and I'll throw it in.
Since you can only have 2 primary classes, and 1 subclass per those primary classes, you need a way to remove them if you want to try something else. Use the command:
/pmmo_skill_books forget <class or subclass>
To forget a class or subclass. If you forget a class it will also delete any subclass you have for that class.
Ideas
Perks
If you want to use this mods class system here are some of the things I am doing to give you ideas. I used PMMO's existing perk system along with Apothic Attributes added attributes to create interesting class bonuses:
- Each level in Fighter gives a decent amount of health and some bonus damage reduction and armor.
- The Wizard class gives a lot of mana and mana regen for Ars Nouveau or Iron's Spells and Spell Books.
- Rogues gain invisibility when you crouch as well as speed so you can sneak faster. The assassin subclass gives more crit chance and crit damage.
- The Warlocks subclass Reaper gives access to a powerful scythe from another mod and gives % Lifesteal.
- The Paladin subclass Valkyrie can fly like they have an elytra.
- The Monk class gains a regeneration effect when standing still for 30 seconds and takes significantly less fall damage.
Item Restrictions
Adding class restrictions to some powerful items in the game, like the Ranger subclass Tracker and the Scannable mod item or a teleporting staff for warlocks, can give each class interesting identities. These are just some ideas of what you can do using Project MMO's existing system of requirements with datapacks and perks with the perks TOML.
Tips
Using CraftTweaker perks also opens a lot of interesting doors here, i.e. a Level 2 Fighter gets 30 seconds of regeneration once every 10 minutes when they have less than 2 hearts. Using min_level and max_level within these perks allows you to control exactly what each level brings.
Command Books - Removed in 1.21.1
There are also some custom books that run commands on the player. Currently these are just skill books that unlock limitations in Parcool, like wall running. These will not work for you unless you have parcool in your modpack and turned on parcools limitations and then disabled that limitation for the player. I did this through an achievement a player gets when they join the server that runs a mcfunction. When the use the book it will enable that skill if it is disabled.
评论 0
登录后参与评分
还没有评论,来抢沙发吧