Hey Wiki

Hey Wiki 是由 Minecraft Wiki 社区制作的一款客户端模组,允许你按下 H(可自定义)键来打开你正瞄准的方块、物品或实体的 Wiki 页面,无论是原版还是来自模组的。Hey Wiki 支持 Fabric 和 NeoForge。
功能特性
- 按下 H(可自定义)以打开你正瞄准或悬停其上的方块/物品/实体/状态效果的 Wiki 页面(Minecraft Wiki 或相应的模组 Wiki)。
- 按下 Alt+H 或 Opt+H 以打开主手所持物品的 Wiki 页面。
- 按下 B 打开 Wiki 搜索界面。你可以在搜索栏中输入内容来搜索 Wiki 页面。
- 添加了一些 命令。
- 使用
[[wiki link]] 语法在聊天中 链接到 Wiki 页面。
此外,还支持使用 MCBrowser 和 MCEF 进行游戏内浏览。
我不知道这个模组其实有点像 Lexica Botania,但它确实像。
使用方法
- 安装模组。你可以从 Modrinth 下载它。别忘了安装 依赖项。
- 用准星指向一个方块/实体,或将鼠标悬停在背包中的物品上。
- 按下按键绑定(默认为 H)。
- 在弹出的屏幕中确认操作或将链接复制到剪贴板。
配置
可选地,你可以在配置菜单中更改以下行为:
[!TIP]
你需要安装 Mod Menu 才能在 Fabric 上访问配置菜单。
- 打开 Wiki 页面时是否需要确认:默认为 true
- 使用 命令 打开 Wiki 页面时是否需要确认:默认为 false
- 你偏好的 Wiki 语言,将覆盖你的游戏语言:默认为你的游戏语言
- (针对中文用户)你偏好的中文变体,将覆盖你的游戏语言:默认为你的游戏语言
- 打开 Wiki 页面的按键绑定:默认为 H
- 视线距离:默认为 5.2 个方块(与创造模式下的距离相同)
- 是否允许查询流体:默认为 false
- 是否在背包中的物品上添加可查询的工具提示:默认为 true。
命令
以下是可用的命令:
/imfeelinglucky [<namespace>] - 带你去模组决定的任何地方。
- 示例:
/imfeelinglucky minecraft -> https://minecraft.wiki/????????
/wiki <pageName> - 打开指定页面名称的 Minecraft Wiki 页面。pageName 可以包含命名空间。
- 示例:
/wiki minecraft:creeper -> https://minecraft.wiki/w/?search=creeper
/whatbiome - 打开你当前所在生物群系的 Minecraft Wiki 页面。
/whatstructure - 打开你当前所在结构的 Minecraft Wiki 页面。
/whatcommand <command> - 打开指定命令的 Minecraft Wiki 页面。
- 示例:
/whatcommand give -> https://minecraft.wiki/w/?search=%2Fgive
- 别名:
/whatcmd
/whatisthis - 打开你正瞄准的方块/物品/实体的 Minecraft Wiki 页面。
/whatisthisitem - 打开你主手所持物品的 Minecraft Wiki 页面。
whatisthisitem offhand - 同上,但用于副手。
/whatversion - 打开当前游戏版本的 Minecraft Wiki 页面。
- 示例:
/whatversion -> https://minecraft.wiki/w/Java_Edition_1.21.5
请注意,如果你通过命令打开页面,不会弹出确认屏幕。
聊天中的 [[Wiki 链接]]
Hey Wiki 支持聊天中的 [[wiki links]]。当你发送带有 [[wiki link]] 语法的消息时,Hey Wiki 会将其替换为可点击的链接。页面名称可以包含命名空间。
这也支持跨 Wiki 链接。例如:
[[aether:lore]] 将链接到 Aether Wiki 中的“lore”页面(跨 Wiki)
[[en:enderman]] 将链接到英文 Minecraft Wiki 中的“enderman”页面(跨语言)
[[minecraft:en:enderman]] 将链接到英文 Minecraft Wiki 中的“enderman”页面(跨 Wiki 和跨语言)
支持的 Wikis
目前,Hey Wiki 支持以下 Wikis:
如果您希望添加对其他维基的支持,您可以提交一个 Issue。此外,您还可以通过使用资源包来添加对其他维基的支持。
APIs
资源包
[!NOTE]
此 API 自 v1.6.0 起稳定可用。
Hey Wiki 支持使用资源包来添加对其他维基的支持。为此,请在您的资源包的 assets/<namespace>/wiki_family/ 文件夹中创建一个具有以下格式的 JSON 文件:
{
// 绑定到该维基家族的命名空间
"namespace": [
"minecraft"
],
// 不同语言维基的列表
"wikis": [
{
// 文章页面的 URL 模式。%s 将被查询内容替换
"article_url": "https://minecraft.wiki/?search=%s",
// (可选) 如果维基是 MediaWiki 维基,则提供 API URL
"mw_api_url": "https://minecraft.wiki/api.php",
// (可选) 搜索页面的 URL 模式。%s 将被查询内容替换。
"search_url": "https://minecraft.wiki/?search=%s",
// (可选) 随机文章的页面名称
"random_article": "Special:RandomRootPage/Main",
// (可选) Hey Wiki 应从维基获取摘要的方式。可以是 "text_extracts" 或 "none"。
// "text_extracts" 仅适用于安装了 TextExtracts 和 PageImages 扩展的 MediaWiki 站点。您可以通过访问维基上的 Special:Version 进行检查。
"excerpt": "text_extracts",
// (可选) 用于自动完成搜索的提供商。可以是 "mediawiki" 或 "algolia"。
"search_provider": "mediawiki",
// (可选) 如果您使用 algolia 作为搜索提供商,则必须填写以下字段
"algolia": {
"api_url": "https://example-dsn.algolia.net/",
"index_name": "example",
"api_key": "efcc14a8c70a1489d18cfd565cce53ca",
"app_id": "9957A67102"
},
"language": {
// 维基的语言代码
"wiki_language": "en",
// 这是否是主语言。如果为 true,当没有其他语言匹配时,将回退到此语言
"main": true,
// 维基支持的游戏内默认语言。如果游戏内语言不受维基支持,将回退到此语言
"default": "en_us",
// 如果正则表达式匹配游戏内语言,则在配置为 auto 时将使用此维基
"regex": "^en_.*",
// (可选) 同上,但用于排除
"exclude": null,
// (可选) 自定义语言代码,允许您将翻译键覆盖到特定页面。应在 assets/<namespace>/lang/<lang_override>.json 处存在翻译文件
"lang_override": "minecraft_en"
}
},
{
// 另一种语言
"article_url": "https://de.minecraft.wiki/?search=%s",
"language": {
"wiki_language": "de",
"default": "de_de",
"regex": "^de_.*",
"exclude": null
}
}
]
}
您还需要在 assets/<namespace>/lang/ 文件夹中包含一个具有以下格式的翻译文件:
{
// 假设定义位于 `assets/heywiki/wiki_family/minecraft.json`
"wiki_family.heywiki.minecraft": "Minecraft Wiki"
}
通过数据组件或 NBT 自定义物品
[!WARNING]
此 API 是一项实验性功能,可能会随时更改。
数据包和自定义服务器作者可以在 custom_data 组件中使用 heywiki:identifier、heywiki:translation_key 和 heywiki:fallback_title 来为物品提供自定义命名空间和名称。但是,这仅适用于自定义物品。对于 1.20.4,您可以直接在 NBT 中填充这些字段。
您需要使用上述方法通过资源包注册带有自定义命名空间的新维基。如果要求玩家下载资源包不可行,我们也可以将其随模组本身一起分发。
例如,在“niceserver”上,要使骨头物品解析到“Drill”页面,您需要首先按上述方式注册“niceserver”命名空间。然后,您可以给予玩家此物品:
1.21:
/give @s minecraft:bone[minecraft:custom_data={"heywiki:identifier": "niceserver:drill", "heywiki:fallback_title": "Drill", "heywiki:translation_key": "item.niceserver.drill"}]
1.20.4:
/give @s minecraft:bone{"heywiki:identifier": "niceserver:drill", "heywiki:translation_key": "item.niceserver.drill"}
依赖项
对于 Fabric:
对于 NeoForge:
版本说明
Hey Wiki
Hey Wiki 本身遵循 语义化版本控制。版本号格式为
<major>.<minor>.<patch>[-<prerelease>]。版本号根据以下规则递增:
- 主版本(Major):当对稳定公共 API 进行破坏性更改时递增。
- 次版本(Minor):以向后兼容的方式向稳定公共 API 添加新功能时递增。
- 修订版(Patch):进行错误修复时递增。
Minecraft
Hey Wiki 支持多个 Minecraft 版本。
每个 Minecraft 版本都被分配了一个支持状态:
- 活跃(Active):此版本会接收新功能和错误修复。功能将在合理范围内尽可能向后移植。
- 维护(Maintenance):此版本仅接收错误修复和安全补丁。功能通常不会向后移植。
- 生命周期结束(EOL):不应再期待任何更新。
当前的 Minecraft 发布版本和 master 分支始终处于“活跃”状态。拉取请求几乎总是应该提交到 master。如果被接受,它们应该被 cherry-pick(拣选)到其他活跃的分支。
当新的快照发布时,master 分支将更新为该快照。快照可能只对应一个版本,也可能完全不分配版本号。快照仅支持 Fabric。
旧的 Minecraft 版本根据其受欢迎程度和社区兴趣提供长期支持(LTS)。LTS 版本最初会获得活跃支持。经过一段时间后,它们将被降级为维护状态。
旧的快照不受支持。
下表显示了受支持的版本:
| Git 分支 |
Minecraft 版本 |
是否支持 |
是否为 LTS? |
Modloader |
master |
1.21.7 |
活跃 (最新版) |
? |
Fabric, Neoforge |
mc/1.21.5 |
1.21.5 |
EOL |
No |
Fabric, Neoforge |
mc/1.21.4 |
1.21.4 |
EOL |
No |
Fabric, Neoforge |
mc/1.21.3 |
1.21.2, 1.21.3 |
EOL |
No |
Fabric, Neoforge |
mc/1.21.1 |
1.21, 1.21.1 |
活跃 (LTS) |
Yes |
Fabric, Neoforge |
mc/1.20.6 |
1.20.6 |
EOL |
No |
Fabric, Neoforge |
mc/1.20.5 |
1.20.5 |
EOL |
No |
Fabric, Neoforge |
mc/1.20.4 |
1.20.4 |
维护 (LTS) |
Yes |
Fabric, Neoforge |
| N/A |
过时的快照 |
EOL |
No |
Fabric |
Hey Wiki

Hey Wiki is a client mod made by the the Minecraft Wiki community that allows you to press H (
customizable)
to open the wiki page of the block, item, or entity you're aiming at, whether it's from vanilla or a mod.
Hey Wiki supports Fabric and NeoForge.
Features
- Press H (customizable) to open the wiki page (Minecraft Wiki or the respective mod wiki) of the
block/item/entity/status effect you're aiming at or hovering over.
- Press Alt+H or Opt+H to open the wiki page of the item in your main hand.
- Press B to open the wiki search screen. You can search for wiki pages by typing in the search bar.
- Adds several commands.
- Link to a wiki page in chat using
[[wiki link]] syntax.
It is also supported to use MCBrowser and MCEF for in-game browsing.
I didn't know that this mod is kinda like Lexica Botania but it is.
How to use
- Install the mod. You can download it from Modrinth. Don't forget to install the dependencies.
- Point at a block/entity with your crosshair or hover over an item in your inventory with your cursor.
- Press the keybind (default is H).
- Either confirm the action or copy the link to your clipboard in the screen that pops up.
Configuration
Optionally, you can change these behaviors in the config menu:
[!TIP]
You need to install Mod Menu to access the config menu on Fabric.
- If confirmation is required to open the wiki page: default is true
- If confirmation is required to open the wiki page when you are using an command: default is false
- Which wiki language you prefer, overriding your game language: default is your game language
- (For Chinese users) Which Chinese variant you prefer, overriding your game language: default is your game language
- The keybind to open the wiki page: default is H
- Reach distance: default is 5.2 blocks (same as creative mode reach)
- Whether you are allowed to look up fluid: default is false
- Whether to add a tooltip to items in the inventory that can be looked up: default is true.
Commands
These commands are available:
/imfeelinglucky [<namespace>] - Takes you wherever the mod decides.
- Example:
/imfeelinglucky minecraft -> https://minecraft.wiki/????????
/wiki <pageName> - Opens the Minecraft Wiki page of the specified page name. pageName can include a namespace.
- Example:
/wiki minecraft:creeper -> https://minecraft.wiki/w/?search=creeper
/whatbiome - Opens the Minecraft Wiki page of the biome you're currently in.
/whatstructure - Opens the Minecraft Wiki page of the structure you're currently in.
- This command is only available in singleplayer.
/whatcommand <command> - Opens the Minecraft Wiki page of the specified command.
- Example:
/whatcommand give -> https://minecraft.wiki/w/?search=%2Fgive
- Alias:
/whatcmd
/whatisthis - Opens the Minecraft Wiki page of the block/item/entity you're aiming at.
/whatisthisitem - Opens the Minecraft Wiki page of the item you're holding in you main hand.
whatisthisitem offhand - Same, but for the offhand.
/whatversion - Opens the Minecraft Wiki page of the current game version.
- Example:
/whatversion -> https://minecraft.wiki/w/Java_Edition_1.21.5
Note that if you open a page with a command, the confirmation screen will not appear.
[[Wiki links]] in chat
Hey Wiki supports [[wiki links]] in chat. When you send a message with [[wiki link]] syntax, Hey Wiki will replace
it with a clickable link. The page name can include a namespace.
This also supports interwiki links. For example:
[[aether:lore]] will link to the Aether Wiki page of "lore" (interwiki)
[[en:enderman]] will link to the English Minecraft Wiki page of "enderman" (interlanguage)
[[minecraft:en:enderman]] will link to the English Minecraft Wiki page of "enderman" (interwiki and interlanguage)
Supported wikis
Currently, Hey Wiki supports the following wikis:
If you want to add support for other wikis, you can
file an issue.
In addition, you can also add support for other wikis by using a resource pack.
APIs
Resource pack
[!NOTE]
This API is stable since v1.6.0.
Hey Wiki supports using resource pack to add support for other wikis. To do so, create a JSON file in the
assets/<namespace>/wiki_family/ folder in your resource pack with the following format:
{
// The namespaces that is bound to the wiki family
"namespace": [
"minecraft"
],
// List of different language wikis
"wikis": [
{
// The URL pattern for articles. %s will be replaced with the query
"article_url": "https://minecraft.wiki/?search=%s",
// (Optional) If the wiki is a MediaWiki wiki, the API URL
"mw_api_url": "https://minecraft.wiki/api.php",
// (Optional) The URL pattern for searching. %s will be replaced with the query.
"search_url": "https://minecraft.wiki/?search=%s",
// (Optional) The page name for the random article
"random_article": "Special:RandomRootPage/Main",
// (Optional) How Hey Wiki should fetch excerpts from the wiki. Either "text_extracts" or "none".
// "text_extracts" only works for MediaWiki sites with the TextExtracts and PageImages extension installed. You can check this by visiting Special:Version on the wiki.
"excerpt": "text_extracts",
// (Optional) Which provider to use for autocompleted search. Either "mediawiki" or "algolia".
"search_provider": "mediawiki",
// (Optional) If you use algolia as search provider, you MUST fill out the following fields
"algolia": {
"api_url": "https://example-dsn.algolia.net/",
"index_name": "example",
"api_key": "efcc14a8c70a1489d18cfd565cce53ca",
"app_id": "9957A67102"
},
"language": {
// The language code of the wiki
"wiki_language": "en",
// Whether this is the main language. If true, this language will be fallback if no other language matches
"main": true,
// The default in-game language that the wiki supports. This will be fallback if the in-game language is not supported by the wiki
"default": "en_us",
// If the regex matches the in-game language, this wiki will be used when config is auto
"regex": "^en_.*",
// (Optional) Ditto, but for exclusion
"exclude": null,
// (Optional) A custom language code that allows you to override translation keys to specific pages. A translation file should exist at assets/<namespace>/lang/<lang_override>.json
"lang_override": "minecraft_en"
}
},
{
// Another language
"article_url": "https://de.minecraft.wiki/?search=%s",
"language": {
"wiki_language": "de",
"default": "de_de",
"regex": "^de_.*",
"exclude": null
}
}
]
}
You also want to include a translation file in assets/<namespace>/lang/ folder with the following format:
{
// Assuming the definition is located at `assets/heywiki/wiki_family/minecraft.json`
"wiki_family.heywiki.minecraft": "Minecraft Wiki"
}
Custom item via data component or NBT
[!WARNING]
This API is an experimental feature and might change at any time.
Data pack and custom server authors can use heywiki:identifier, heywiki:translation_key and
heywiki:fallback_title in custom_data component to provide custom namespace and name for an item. However, this only
accounts for custom items. For 1.20.4, you can populate these fields directly in NBT.
You need to use the method above to register a new wiki with a custom namespace using resource pack. If it is not
feasible to ask your players to download a resource pack, we can also ship it with the mod itself.
For example, on "niceserver", to have a bone item to resolve to the "Drill" page, you will first need to register
the "niceserver" namespace per above. Then you can give the player this item:
1.21:
/give @s minecraft:bone[minecraft:custom_data={"heywiki:identifier": "niceserver:drill", "heywiki:fallback_title": "Drill", "heywiki:translation_key": "item.niceserver.drill"}]
1.20.4:
/give @s minecraft:bone{"heywiki:identifier": "niceserver:drill", "heywiki:translation_key": "item.niceserver.drill"}
Dependencies
For Fabric:
For NeoForge:
Versioning
Hey Wiki
Hey Wiki itself follows Semantic Versioning. The version number is in the format of
<major>.<minor>.<patch>[-<prerelease>]. The version number is incremented based on the following rules:
- Major: Incremented when breaking changes are made to stable, public API.
- Minor: Incremented when new features to stable, public API are added in a backwards-compatible manner.
- Patch: Incremented when bug fixes are made.
Minecraft
Hey Wiki supports multiple versions of Minecraft.
Every Minecraft version is assigned a support status:
- Active: This version receives new features and bug fixes. Features will be backported as much as reasonably
possible.
- Maintenance: This version receives only bug fixes and security patches. Features are generally not backported.
- End of Life (EOL): No further updates should be expected.
The current Minecraft release and the master branches are always Active. Pull requests should almost always
go to master. If they're accepted, they should be cherry-picked to other Active branches.
When a new snapshot releases, master branch is updated to that snapshot. Snapshots might receive only one version or
no
version at all. Only Fabric is supported for snapshots.
Old Minecraft versions are provided with Long Term Support (LTS) based on their popularity and the community's interest.
LTS versions receive Active support at first. After some time, they will be downgraded to Maintenance.
Old snapshots are not supported.
The following table shows which versions are supported:
| Git branch |
Minecraft version |
Supported? |
Is LTS? |
Modloader |
master |
1.21.7 |
Active (Latest) |
? |
Fabric, Neoforge |
mc/1.21.5 |
1.21.5 |
EOL |
No |
Fabric, Neoforge |
mc/1.21.4 |
1.21.4 |
EOL |
No |
Fabric, Neoforge |
mc/1.21.3 |
1.21.2, 1.21.3 |
EOL |
No |
Fabric, Neoforge |
mc/1.21.1 |
1.21, 1.21.1 |
Active (LTS) |
Yes |
Fabric, Neoforge |
mc/1.20.6 |
1.20.6 |
EOL |
No |
Fabric, Neoforge |
mc/1.20.5 |
1.20.5 |
EOL |
No |
Fabric, Neoforge |
mc/1.20.4 |
1.20.4 |
Maintenance (LTS) |
Yes |
Fabric, Neoforge |
| N/A |
Outdated snapshots |
EOL |
No |
Fabric |
评论 0
登录后参与评分
还没有评论,来抢沙发吧