该模组仍处于早期阶段,我计划为其添加更多内容!
注意:本模组需要您了解数据包的工作原理!
简介
你是否曾想过制作一个 RPG 整合包,但所有的 RPG 模组都只提供通用的技能,且仅允许进行少量自定义设置?
Koko 是一个完全模块化的模组,允许你创建自己的 技能、经验来源 以及对玩家产生的 效果。
让我们来看一个例子:
你想为你的整合包添加 创造力 技能。但你很快发现,没有任何现代 RPG 模组包含它。
Koko 允许你实现这一点。
首先,你需要下载并安装 Koko。之后,在以下路径创建一个数据包:<YourDatapackName>/data/<YourDatapackName>/koko/skills/
现在,只需为你的技能创建一个 .json 文件,例如 "creativity.json":
这是默认的模式。
{
"display_name": "Creativity",
// 这是一个可翻译的组件!
"description": "Hi! I am creativity skill!",
// 这也是一个可翻译的组件!
"icon": "lantern",
// 这必须是一个有效的物品资源位置!
"default_xp": 0,
// 玩家首次加入世界时的默认经验值。这与等级不同!
"max_level": 10,
// 该技能的最高等级
"unlocked_max_level": 20
// 这是一个只能通过代码解锁的特殊等级。
// 可用于限制玩家在完成某些挑战前无法达到“最高等级”。
}
好了,现在你拥有了你的创造力技能!
你可以在此处阅读更多关于模组工作原理的信息 here!
This mod is in early stages and I still pretend to add much more content to it!
Note: This mod requires some knowledge how of datapack works!
Introduction
Have you ever thought about creating an RPG mod pack, but all RPG mods add generic skills and only allow for a few customizable settings?
Koko is a fully modular mod that allows you to create your own skills, their experience sources, and their effects on the player.
Let's look at an example:
You want to add the creativity skill to your mod pack. But you soon realize that none of the modern RPG mods include it.
Koko allows you to do this.
First, you need to download and install Koko. After that, create a datapack in the following path: <YourDatapackName>/data/<YourDatapackName>/koko/skills/
Now, simply create the .json file for your skill e.g "creativity.json":
This is the default pattern.
{
"display_name": "Creativity",
// This is a translable component!
"description": "Hi! I am creativity skill!",
// This is also a translable component too!
"icon": "lantern",
// This must be a valid item resource location!
"default_xp": 0,
// Default xp when the player join world for first time. This isn't the same of level!
"max_level": 10,
// Max level for that skill
"unlocked_max_level": 20
// This a special level that can only be unlocked by code.
// Useful to restrict player to "max_level" until they complete some challenge.
}
Alright now you have your creativity skill!
You can read more about how the mod works here!
评论 0
登录后参与评分
还没有评论,来抢沙发吧