WebKit

Quick rating

Community listing page, reviews here may not be monitored by the author.

WebKit

By titop54Owner

No reviews yet

A Local Web server for obtaining information with a simple HTTP request

Mod Loaders
Minecraft

About

Description

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:<port><url>. 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/<models or textures/blocks or textures/item>
Expected result (as JSON):
 *[
 *   "<mod_id>": [
 *      "a.png",
 *      "b.png",
 *      "my_super_block.json",
 *      "model.obj"
 *   ], ...
 *]

/api/client/assets/get/<namespace>/<path to the file>
Returns the content of the file asked , {} or empty if failed or doesn't exist

/img/<size>/<item or block>/<namespace>/<id_block>
Returns a <size>x<size> 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

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/<models or textures/blocks or textures/item> 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////<id_block> 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