World Name Terrarified - WNT
简介
WNT 是一款小型 Minecraft 模组,目前仅添加了一个(暂时)简单功能。完全复刻泰拉瑞亚风格的随机世界名称生成器!(不敢百分之百确定,但大体如此)
请在 GitHub 上报告任何问题,这将有助于改进模组并简化调试测试。
谢谢!
附:欢迎将此模组整合到你的整合包中。
工作原理
模组在世界创建界面、世界名称输入框的左侧添加了一个按钮。点击该按钮后,它将从特定文件中随机选取 4 个条目,从而生成一个独特的世界名称。
兼容性
我尚未与其他模组进行过测试,但只要其他模组不改变 Minecraft 渲染界面的方式,它应该可以正常工作!
目前官方支持 4 种语言:
- 英语 - en_us (1 887 189 984 个独特世界名称)
- 俄语 - ru_ru (944 663 616 个独特世界名称)
- 葡萄牙语 - pt_pt (943 594 992 个独特世界名称)
- 简体中文 - zh_cn (943 594 992 个独特世界名称)
- ...更多即将推出...也许...
- 无限扩展:通过自定义资源包实现!
自定义
模组使用 Minecraft 的资源管理器(简单来说就是资源包)来访问文件,因此添加你自己的变体/本地化内容非常简单!
创建自定义资源包
首先你需要了解如何处理资源,以下是“资源包”的结构:
assets/
├─ wnt/
│ ├─ LOCALE_CODE/
│ │ ├─ adjectives.txt
│ │ ├─ compositions.txt
│ │ ├─ locations.txt
│ │ ├─ nouns.txt
需要了解的重要事项:
LOCALE_CODE 文件夹(如 en_us, ru_ru 等)-必须为小写。如果你不知道语言代码,可以直接在网上搜索;如果该语言不受模组支持,你可以在日志中找到其代码,位置在 'Error while loading localization files...'(加载本地化文件时出错...)下方。
- compositions.txt 是世界名称的模板,其结构如下(示例):
adjectives.txt, locations.txt, nouns.txt - 只是按行分隔的变体列表,它们将分别替换 @、# 或 $(示例)
- 文件名必须与上述显示的名称完全一致!
因此,要修改原版模组,你只需创建一个包含合适 pack.mcmeta 和资源包目录 assets/wnt/LOCALE_CODE/ 的资源包,并将你想要修改或添加的文件放入其中。你也可以覆盖已有的资源,以及添加新的语言环境!
致谢
谢谢!
感谢 terraria.wiki.gg 提供的本模组所使用的单词列表。
World Name Terrarified - WNT
About
WNT is a small Minecraft mod, which adds only one (for now) simple feature. Random world name generator exactly like in Terraria! (Not 100% sure, but anyway)
PLEASE report any issues on GitHub, it'll make the mod better and testing with debugging easier.
Thank you!
P.S. Feel free to include this mod to your modpacks
How it works
Mod adds a button to the world creation screen, on the left from world name field. When you press the button it chooses 4 random entries from specific files and creates a unique name.
Compatibilities
I HAVEN'T TESTED WITH OTHER MODS YET, but until the other mod doesn't change how Minecraft renders screen it should work!
Right now it officially supports 4 languages:
- English - en_us (1 887 189 984 unique world names)
- Russian - ru_ru (944 663 616 unique world names)
- Portuguese - pt_pt (943 594 992 unique world names)
- Simplified Chinese - zh_cn (943 594 992 unique world names)
- ... more comming... maybe...
- Infinite expansion with custom resourcepacks!
Customization
Mod uses Minecraft's resource manager (simpler - Resourcepacks) to access files, so it's very simple to add your own variants/localizations!
Creating custom resourcepack
First of all you need to know how to handle resources, here is the structure of 'resourcepack':
assets/
├─ wnt/
│ ├─ LOCALE_CODE/
│ │ ├─ adjectives.txt
│ │ ├─ compositions.txt
│ │ ├─ locations.txt
│ │ ├─ nouns.txt
Important things to know about it:
LOCALE_CODE folder (en_us, ru_ru, etc.) - MUST be lowercase. If you don't know language code you can simply google it or if locale is not supported by the mod you can found its code in the logs under 'Error while loading localization files...'
- compositions.txt is the template of world names, here is its structure(example):
@ - Adjective
# - Location
$ - Noun
adjectives.txt, locations.txt, nouns.txt - are just lists with variants separated by lines, they'll replace @, # or $(examples)
- Names of the files MUST be exact the same as shown above!
So to modify the original mod you simply need to create a resource pack with a suitable pack.mcmeta and directory assets/wnt/LOCALE_CODE/ where you'll put the files you'd like to modify or add. You can also override already existing resources as well as adding new locales!
Credits
Thanks!
terraria.wiki.gg for provided lists of words which this mod uses.
评论 0
登录后参与评分
还没有评论,来抢沙发吧