Merged
Conversation
删除了 ModelDestroyerItem 和 ModelDisplayItem 类, 同时从 ModItems 中移除了 ModelItemRegistrar 和 ModelToolRegistrar 的注册调用。 feat(register): 添加包模型方块实体注册器 新增 PackModelBlockEntityRegistrar 并在 ModBlocks 中进行注册, 替换原有的动态模型物品注册机制。 refactor(creative): 调整模型标签常量命名 将 DEFAULT_TAB 常量重命名为 DEFAULT_MODEL_TAB, 统一管理模型相关的创意标签名称。
- 在PackModelEntityBlock类中添加Player导入 - 重写spawnDestroyParticles方法以处理物品展示框的破坏粒子效果 - 避免因方块模型不可见而导致的纹理缺失问题
移除对BlockRegistrar的依赖,改为直接使用Registry.register进行方块和物品注册, 同时确保物品正确添加到创造模式标签页中。
为PackModelEntityBlock添加水平朝向属性支持,使方块能够正确显示朝向并 保持方向一致性。实现了BlockState的旋转、镜像和放置朝向逻辑,并在 PackModelBlockEntity中应用朝向旋转到显示实体。
- 实现模型缩放、偏移和旋转调整功能 - 添加配置模式循环切换机制 - 支持使用木棍和烈焰棒进行数值调节 - 实现数据持久化保存和加载 - 添加中英文界面消息支持
- 在PackModelBlockEntity中添加CONFIG_CLIPBOARD静态变量用于存储玩家的配置快照 - 实现copyConfig方法将当前配置保存到剪贴板 - 实现pasteConfig方法从剪贴板恢复配置 - 新增ConfigSnapshot记录类用于保存配置状态 - 在PackModelEntityBlock中添加对纸张和书籍的支持 - 纸张用于复制当前模型配置,书籍用于粘贴配置 - 更新中英文语言文件,添加相关提示信息 - 修改applyPose逻辑为独立的applyToDisplays方法便于复用
更新README.md中的模型操作说明部分,替换原有的资源包功能描述 为新的模型交互操作指南,包括交互调参和参数复制粘贴功能说明。
#### ✨ Model Operation Guide - **Interactive parameter tuning**: - Right-click the model with an `empty hand`: switch mode (`Scale / Offset X / Offset Y / Offset Z / Rotation`) - Right-click the model with a `Stick`: increase the current mode value - Right-click the model with a `Blaze Rod`: decrease the current mode value - **Copy & paste parameters**: - Right-click the model with `Paper`: copy current model parameters - Right-click the model with a Book: paste parameters to the target model
- 将mod_version从1.4.1升级到1.4.2-mc1.21.1 - 删除ModelDestroyerItem和ModelDisplayItem类文件 - 移除ModelItemRegistrar和ModelToolRegistrar自动注册机制 - 在ModBlocks中添加PackModelBlockEntityRegistrar注册调用 - 清空ModItems中的模型物品注册代码 - 更新创意标签相关常量名称DEFAULT_TAB为DEFAULT_MODEL_TAB - 添加模型配置模式相关的多语言文本消息
- 将mod_version从1.4.1-mc1.20.1更新到1.4.2-mc1.20.1 - 删除ModelDestroyerItem和ModelDisplayItem类 - 从ModItems中移除ModelItemRegistrar和ModelToolRegistrar的注册调用 - 添加PackModelBlockEntityRegistrar的注册调用 - 更新创意标签相关代码,将DEFAULT_TAB改为DEFAULT_MODEL_TAB - 从可见平面世界预设标签中移除box3_custom_noise - 添加模型配置模式相关的语言文件条目
为PackModelBlockEntityRegistrar中的BlockItem添加自定义描述ID实现, 确保物品能够正确显示翻译名称。Fabric 1.20.1版本添加了getDescriptionId 方法重写,Fabric 1.21.1版本添加了getName方法重写,并引入了 ItemStack和Component相关依赖。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.