Conversation
Added top, bottom, and item models Added construction textures
📝 WalkthroughWalkthroughAdds new construction_sign assets: a blockstate mapping for four facings and two halves, two block models (top/bottom) defining geometry and textures, and an item model with display transforms. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~15 minutes Poem
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches🧪 Generate unit tests (beta)
No actionable comments were generated in the recent review. 🎉 Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 4
🤖 Fix all issues with AI agents
In `@src/main/resources/assets/minetale/blockstates/construction_sign.json`:
- Around line 1-28: The facing variants for the construction_sign block lack y
rotations so the sign renders the same in all directions; update each variant
entry under "variants" to include a "y" rotation mapped from facing→y (north:0,
east:90, south:180, west:270) for both "construction_sign_bottom" and
"construction_sign_top" models (i.e., add "y":0/90/180/270 to the four lower and
four upper entries respectively, assuming the models face north by default).
In
`@src/main/resources/assets/minetale/models/item/furniture/construction_sign.json`:
- Line 10: The rotation.angle values in the elements use invalid numbers (e.g.,
4.21875); Minecraft requires rotation.angle to be a multiple of 22.5 within
[-45,45]. Find each JSON object with the "rotation" key (look for "rotation":
{"angle": ..., "axis": ..., "origin": ...} inside the elements array) and
replace the angle with a valid value (e.g., -45, -22.5, 0, 22.5, 45) — choose
the nearest acceptable multiple that preserves the intended orientation and
ensure the "axis" and "origin" fields remain unchanged.
- Around line 2-5: The item model's texture entries ("0" and "1") reference the
wrong namespace prefix "hytale:"; update both texture values in
construction_sign.json from "hytale:block/furniture/construction_sign" and
"hytale:block/furniture/construction_sign_edge" to use the "minetale:" namespace
so they match the block models and prevent missing texture rendering.
- Around line 186-188: The JSON contains a nonstandard display context
"on_shelf" (with its "translation" array) which Minecraft will ignore; either
remove the "on_shelf" block or replace it with one of the standard display
contexts (thirdperson_righthand, thirdperson_lefthand, firstperson_righthand,
firstperson_lefthand, gui, head, ground, fixed), or if you intentionally need
"on_shelf" add a matching custom display-context handler in the rendering/loader
code that recognizes "on_shelf" and applies the translation; locate the
"on_shelf" entry in the model JSON and either delete it or rename it to a
standard context (or implement the custom context mapping in your model loader).
Added top, bottom, and item models
Added construction textures
Summary by CodeRabbit