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
}
}
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft version listed: 26.1.2
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Modrinth — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
Verified by MCModsHub
- Ships as cornea-0.55.0.jar — drop this file into the mods folder
- Download size: 229 KB
- Download link checked 1 Sept 2026 — working
These come from our own check of the pack file, not from the source page.