Перейти к содержимому
Mineforgian

Capix!

A small API mod that allows Mod Developers to add capes to their mods

Загрузки
479
Подписчики
4
Обновлён
15 июня 2025 г.
Лицензия
LGPL-3.0-only

Опубликован 20 мая 2025 г.

Capix

  • A small API mod that allows Mod Developers to add capes to their mods

Config Screen Example Cape

Mod Developer

Fabric Setup Example

import net.yeoxuhang.capix.api.CapixApi;

public class ExampleModClient implements ClientModInitializer {
    @Override
    public void onInitializeClient() {
        // Using default
        CapixApi.registerCape(ExampleMod.MOD_ID, "Example Cape", "textures/example_cape.png", "https://raw.githubusercontent.com/ExampleTeam/Example/master/namelist.txt");
        // Texture from url
        CapixApi.registerCape(ExampleMod.MOD_ID, "Example Cape", "https://github.com/ExampleTeam/Example/blob/master/example_cape.png?raw=true", "https://raw.githubusercontent.com/ExampleTeam/Example/master/namelist.txt");
    }
}

NeoForge Setup Example

import net.yeoxuhang.capix.api.CapixApi;

@Mod("example_mod")
public class ExampleMod {

    public ExampleMod(IEventBus eventBus) {
        // Using default
        CapixApi.registerCape(ExampleMod.MOD_ID, "Example Cape", "textures/example_cape.png", "https://raw.githubusercontent.com/ExampleTeam/Example/master/namelist.txt");
        // Texture from url
        CapixApi.registerCape(ExampleMod.MOD_ID, "Example Cape", "https://github.com/ExampleTeam/Example/blob/master/example_cape.png?raw=true", "https://raw.githubusercontent.com/ExampleTeam/Example/master/namelist.txt");
    }
}

ModPacker

You can create cape using DataPack and ResourcePack

For DataPack Example

data/example_cape/capes/example_cape.json
pack.mcmeta
{
  "name": "Example Cape",
  "texture": "example_cape:textures/capes/example_cape.png"
}

For ResourcePack Example

assets/example_cape/textures/capes/example_cape.png
pack.mcmeta

Source

Report Issues

This mod is not affiliated with Mojang, Optifine, LabyMod, Capes, or the MinecraftCapes Mod

Ченджлог

1.0.1Релиз1.21, 1.21.1 · 15 июня 2025 г.
  • Replace playername with UUID.

  • DataPack supports

  • Online cape texture (Make sure the image is raw file)

  • Update License from GPLv3 to LGPLv3

1.0.1Релиз1.21, 1.21.1 · 24 мая 2025 г.
  • Replace playername with UUID.

  • DataPack supports

  • Online cape texture (Make sure the image is raw file)

  • Update License from GPLv3 to LGPLv3

Комментарии

Загружаем…