搜索历史
清空
暂无搜索历史
论坛热搜
1
【MC整合包发布】乌托邦探险之旅3.2
热
3
[1.6.4]上古老物 冒险者传说 by WhiteSword
新
5
[转载]洛心斗罗-福利|公会据点战|武魂||抽奖|最终版
2
[1.12.2]Jenny — 有趣的模拟女友模组|珍妮模组
热
4
幻虚斗罗V1.5[炫酷魂环][高级魂技][全模型贴图覆盖][超吸金]
6
[1.7.10] [HQM] [Mercury landing]水星迫降——在未知的世界中挣扎
登陆 注册 QQ登陆
快捷导航
查看: 14|回复: 0

[模组分享] 可疑形状 (Suspicious Shapes)-MOD模组

[复制链接]

5554

主题

25

回帖

7598

积分

龙❁妻

Rank: 8Rank: 8

经验
7598 EP
金粒
1979 粒
绿宝石
20 块
爱心
0 点
发表于 2025-8-10 19:31:51 | 显示全部楼层 |阅读模式
可疑形状 (Suspicious Shapes)Github |相关wiki |源站链接支持: fabric , quilt在资源包和模组中使用glTF模型!

使用frapi(fabric-rendering API),这个模组拦截了对方块模型的请求,如果它们引用了glTF文件,则提供它们作为静态模型,正常地嵌入到区块几何中。完全在客户端进行,这个模组可以用来驱动“诅咒”的资源包,替换现有方块为基本立方体无法制作的形状。

它也可以作为“包含”模组,用于支持你的模组中的非立方体方块。

详细说明

创建兼容模型的最简单方法是使用Blockbench。

- 从应用程序中选择“新建 -> 低多边形 / 通用模型”,然后点击“创建新模型”按钮。

- 任何标识符、UV模式或其他设置都可以。

- 当你对你的模型满意时,点击“文件 -> 导出 -> 导出glTF模型”。

- Blockbench会忽略大多数设置,使用默认设置即可。

- 找到你导出的文件,并放置在你通常放置json方块模型的位置(例如 `assets/minecraft/models/block`)。

- 创建一个子模型,将glTF模型作为父模型引用,根键值对为 `\"loader\": \"suspicious_shapes:gltf\"`。你也可以在这里填写纹理引用并设置颜色索引。

- 编辑glTF模型的文本,将纹理的数据URL替换为纹理引用。

最后一部分是难点。在文件中你会看到类似以下内容:

json

\"images\":[{\"mimeType\":\"image/png\",\"uri\":\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAr0lEQVQ4y6WTMQrCQBBFt0xtk0YQL+QR0mpnYyk5QbDObTc84YVB0NnFgSGTyf7/5w+bUpJ4LMdaeuI6jzWC5/Vcm0kAAyAleE6Hd00vkn8Fq0oCJv32up9yEg6REPGEQDLemyYR6DS3y7ATp3tQTTCEWqH3U50DcQccRl0b9lKSuAvV0wXG+AQyRTOYiDughkB76bXVgiDr5gkEeYEAu8iuf0L/WiD/Iii94diZ+gZo3N9oOnqLFAAAAABJRU5ErkJggg==\"}]

这是纹理的base-64编码图像。由于方块模型不能使用不在图集中的随机纹理,我们必须修复它。用类似这样的minecraft纹理引用替换每个标记为“uri”的不可读字符串:

json

\"images\":[{\"mimeType\":\"image/png\",\"uri\":\"minecraft:blocks/stone\"}]

或者,如果你正在制作几个具有相同形状的模型,你可以像通常一样使用纹理上引用作为父级:

json

\"images\":[{\"mimeType\":\"image/png\",\"uri\":\"#all\"}]

你的子模型可能看起来像这样:

json

{

  \"parent\": \"minecraft:block/sphere_all.gltf\",

  \"loader\": \"suspicious_shapes:gltf\",

  \"textures\": {

    \"all\": \"minecraft:block/acacia_leaves\"

  },

  \"colorIndexes\": [ 0 ]

}

就是这样!加载minecraft或重新加载资源包,你应该能看到你的模型!

截图:



来自Modrinth所有游戏版本1.21.11.21.21.21.31.21.41.20.41.201.20.1所有类型fabricquiltSuspicious Shapes 1.1.0-alpha.1+1.21.1SuspiciousShapes-1.1.0-alpha.1+1.21.1.jar下载1.1.0-alpha.1+1.21.1#AlphaThis is a mostly-unmolested forward-port of Suspicious Shapes to 1.21.1. *for the most part*, resource packs designed for the original will work in the updated version.Previously, Suspicious Shapes would ignore models parented to a gltf without the key-value pair,```json\"loader\": \"suspicious_shapes:gltf\"```The new version has namespaced this key to be less intrusive when loaded alongside connector and/or the upcoming fabric model loader API. Models should be updated as follows:```json\"suspicious_shapes:loader\": \"suspicious_shapes:gltf\"```Sorry for the difficulty this may cause, but I promise it\'ll be worth the trouble with all the wild new mod interactions this makes possible.展开版本: 1.1.0-alpha.1+1.21.1支持游戏: 1.21.1, 1.21.2, 1.21.3, 1.21.4类型:FabricAlpha下载次数: 117Suspicious Shapes 1.0.5+1.20.4SuspiciousShapes-1.0.5+1.20.4.jar下载1.0.5+1.20.4#Release- Port back to fabric- Update to 1.20.4展开版本: 1.0.5+1.20.4支持游戏: 1.20.4类型:FabricRelease下载次数: 308Suspicious Shapes 1.0.4+1.20.1SuspiciousShapes-1.0.4+1.20.1.jar下载1.0.4+1.20.1#ReleaseBugfix release- Adds null guards around the deserialized json to make model loading more resilient.- Adds a barebones config file to control how aggressively errors get logged (defaults to reporting number of model errors collectively).展开版本: 1.0.4+1.20.1支持游戏: 1.20, 1.20.1类型:QuiltRelease下载次数: 1,886Suspicious Shapes 1.0.3+1.20.1SuspiciousShapes-1.0.3+1.20.1.jar下载1.0.3+1.20.1#ReleaseReworks model loading almost entirely to deal with the new model-loader-api-v1 in fabric and the sudden no-deprecation removal of v0 from dev artifacts.The new loader:- Grabs all its raw data ahead of time on a DataLoader worker thread - this is extremely fast, usually on the order of 300-400msec on a vanilla instance, but times are posted in the logs now.- Builds and prunes model trees in a preparation worker thread. Typically around 400-500msec for the whole kit, this time is also posted in the log. This is when memory usage peaks, but big data structures are nulled out ASAP for the garbage collector in case things get hairy.- Builds / provides / bakes the final model in yet another worker thread. The main speed benefit is here, that by the time the model is requested by Id, the data is already present and we don\'t need to touch ResourceLoader at all.The speed boost in loading individual models comes at the expense of a moderate memory spike and some very particular setup steps. Please let me know if either of these gets out of hand.展开版本: 1.0.3+1.20.1支持游戏: 1.20, 1.20.1类型:QuiltRelease下载次数: 126Suspicious Shapes 1.0.2+1.20.1SuspiciousShapes-1.0.2+1.20.1.jar下载1.0.2+1.20.1#ReleaseThis is a minor bugfix release.- Fixes \"uvLock\" property to be \"uvlock\" like vanilla展开版本: 1.0.2+1.20.1支持游戏: 1.20, 1.20.1类型:QuiltRelease下载次数: 252Suspicious Shapes 1.0.1+1.20.1SuspiciousShapes-1.0.1+1.20.1.jar下载1.0.1+1.20.1#ReleaseWorked out a lot of the initial kinks!- Fixed normals and shading on rotated shapes- Now honors uvLock- Invalid json in one model no longer destroys all models for everyone- Lots of little cleanups everywhere展开版本: 1.0.1+1.20.1支持游戏: 1.20, 1.20.1类型:QuiltRelease下载次数: 951.0.0+1.20.1SuspiciousShapes-1.0.0+1.20.1.jar下载1.0.0+1.20.1#ReleaseSuspiciousShapes-1.0.0+1.20.1.jar下载1.0.0+1.20.1#ReleaseSuspiciousShapes-1.0.0+1.20.1.jar下载1.0.0+1.20.1#Release## Initial release!### Late additions:- Will not load models without the following key-value-pair on the child model: \"loader\": \"suspicious_shapes:gltf\" - this is to let other model loaders know we\'re here, and to avoid clobbering their models.- Some previously-broken untextured models will now load. Faces with no textures specified will act like an \"#all\" up-reference, subject to change in future versions.### Known Issues- obj+mtl loading isn\'t in yet, but is planned for the future. Its loader key will be \"suspicious_shapes:obj\".- vertex colors aren\'t yet honored. This is also planned for the future.展开版本: 1.0.0+1.20.1支持游戏: 1.20, 1.20.1类型:QuiltRelease下载次数: 105全部版本

markdown_parsed

文章类型:收录

layui.use([\'form\'], function(){
var form = layui.form;
});

游客,如果您要查看本帖隐藏内容请回复
可疑形状
楼主 2025-8-10 19:31:51 回复 收起回复
小僵尸论坛感谢有你~
回复 论坛版权

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册 手机动态码快速登录

本版积分规则



介绍

我的世界(Minecraft)小僵尸论坛
收录了来自各地的我的世界(MC)爱好者们的各种资源

须知: 切勿滥用举报,任何与举报相关的信息必须属实!

"Minecraft"以及"我的世界"为Mojang Synergies AB的商标 本站与Mojang以及微软公司没有从属关系

官方

新浪微博 腾讯微博 微信公众号 投稿规则 版权声明 捐助我们

官方QQ①群: 291907844 (点击加群)
官方QQ②群: 421312192
官方QQ③群: 528726532

我的世界(Minecraft)小僵尸论坛

新会员

QQ|Archiver|手机版|小黑屋|Minecraft(我的世界)小僵尸论坛 |网站地图

GMT+8, 2025-9-26 02:49 , Processed in 0.169022 second(s), 53 queries .

快速回复 返回顶部 返回列表