Archived
1
0
Fork
You've already forked legacy-api
0
No description
This repository has been archived on 2024年10月12日. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
  • TypeScript 100%
Find a file
2024年10月02日 15:25:02 +08:00
src fix:修复了一个严重漏洞 2024年10月02日 15:25:02 +08:00
.gitignore chore:添加typedoc环境 2024年08月30日 09:32:22 +08:00
.typedoc.json feat:添加快速注册组件功能 2024年08月31日 17:58:05 +08:00
index.ts feat:添加新任务系统(测试) 2024年09月08日 18:20:33 +08:00
LICENSE feat:添加LICENSE 2024年08月13日 10:40:57 +08:00
package.json v1.6.2 2024年09月21日 10:43:41 +08:00
README-zh.md feat:添加新任务系统(测试) 2024年09月08日 18:20:33 +08:00
README.md feat:优化README 2024年08月19日 12:38:59 +08:00
tsconfig.json feat:添加tsconfig 2024年08月13日 10:17:21 +08:00
yarn.lock feat:迁移其他依赖 2024年09月21日 10:43:06 +08:00

Lazuli Api

简体中文 | English

Some useful instances for Minecraft Script Api.

Register API

If the instance has Need Registry category, it needs a static method in Register Api to registried it in game.

For example, if you want to define a tool:

const EXAMPL_TOOL: ToolItem = new ToolItem("exmaple:tool");
Register.toolRegistry(EXAMPLE_TOOL);

Language Files

Article API

If you want to enable the Article API, you need to add the following strings to the language file:

article.nothing.title=No unlocked article
article.nothing.body=You don't unlock any articles, you can get and read an article to unlock it.

Quest API

If you want to enable Quest API, you need to add the following strings to the language file:

api.unexpected_error.quest=Unknown error!
quest.finished=You have completed a quest!
quest.done=The quest has been completed
quest.check=Submit the quest
quest.not_enough.item=You need %1 %2 to complete this task
quest.not_enough.level=You need %1 experience to complete this task
quest.not_enough.xp=You need %1 experience to complete this task
quest.not_enough.entity=You also need %1 specific tasks to complete this task
Quest.not_enough.entity=You need to kill %1 to complete this quest
quest.condition=§eCompletion§r:
quest.award=§eReward§r:
quest.item=%1 %2;
quest.xp=%1 ×ばつexperience;
quest.level=%1 ×ばつlevel;
quest.quests=Complete %1 specific quests;
quest.entity=Kill %1;
quest.reward.none=No reward
quest.condition.none=No condition
quest.tips=§4Tips§r:

Job API

job.tryUpdate=Try update job level