Compatibility
Minecraft: Java Edition
Platforms
Supported environments
Creators
Details
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


