cornea
ModKotlin DSL for polymer-virtual-entity
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
Blockify
Allows users to passthrough their Spotify information into Minecraft
CleanJoin
Reduces server lag during large login waves by preloading chunks async, spreading initial entity packets over multiple t...
Simple Trowel
A mod adds a simple trowel for your beautiful naturally textured buildings, with camouflage blocks support
ModelApplier
A datapack that allows you to to easily change the displayed model of items in survival mode.
Transformable Items
Lets you move and resize held items, with the additional option of disabling Item Height Animations(Held item moving up...
The Forgotten Man
A hand-built DELTARUNE Chapter 5 dimension you reach through a craftable door. The tree room, the man behind the tree, a...