这个模组是做什么的?
你是否知道这种情况:你想玩一会儿 Minecraft,但随即意识到你还得为学校的考试背单词。有了这个模组,你就可以在游戏中完成这项任务!
它是如何工作的?
在开始学习之前,你需要将词汇写入一个 .json 文件中。具体操作步骤如下:
配置 vocab.json
- 将你的词汇表写入一个名为
vocab.txt 的文件中。内容格式应类似如下:
question
answer
hello ?
Hallo
What means "go" in German?
gehen
重要提示: 你可以将任何内容作为问题或答案,例如表情符号、分号、特殊字母(如 èéêë 等)。请注意,节号(§) 充当格式化代码。请严格遵循“一行问题,换行后一行答案,再空一行,接着下一组问题...”的结构。 否则模组将无法正确读取文件。
- 将该文件拖入你的
config 文件夹。(config 文件夹位于与 mods 文件夹相同的目录下。如果你使用 Modrinth 启动器,请点击实例顶部的三个点 > 打开文件夹 > config 找到它。如果你从未启动过整合包,该文件夹可能尚未生成。在这种情况下,请先在不安装该模组的情况下启动一次游戏。)
- 启动 Minecraft(已安装该模组)并加入一个世界。
- 执行命令
/voc load_txt。如果已经存在 vocab.json 文件,模组会询问你是否要删除它。重要提示: 不要删除你仍然需要的 vocab.json 文件!你应该将旧文件保存在单独的文件夹中,以便日后再次使用。保存(或删除/重命名)文件后,请再次执行 /voc load_txt。
- 新的
vocab.json 文件应该已经创建成功。如果没有,请尝试以下排查方法:
故障排除:
- .txt 文件的名称真的是
vocab.txt 吗?
vocab.txt 文件真的位于 config 文件夹内吗?
vocab.txt 的文件结构是否正确(如上面的示例所示)?
如果仍有疑问或问题,欢迎加入我的 Discord 服务器,我将为你提供帮助。
现在你可以开始学习了!操作方法如下:
使用模组
在游戏中时,模组每隔几分钟会从你的 vocab.json 文件中随机提出一个问题。此间隔时间可配置,详见下方的命令列表。
要回答问题,请执行命令 /voc a [answer] 并输入你的答案。
请注意以下几点:
- 如果答案包含特殊字母、空格,或者因包含无法识别的字符导致命令无法执行(显示为红色),请将答案用引号括起来(
"answer")。
- 某些特殊字母无法直接在 Minecraft 中输入。请尝试从其他程序复制粘贴单词。如果这不起作用,请使用该字母的 Unicode 编码。建议在创建
vocab.json 文件时避免使用此类难以输入的字母,因为手动输入它们会非常麻烦。
如果你不知道答案,可以使用 /voc skip 跳过该问题。
命令列表
/voc enable: 启用模组。
/voc disable: 禁用模组。
/voc a [answer]//voc skip: 参见使用模组
/voc cycle_time [seconds]: 更改模组提问的时间间隔(秒)。
/voc stats: 显示关于你所答题目的统计数据,例如答对或答错的题目数量。
/voc load_txt: 参见配置 vocab.json
依赖项
Blockabulary 不需要任何额外的模组。
它完全基于客户端运行,因此在使用于服务器时不会产生任何问题。
What is this mod for?
Don't you know this: You want to play a little Minecraft, but then you realize that you still have to learn vocab for school. With this mod, you can do this in-game!
How does it work?
Before you can learn the vocab, you have to write it down into a .json file. Here is how you can do this:
Setting up vocab.json
- Write down your vocabulary into a file called
vocab.txt. It should look something like this:
question
answer
hello ?
Hallo
What means "go" in German?
gehen
Important: You can write anything you want as question or answer, eg. emojis, semicolons, special letters like èéêë etc. Watch out that the section sign (§) acts as a formatting code. Only use one line for the question, then one line for the answer, then an empty line, then again one line for the question... . Otherwise the mod has trouble reading the file.
- Drag the file into your
config folder. (The config folder can be found in the same directory as the mods folder. If you use the Modrinth launcher, you find it when clicking on the three dots on the top of the instance > Open folder > config. If you haven't ever started your modpack before, the folder has not been generated yet. In this case, start your game once without the mod installed.)
- Start Minecraft (with the mod installed) and join a world.
- Execute
/voc load_txt. If there already exists a vocab.json file, the mod will ask you to remove it. Important: Don't delete vocab.json files that you still need! You should save older files in a seperate folder, so you can use them again another time. After saving (or deleting/renaming) the file, execute /voc load_txt again.
- The new
vocab.json file should have been created. If not, try this:
Troubleshooting:
- Is the .txt file really called
vocab.txt?
- Is the
vocab.txt file really inside the config folder?
- Is the file structure of
vocab.txt correct (like in the example above)?
If there are still questions or problems, feel free to join my DIscord server, where I can help you.
Now you can start learning! Here is how to do so:
Using the mod
When you are ingame, the mod will ask you a random question from your vocab.json file every few minutes. This is configurable, see List of Commands for more.
To answer the question, execute the command /voc a [answer] and write your answer.
You should watch out for this:
- If the answer contains any special letters or spaces or if the answer is marked red, so that the command can't be executed, put the answer into quotation marks (
"answer")
- Some special letters can't be typed in Minecraft. Try copy-pasting the word from another program. If this doesn't work, use the unicode of the letter. I recommend not to using such letters when creating your
vocab.json file, as it can be very annoying to type them.
If you don't know the answer, you can skip it with /voc skip.
List of Commands
/voc enable: Enables the mod.
/voc disable: Disables the mod.
/voc a [answer]//voc skip: See Using the mod
/voc cycle_time [seconds]: Changes the interval at which the mod asks questions.
/voc stats: Shows a statistic of the questions you have been asked, for example how many questions you answered right or wrong.
/voc load_txt: See Setting up vocab.json
Dependencies
Blockabulary doesn't require any additional mods.
It is fully client-side, so there are no problems with using it on servers.
评论 0
登录后参与评分
还没有评论,来抢沙发吧