cornea
ModKotlin DSL for polymer-virtual-entity
Type
Mod
Modrinth Downloads
1,056
Modrinth ID
oHXlIsT1
Last Updated
Aug 31, 2026
Description
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 } }Compatibility
Mod Loaders
Game Versions
Recommended Gear
AffiliateHardware and extras that pair well with this mod.
As an Amazon Associate I earn from qualifying purchases.
Similar Mods
Keyboard Wizard: Legacy
Helps with solving key conflicts in legacy versions
OpenEntity
custom Capabilities for Entities like Mobs/Minecarts (Inventory, OpenComputers, Teleport, ...)
Mine Mine no Mi : All Fruits All Boxes
This mod completely randomizes the loot tables for all Devil Fruit boxes in Mine Mine no Mi. Whether it's Wood, Iron, or...
Create: Inverted Analog Transmission
A Create: Simulated addon that adds an Inverted Analog Transmission. Useful for making compact vehicles controlled from...
MechanicCraft Content
Content pack for the MechanicCraft modpack.
Casino Furniture
Bring Vegas to Minecraft! Add casino-style furniture like slot machines, poker tables, roulette wheels, and décor to giv...