Download moire — Minecraft Mods — MetaMods

moire

Archived

Downloads

1

Last update

8 months ago

Versions

1.21.4
Server
Fabric
Libraries

Moire

Moire is a Kotlin library that provides extension functions and a domain-specific language for working with polymer-virtual-entity. This tool significantly simplifies the process of creating and managing ElementHolder instances.

Important: The library API may change without backward compatibility until version 1.0.0. Consider potential changes in future updates.

Gradle Setup

Groovy

repositories {
    maven { url 'https://maven.nucleoid.xyz/' }
    maven { url 'https://api.modrinth.com/maven' }
}

dependencies {
    modImplementation 'eu.pb4:polymer-virtual-entity:POLYMER_VERSION'
    modImplementation 'maven.modrinth:moire:MOIRE_VERSION'
}

Kotlin DSL

repositories {
    maven("https://maven.nucleoid.xyz/")
    maven("https://api.modrinth.com/maven")
}

dependencies {
    modImplementation("eu.pb4:polymer-virtual-entity:POLYMER_VERSION")
    modImplementation("maven.modrinth:moire:MOIRE_VERSION")
}

Usage Example

Here's a simple example of working with the library:

import jp.fishmans.moire.elements.*
import jp.fishmans.moire.matrices.rotateLocalYDegrees
import net.minecraft.item.Items

fun create() = elementHolder {
    itemDisplayElement {
        transformation {
            scaleLocal(0.5f)
        }

        onTick {
            transform {
                rotateLocalYDegrees(11.25f) // Rotation around Y axis
            }

            startInterpolationIfDirty(1)
        }

        item = Items.TNT.defaultStack
        teleportDuration = 1
    }
}
Project members
Ghost

Ghost

Developer

Zuttomae

Zuttomae

Developer

Hanatte

Hanatte

Developer

Created: 13 Jan 2025

ID: 25319