Re-engineer the stamping platform and crusher to operate as a BlockEntity. 将冲压平台、粉碎台重构为BlockEntity - #4508
Conversation
- 粉碎台和冲压台底部不暴露物品能力,防止漏斗抽取产物 - 实现粉碎台方块及方块实体,支持物品自动吸附与存储 - 实现冲压台方块及方块实体,支持物品自动吸附与存储 - 添加粉碎台和冲压台内容物的圆周渲染表现 - 通过方块实体实现铁砧砸落时读取原料执行对应的配方处理 - 更新自动附魔台物品能力注册,保持已有功能 - 实现铁砧行为中读取冲压台原料方块实体执行冲压配方逻辑 - 添加相关方块实体的网络同步与存档读写功能 - 支持手持物品与空手交互进行原料插入与物品取出 - 注册粉碎台和冲压台方块实体及对应客户端渲染器
- 删除了冗余的碰撞盒形状,简化了碰撞逻辑 - 调整了偏移量计算,降低了Y轴偏移值和缩放比例 - 修正了盖印台方块在不同朝向下的偏移表现,提高交互体验
|
⏱️ Rate limited. Waiting 2.1s (attempt 2/3)... |
|
⏱️ Rate limited. Waiting 600.0s (attempt 3/3)... |
|
❌ Rate limited after 3 retries — HTTP 429: Upstream rate limit exceeded, please retry later |
|
API call failed after 3 retries: HTTP 429: Upstream rate limit exceeded, please retry later |
- 将CrushingTableBlockEntity的输出槽数量从8改为2 - 将StampingPlatformBlockEntity的输出槽数量从8改为2 - 优化资源管理,防止输出槽过多导致的问题
|
⏱️ Rate limited. Waiting 2.1s (attempt 2/3)... |
|
⏳ Retrying in 5.5s (attempt 2/3)... |
|
❌ API failed after 3 retries — HTTP 503: Service temporarily unavailable |
|
API call failed after 3 retries: HTTP 503: Service temporarily unavailable |
- 将CrushingTableBlockEntity中的OUTPUT_SLOTS从8调整为4 - 将StampingPlatformBlockEntity中的OUTPUT_SLOTS从8调整为4 - 统一两处代码中产出槽位的定义 - 优化资源管理逻辑,减少不必要的槽位占用
|
⏱️ Rate limited. Waiting 2.8s (attempt 2/3)... |
|
⏳ Retrying in 5.4s (attempt 2/3)... |
|
❌ API failed after 3 retries — HTTP 503: Service temporarily unavailable |
|
API call failed after 3 retries: HTTP 503: Service temporarily unavailable |
- 调整 CrushingTableBlockEntity 的输入槽插入逻辑,合并相同物品堆叠数量限制 - 将 StampingPlatformBlockEntity 的输入槽数量由1增加到2 - 为 StampingPlatformBlockEntity 添加与 CrushingTableBlockEntity 类似的插入限制逻辑 - 通过限制插入物品数量,避免超过最大堆叠上限 - 确保模拟插入时返回正确的剩余物品堆叠数量
- 将 CrushingTableBlockEntity 的输入槽位数量由1改为2 - 在 CrushingTableBlockEntity 的 loadAdditional 方法中设置输入输出槽位大小 - 在 StampingPlatformBlockEntity 的 loadAdditional 方法中添加输入输出槽位大小设置 - 修正物品槽位反序列化后大小未更新的问题
|
⏱️ Rate limited. Waiting 3.0s (attempt 2/3)... |
|
⏱️ Rate limited. Waiting 600.0s (attempt 3/3)... |
|
❌ Rate limited after 3 retries — HTTP 429: Upstream rate limit exceeded, please retry later |
|
API call failed after 3 retries: HTTP 429: Upstream rate limit exceeded, please retry later |
|
⏱️ Rate limited. Waiting 2.5s (attempt 2/3)... |
|
⏱️ Rate limited. Waiting 600.0s (attempt 3/3)... |
|
❌ Rate limited after 3 retries — HTTP 429: Upstream rate limit exceeded, please retry later |
|
API call failed after 3 retries: HTTP 429: Upstream rate limit exceeded, please retry later |
- 将破碎台输入槽位扩展至8个,输出槽位扩展至8个 - 调整加载数据时槽位大小,保证扩容后物品正确迁移 - 将冲压台输入槽位扩展至8个,输出槽位扩展至8个 - 调整加载数据时槽位大小,保证冲压台物品正确迁移 - 修改冲压台偏移量缩放值由0.55调整为0.6以优化表现
|
⏳ Retrying in 2.6s (attempt 1/3)... |
|
⏳ Retrying in 4.1s (attempt 2/3)... |
|
❌ API failed after 3 retries — HTTP 503: Service temporarily unavailable |
|
⏳ Retrying in 5.0s (attempt 2/3)... |
|
❌ API failed after 3 retries — HTTP 503: Service temporarily unavailable |
|
API call failed after 3 retries: HTTP 503: Service temporarily unavailable |
- 在多语言文件中添加冲压工艺提示字符串“需要八种不同的锻造模板” - 在JeiLang类中添加该提示的注册代码 - StampingCategory中新增处理多模版合成的setRecipe方法 - 支持根据结果中的特殊锻造模板自动调整输入模版数量和显示 - 支持StampingUniqueItemsRecipe转化为普通StampingRecipe以统一显示逻辑 - 优化冲压工艺配方界面的输入槽绘制逻辑,区分多模版与普通情况 - 扩展注册冲压工艺配方时,包含StampingUniqueItemsRecipe类型配方的转换和注册
|
⏳ Retrying in 2.9s (attempt 1/3)... |
|
⏳ Retrying in 6.0s (attempt 2/3)... |
|
❌ API failed after 3 retries — HTTP 503: Service temporarily unavailable |
|
API call failed after 3 retries: HTTP 503: Service temporarily unavailable |
- 修正 CrushingTableBlockEntity 和 StampingPlatformBlockEntity 在物品接受判断中剩余物品计算逻辑 - 允许 stamping templates 的提示文本支持动态显示需要的模板数量 - 更新 JEI 界面中 stamping 模板的显示,添加正确的数量提示 - 优化 ItemStampingBehavior 中物品处理,使用偏移位置掉落物品 - 调整 StampingPlatformBlock 的形状定义以改善交互体验 - 修改 StampingPlatformBlock getOffset 方法,调整物品掉落偏移量参数
- 引入ShapeUtil工具简化不同方向的VoxelShape旋转计算 - 将原有单一形状拆分为北、南、西、东四个方向形状常量 - 修正getShape和getInteractionShape方法以返回对应朝向的碰撞盒和交互盒 - 保持形状尺寸逻辑不变,增强代码可读性和扩展性
|
⏳ Retrying in 2.8s (attempt 1/3)... |
|
⏳ Retrying in 4.7s (attempt 2/3)... |
|
❌ API failed after 3 retries — HTTP 503: Service temporarily unavailable |
|
API call failed after 3 retries: HTTP 503: Service temporarily unavailable |
- 所有CreativeTabSection添加左对齐(textAlignment LEFT)和文本缩进(textIndent 20) - 优化了建筑块、功能块和物品标签的界面展示文字样式 - 更新anvillib依赖版本至2.0.0+snapshot.515
|
⏳ Retrying in 2.7s (attempt 1/3)... |
|
⏳ Retrying in 5.5s (attempt 2/3)... |
|
❌ API failed after 3 retries — HTTP 503: Service temporarily unavailable |
|
API call failed after 3 retries: HTTP 503: Service temporarily unavailable |
|
⏳ Retrying in 2.1s (attempt 1/3)... |
|
⏳ Retrying in 5.4s (attempt 2/3)... |
|
❌ API failed after 3 retries — HTTP 503: Service temporarily unavailable |
|
API call failed after 3 retries: HTTP 503: Service temporarily unavailable |
|
⏳ Retrying in 2.3s (attempt 1/3)... |
|
⏳ Retrying in 4.2s (attempt 2/3)... |
|
❌ API failed after 3 retries — HTTP 503: Service temporarily unavailable |
|
API call failed after 3 retries: HTTP 503: Service temporarily unavailable |
Uh oh!
There was an error while loading. Please reload this page.