一个用于简单创建多方块结构的小型库
旨在实现由多个自身方块组成、但仍作为一个整体方块运作的机制(例如床、门等)。请勿与多方块结构(multiblock structures)混淆!
主要面向开发者提供的库,但包含可通过模组配置访问的方块放置预览功能。下载比模组打包版本更新的库也有助于修复一些错误。
特性
超级简单
只需重写单个方法即可创建任意尺寸的多方块结构。所有的破坏和放置逻辑均已自动处理。
支持 Jar-in-Jar 打包
由于我讨厌为每个模组下载成千上万个依赖项,整个库都设计为 jar-in-jar 模式,这意味着它会被包含在你的模组 JAR 包中,玩家无需下载任何额外依赖。
多方块预览
允许开发者和玩家为任意方块启用放置预览。当玩家手持该方块时,客户端会渲染出该方块放置后的透明预览效果(参见画廊中的图片)。此功能可通过客户端配置禁用。
共享方块状态
允许注册方块状态属性,在更新时自动在整个多方块结构中同步,非常适合模组兼容性。
幽灵渲染器
可自定义的方块/方块实体/模型预览,可在世界中任意位置放置固定刻数(仅限客户端)。
技术支持
如果你是开发者并遇到问题或有建议,请在 Discord (nikdo53) 或 GitHub 上私信我,我保证会尽快回复你(除非你住在美国且当时是凌晨 3 点?)。
安装说明
首先,获取我的 Maven 仓库并将其放入你的 build.gradle 的 repositories 块中。
repositories {
//some other repositories you might have
maven {
name = 'Nikdo53 Maven'
url = 'https://nikdo53.github.io'
}
}
然后在 gradle.properties 中添加你想要的版本号(不支持 4.0.0 之前的版本):
tiny_multiblock_lib_version=4.0.0
最后,根据你的加载器 / Gradle 插件将依赖项添加到 build.gradle 中。
Neoforge MDG 或 NG
jarJar(implementation("net.nikdo53:tiny-multiblock-lib-neoforge-${minecraft_version}:${tiny_multiblock_lib_version}"))
Forge FG
- 在你的 minecraft 代码块之前任意位置添加
jarJar.enable()以启用 jarjar。 - 在 dependencies 中添加这一行:
implementation(fg.deobf(jarJar("net.nikdo53:tiny-multiblock-lib-forge-${minecraft_version}:${tiny_multiblock_lib_version}")))
(注意 ForgeGradle 6 很糟糕,你可能应该切换到 MDG Legacy)
Forge MDGL
jarJar(modImplementation("net.nikdo53:tiny-multiblock-lib-forge-${minecraft_version}:${tiny_multiblock_lib_version}"))
Fabric
// pre 26.1
modImplementation(include("net.nikdo53:tiny-multiblock-lib-fabric-${minecraft_version}:${tiny_multiblock_lib_version}"))
// post 26.1
implementation(include("net.nikdo53:tiny-multiblock-lib-fabric-${minecraft_version}:${tiny_multiblock_lib_version}"))
Multiloader common
// 1.20.1
modImplementation("net.nikdo53:tiny-multiblock-lib-common-${minecraft_version}:${tiny_multiblock_lib_version}")
// 1.21+
implementation("net.nikdo53:tiny-multiblock-lib-common-${minecraft_version}:${tiny_multiblock_lib_version}")
A Tiny Lib for simple creation of Multiblocks
Meant as blocks that that contain multiple blocks of itself, but still act like 1 block (for example a bed, door etc...) not to be confused with multiblock structures!!
Mostly meant as a library for developers, but includes a block placement preview feature accessible through the mods config. Downloading a newer version than a mod packages could also help fix some bugs
Features
Super simple
creating a multiblock of any size can be done just by overriding a single method. All breaking and placing logic is done for you.
Jar-in-Jar -able
Because I hate dowloading thousands of dependencies for each mod, the whole lib is intended as a jar-in-jar, meaning it gets included in your mod jar and players won't have to download any extra dependencies
Multiblock Previews
Allows devs and players to enable placement previews for any block. When a player holds that block in hand, it renders a transparent client-side preview of how that block would be placed (see the picture in gallery). This can be disabled with client config
Shared Blockstates
Allows registering blockstate properties that automatically sync across the whole multiblock when updated, great for mod compatibility
Ghost Renderers
Customisable previews of a blocks / blockentities / models that can be easily placed anywhere in the world for a set amount of ticks (client side only)
Support
If you're a developer and have some issues / suggestions, just dm me on discord (nikdo53) or github and I pinky promise to get back to you as soon as I can (unless you live in the USA and it's like 3AM for me?)
Installation instructions
First, get my maven and put into your build.gradle repository block.
repositories {
//some other repositories you might have
maven {
name = 'Nikdo53 Maven'
url = 'https://nikdo53.github.io'
}
}
Then add the version you want (versions before 4.0.0 not supported) into gradle.properties:
tiny_multiblock_lib_version=4.0.0
Lastly, add the dependecy to your build.gradle based on your loader / gradle plugin
Neoforge MDG or NG
jarJar(implementation("net.nikdo53:tiny-multiblock-lib-neoforge-${minecraft_version}:${tiny_multiblock_lib_version}"))
Forge FG
- enable jarjar by adding
jarJar.enable()anywhere before your minecraft block - add this line into dependencies:
implementation(fg.deobf(jarJar("net.nikdo53:tiny-multiblock-lib-forge-${minecraft_version}:${tiny_multiblock_lib_version}")))
(note that ForgeGradle 6 sucks and you should probably switch to MDG Legacy)
Forge MDGL
jarJar(modImplementation("net.nikdo53:tiny-multiblock-lib-forge-${minecraft_version}:${tiny_multiblock_lib_version}"))
Fabric
// pre 26.1
modImplementation(include("net.nikdo53:tiny-multiblock-lib-fabric-${minecraft_version}:${tiny_multiblock_lib_version}"))
// post 26.1
implementation(include("net.nikdo53:tiny-multiblock-lib-fabric-${minecraft_version}:${tiny_multiblock_lib_version}"))
Multiloader common
// 1.20.1
modImplementation("net.nikdo53:tiny-multiblock-lib-common-${minecraft_version}:${tiny_multiblock_lib_version}")
// 1.21+
implementation("net.nikdo53:tiny-multiblock-lib-common-${minecraft_version}:${tiny_multiblock_lib_version}")
下载 Tiny Multiblock Lib
下载 Tiny Multiblock Lib
下载 Tiny Multiblock Lib
下载 Tiny Multiblock Lib
下载 Tiny Multiblock Lib
下载 Tiny Multiblock Lib
下载 Tiny Multiblock Lib
下载 Tiny Multiblock Lib
下载 Tiny Multiblock Lib
下载 Tiny Multiblock Lib
- (NeoForge) 修复了与 Epic Fight 模组一起使用时可能出现的崩溃问题
- (Fabric) 正确地将 Forge Config API Port 添加为依赖
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
适用于 MC 1.18+ 的 Effekseer 加载器
模组
添加区块认领和玩家组队功能,并与 Xaero's Minimap 和 World Map 集成
评论 0
登录后参与评分
还没有评论,来抢沙发吧