promotional bannermobile promotional banner

Chasm api

Chasm api brings modding back to its essence with a declarative API – define features in a few lines, and the framework handles registration, assets, and extensibility, so you focus on gameplay, not boilerplate.

Chasm api – A Modding Framework

Item creation via chained declarations

No inheritance or manual registration. The framework handles registration, models, language files, and recipes.

Chasm.item()
    .type(SWORD).attackDamage(10)
    .name("Blazing Blade").texture("minecraft:item/diamond_sword")
    .onAttack(ctx -> ctx.target().setOnFire(5))
    .register();

Declarative configuration

Data components, enchantment pools, GUI windows, and durability can be configured declaratively. No need to write NBT or network packets directly.

Asset generation

Run runDatagen to generate models, language files, recipes, and loot tables into your resources folder.

SPI-based extension

Other mods can add behaviors through SPI, without subclassing or exposing internal APIs.


Chasm 2.0 aims to reduce boilerplate so you can focus on gameplay.


Chasm api – 模组开发框架

链式声明创建物品

无需继承或手动注册,框架会处理注册、模型、语言文件和配方。

Chasm.item()
    .type(SWORD).attackDamage(10)
    .name("烈焰之刃").texture("minecraft:item/diamond_sword")
    .onAttack(ctx -> ctx.target().setOnFire(5))
    .register();

声明式配置

数据组件、附魔池、GUI 窗口、耐久消耗等都可以通过声明式配置完成,不需要直接处理 NBT 或网络包。

资源文件生成

运行 runDatagen,模型、语言文件、配方和掉落表会自动生成到资源目录。

SPI 扩展

其他模组可以通过 SPI 追加物品行为,不需要继承或暴露内部接口。


Chasm 2.0 希望减少样板代码,让开发者把时间放在玩法设计上。


The Chasm api Team

profile avatar
  • 1
    Projects
  • 6
    Downloads