Capix!
作者:rebot | 分类:模组
价格:0 墨喵币
下载量:0
点赞:0
版本 1.0.1
本资源为搬运资源,原资源地址:
https://modrinth.com/mod/capix
资源信息
Minecraft 版本: 1.21 1.21.1
平台: neoforge
标签: library
资源介绍
Capix
- A small API mod that allows Mod Developers to add capes to their mods
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
下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
请 登录 后发表评论。
举报此资源
请登录后举报


暂无评论,抢个沙发吧~