Capix!

模组

· 作者 YeoXuHang

一个小型 API 模组,允许模组开发者为其模组添加披风

0 本站下载 0 关注 更新于 1 年前

最新 1.0.1 · 1.21.1 · NeoForge

一键开服(送7天)

Capix

  • 一个小型 API 模组,允许模组开发者为其模组添加披风

Config Screen Example Cape

模组开发者

Fabric 设置示例

import net.yeoxuhang.capix.api.CapixApi;

public class ExampleModClient implements ClientModInitializer {
    @Override
    public void onInitializeClient() {
        // 使用默认配置
        CapixApi.registerCape(ExampleMod.MOD_ID, "Example Cape", "textures/example_cape.png", "https://raw.githubusercontent.com/ExampleTeam/Example/master/namelist.txt");
        // 从 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 设置示例

import net.yeoxuhang.capix.api.CapixApi;

@Mod("example_mod")
public class ExampleMod {

    public ExampleMod(IEventBus eventBus) {
        // 使用默认配置
        CapixApi.registerCape(ExampleMod.MOD_ID, "Example Cape", "textures/example_cape.png", "https://raw.githubusercontent.com/ExampleTeam/Example/master/namelist.txt");
        // 从 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

你可以使用数据包和资源包创建披风

数据包示例

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

资源包示例

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

源码

报告问题

本模组与 Mojang、Optifine、LabyMod、Capes 或 MinecraftCapes 模组均无关联

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源