
卡皮克斯!
一个小型API模组,允许模组开发者为其模组添加披风
Capix
- 一个小型 API 模组,允许模组开发者为其模组添加披风
模组开发者
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)
你可以使用数据包(DataPack)和资源包(ResourcePack)创建披风
数据包示例
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 模组无任何关联
正在加载版本记录…

正在加载评论…
评论在新手盒子客户端中发表,这里同步展示。