介绍
中文介绍正在准备中,下面暂时显示原文。
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
}
}
常见问题
moire 支持哪些 Minecraft 版本?
moire 支持 Minecraft Java 版 1.21.4,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。
moire 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。
Ghost 的其他作品
查看全部 →
Samurai Dynasty
by Ghost
这个模组灵感来源于日本民间传说和武士,将为游戏添加新的3D盔甲和武器。
63.5万
10 个月前
Modrinth
Harvestable Flowers
by Ghost
可采集花朵让你能通过对花朵使用骨粉来获取花朵。
60.4万
3 年前
Modrinth
Epic Knights’n’Mages – Forge
by Ghost
这是一个 Ars Nouveau 附属模组,专注于为游戏添加新盔甲和源质宝石。
19万
2 年前
Modrinth
Regions Unexplored: Expansion
by Ghost
Remodels vanilla biomes to match the look of Regions Unexplored biomes
12.3万
1 年前
Modrinth
评论
登录后评论和评分