Warning: file_put_contents(/www/wwwroot/nmbt.106988770/cache/modrinth_versions_x8K9GBuV.json): Failed to open stream: Permission denied in /www/wwwroot/nmbt.106988770/resource_detail.php on line 53
moire - 墨喵 Minecraft 资源

moire

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 0.4.6
本资源为搬运资源,原资源地址: https://modrinth.com/mod/moire
资源信息

Minecraft 版本: 1.21.4

平台: fabric

标签: library

资源介绍

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
    }
}
下载与版本
评论(0)
请 登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

赞助作者

请 登录 后赞助作者。

🔥 相关推荐
Bonfires

价格:0 墨喵币
下载量:0

查看详情
Dry My Sponge!

价格:0 墨喵币
下载量:0

查看详情
Dimian's Vanilla Plus

价格:0 墨喵币
下载量:0

查看详情
Simple weapon cooldown

价格:0 墨喵币
下载量:0

查看详情