moire
moire is a Kotlin library providing extension functions and a DSL
for polymer-virtual-entity. With moire, you can easily create and manage
ElementHolder instance.
Note: The API is subject to change without backward compatibility until version 1.0.0. Please be aware of potential changes.
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
Here is a simple example.
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)
}
startInterpolationIfDirty(1)
}
item = Items.TNT.defaultStack
teleportDuration = 1
}
}
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft version listed: 1.21.4
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Modrinth — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
Verified by MCModsHub
- Ships as moire-0.4.6.jar — drop this file into the mods folder
- Download size: 55 KB
- Download link checked 31 Aug 2026 — working
These come from our own check of the pack file, not from the source page.