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
}
}
No gallery available for this project.
| Version | Minecraft | Loader | Download |
|---|---|---|---|
|
v0.55.0 0.55.0 |
26.1.2
|
fabric
|
Download |
|
v0.54.0 0.54.0 |
26.1.1
|
fabric
|
Download |
|
v0.53.0 0.53.0 |
26.1
|
fabric
|
Download |
|
v0.52.0 0.52.0 |
26.1-rc-2
|
fabric
|
Download |
|
v0.51.0 0.51.0 |
26.1-rc-2
|
fabric
|
Download |
|
v0.50.0 0.50.0 |
1.21.11
|
fabric
|
Download |
|
v0.49.1 0.49.1 |
1.21.11
|
fabric
|
Download |
|
v0.49.0 0.49.0 |
1.21.11
|
fabric
|
Download |
|
v0.48.0 0.48.0 |
1.21.11
|
fabric
|
Download |