Unofficial site, not affiliated with modrinth.com.What is this?
Моды/cornea

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

Совместимость

Minecraft: Java Edition

Платформы

Поддерживаемые окружения

Сервер

Сведения

Лицензия:
Опубликован:3 месяца назад
Обновлён:1 месяц назад
ID проекта:
Главная