跳到正文

WebKit

作者:Titop54

A simple HTTP server for 1.20.1, integrating some of the KubeJS api requests from 1.21.1 You can get assets, models, item list and block list easily, just opening your browser.

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

A simple HTTP server for 1.20.1, integrating some of the KubeJS api requests from 1.21.1 on port 61423 (or if it’s fails, try to use port 61424, …. up to 10 tries)

You can get assets, models, item list and block list easily, just opening your browser and put http://localhost:. Useful to get assets and models automatically with simple requests to the browser instead of going for each mod’s repository or opening the mod file using external tools

/api/mods
Expected return (as JSON):

 [
    {
       "id": "my_mod_id",
        "name": "My Super mod installed",
        "version": "1.0"
    },

    {
       "id": "industrialforegoing",
        "name": "Industrial Foregoing",
        "version": "<version>"
    },
 ....
 ]

/api/client/search/blocks:
Expected return (as JSON):

[
   {
       "id": "minecraft:air",
       "name": "Air"
   },
   {
       "id": "minecraft:stone",
       "name": "Stone"
   }
]

/api/client/search/items
Expected return (as JSON)

{
            "world": false,
            "icon_path_root": "http://localhost:61423/img/64/item/",
            "results": [
                {
                    "id": "minecraft:stone",
                    "name": "Stone",
                    "icon_path": "stone",
                },
               ...
            ]
        }

/api/client/assets/list/
Expected result (as JSON):

 [
    "<mod_id>": [
       "a.png",
       "b.png",
       "my_super_block.json",
       "model.obj"
    ], ...
 ]

/api/client/assets/get//
Returns the content of the file asked , {} or empty if failed or doesn’t exist

/img////
Returns a x image as .png

Returns something similar that the original mod, except if it has a custom loader, which returns a “fake” json
For example, GTCEU using a custom loader, it will turn that into a standard MC representation

常见问题

WebKit 支持哪些 Minecraft 版本?

WebKit 支持 Minecraft Java 版 1.20.1,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。

WebKit 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅客户端。

评论

登录后评论和评分

Titop54 的其他作品

查看全部 →