Skip to content

[1.12.2] Rubber wood log texture rotations and sapling item model are inconsistent with vanilla #1352

Description

@AyaSapphire

Description

This report covers two visual inconsistencies related to rubber trees in IC2 Classic, both of which have been addressed with Mixin patches.


The primary issue concerns the texture rotations of normal rubber wood logs (resin=false). When placed along the X or Z axis, several faces of the log do not match the UV orientation of vanilla logs. The most noticeable case is the Z-axis: the side bark texture remains vertical, whereas vanilla logs rotate it horizontally.

Through investigation in BlockRubberWood#getTextureRotation, it was found that the current rotation logic does not properly account for both the log axis and the individual face being rendered. The implementation applies a single rotation value per axis, which is insufficient to reproduce vanilla's per-face UV mapping.

Image Image

The differences are clearly visible by following the Y-shaped marks in the bark texture.

It has also been reported that the rubber sapling item is rendered using a full 3D block model, unlike vanilla saplings which use a flat item/generated sprite. This creates a visual inconsistency with other saplings and with vanilla behavior.

Image

rubber sapling vs. vanillia sapling

Environment:

  • Minecraft: 1.12.2
  • IC2 Classic: IC2Classic-1.12.2-1.5.15

To address these issues, I have written the following two Mixin patches:

1. MixinBlockRubberWood.java — overrides hasTextureRotation and getTextureRotation to apply the correct per-face rotations for each log axis, matching vanilla log behavior exactly.

MixinBlockRubberWood.java

2. MixinModelSapling.java — changes the sapling item model from a 3D block model to item/generated, while preserving the 3D model for the placed sapling in the world.

MixinModelSapling.java

Both Mixins have been tested and successfully resolve the issues described above. If you find these patches acceptable, I would be glad to see them being integrated.

Thank you for considering these fixes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions