介绍
中文介绍正在准备中,下面暂时显示原文。
cornea
A library that provides Kotlin DSL and extension functions
for polymer-virtual-entity. It allows you to write elements and element holders in
DSL style and use useful extension functions.
Note: Until version 1.0.0, the API may change without prior notice.
Gradle Setup
Kotlin
repositories {
mavenCentral()
}
dependencies {
modImplementation("io.github.kouvali:cornea:YOUR_VERSION")
}
Groovy
repositories {
mavenCentral()
}
dependencies {
modImplementation "io.github.kouvali:cornea:YOUR_VERSION"
}
Usage
Here’s a quick example:
fun create() = elementHolder {
blockDisplayElement {
transformation {
translateLocal(-0.5f, -0.5f, -0.5f)
scaleLocal(0.75f)
}
onTick {
transform {
rotateLocalY(11.25f.toRadians())
}
startInterpolation(1)
}
blockState = Blocks.CAKE.defaultState
}
}
常见问题
cornea 支持哪些 Minecraft 版本?
cornea 支持 Minecraft Java 版 1.21.11–26.1.2,共 4 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。
cornea 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。
Ghost 的其他作品
查看全部 →
Samurai Dynasty
by Ghost
这个模组灵感来源于日本民间传说和武士,将为游戏添加新的3D盔甲和武器。
63.5万
10 个月前
Modrinth
Harvestable Flowers
by Ghost
可采集花朵让你能通过对花朵使用骨粉来获取花朵。
60.4万
3 年前
Modrinth
Epic Knights’n’Mages – Forge
by Ghost
This is an Ars Nouveau addon, focused on adding new armors and Source Gem's to the game.
19万
2 年前
Modrinth
Regions Unexplored: Expansion
by Ghost
Remodels vanilla biomes to match the look of Regions Unexplored biomes
12.3万
1 年前
Modrinth
评论
登录后评论和评分