fonnymunkey / RLFoliage

Minecraft mod that alters the appearance of leaves & grass
MIT License
0 stars 1 forks source link

[QUESTION] How to use resource pack's specific textures ? #5

Closed G1ll0u closed 1 month ago

G1ll0u commented 1 month ago

Hello guys,

I have my modpack with specific resourcepacks that I merge to make it look as I want.

I'm searching how to change falling_leaf textures. My resourcepack provides textures under :

\assets\betterfoliage\textures\blocks\ AND \assets\bettergrassandleaves\textures\blocks\

In these two last folders are located files named "falling_leaves_spruce"

Are these files normally changing falling leaf textures ?

Current texture : 2024-07-19_21 32 07

Desired texture : falling_leaf_spruce_0

It takes a lot of time to reload Minecraft resôurce pack with Optifine... it takes approx. 3min everytime...

Is there documentation about how this mod uses textures provided by resource pack ? Or will you be able to help me ?

Thanks in advance and have a lovely day.

PS: I use conquest_ resourcepack mixed with JSTR_modded.

fonnymunkey commented 1 month ago

Falling leaf textures are located in https://github.com/fonnymunkey/RLFoliage/tree/kotlin-1.12/src/main/resources/assets/betterfoliage/textures/blocks and will use the same path and naming for overriding with a resourcepack/resourceloader.

Falling leaf textures by default are 8x8 pixels and grayscale, as the coloring is dynamically rendered over the texture to allow for things such as seasonal/biome colors.

Your texture does work when placed in that path and named "falling_leaf_spruce_0.png", however it is very hard to see as it is a 32x32 sheet of multiple leaves instead of a single larger leaf.

If you want to override the default falling leaf textures with those textures, split that texture sheet into multiple 8x8 textures and name them "falling_leaf_spruce_0.png" "falling_leaf_spruce_1.png" "falling_leaf_spruce_x.png" etc. and place them in "betterfoliage/textures/blocks/"

As an aside, if you are going to be repeatedly reloading textures for testing resourcepacks, you should disable Conquest when you are testing, as it is a massive resourcepack that will contribute heavily to those load times.