Skip to content

cornea

Kotlin DSL for polymer-virtual-entity

Fabric
Loaders
Fabric
Downloads on Modrinth
1.1K
Followers on Modrinth
1
versions
9
Updated
April 18, 2026Apr 18
Published
in 2026
This is a library — other mods need it, and it adds nothing to the game by itself

At a glance

A library: other mods need it
Runs on Fabric
For Minecraft 1.21.11–26.1.2
Server only — players don't need to install it
Latest version — 0.55.0 from April 18, 2026
Requires Polymer
Where it's needed
In gamenot neededOn serverrequired

Install on the server only; players don't need it

Game versions1.21.11–26.1.2

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
    }
}

FAQ

How to install cornea?

Install Fabric for your Minecraft version, download cornea for the same version and loader, put the file into the mods folder and launch the game with the loader profile.

Which Minecraft versions does cornea support?

cornea has builds for Minecraft 1.21.11–26.1.2.

Is cornea needed on the server?

Server only — players don't need to install it

License and source
Apache License 2.0free to use and share with credit to the author
Original — Modrinth↗Files unchanged, verified with SHA-512Is this your mod? For rights holders

The site uses cookies: the necessary ones for sign-in and the theme, plus the Yandex Metrica and LiveInternet visit counters — they show us how the site is used. We have no advertising cookies. More