Skip to content

[1.21] PaucalBlockStateAndModelProvider doesn't work if texture has different RL from default #10

@slava110

Description

@slava110

Hi. After 1.21 update PaucalBlockStateAndModelProvider doesn't allow texture for block model to have different path from default one. This is probably caused by not passing BlockModelBuilder into simpleBlock method in the code.
I've experienced it with HexCasting datagen when it tried to generate block models for slate tiles, akashic ligature, slate block. They have their textures named or placed differently from default resource location (slate tiles, for example, has its texture placed in hexcasting:block/deco/slate_tiles instead of hexcasting:block/slate_tiles).
Here is 1.20.1 code:
https://github.com/gamma-delta/PAUCAL/blob/be3a236aa2f1ecc31b03114cf4eefb551f0b051b/Forge/src/main/java/at/petrak/paucal/api/forge/datagen/PaucalBlockStateAndModelProvider.java#L15-L18
Here is the same code in 1.21:
https://github.com/gamma-delta/PAUCAL/blob/0340bf81c98426d9c896c8341b3fc1ea50dcd5e2/Neoforge/src/main/java/at/petrak/paucal/forge/api/datagen/PaucalBlockStateAndModelProvider.java#L14-L17

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