Cannot Animate Spawned Blocks
Did the issue happen after restarting Blender?
- [X] Yes, the issue indeed continued after restarting Blender
Check known issues
- [X] I have checked known issues, and my problem is different
What happened?
Animate Textures in prep materials doesn't work on spawned blocks
What steps are needed to produce the bug?
- Spawn any animated block (sculk, sea lantern, nether portal etc)
- Prep it with Animate Textures enabled
- See the bug
What version of MCprep are you using?
3.6.1.2
What version of Blender are you using?
Blender 4.4, but you can reproduce that bug on any version of blender starting with 4.0
This can be fixed by removing the material post-fix (west, north, all, etc.)
Btw why does Mcprep create a new material for each side of the block, even if they have the same UV and texture ?
Is the issue happened in the dev branch? #644 That commit should already fix blocks with actual face change like crafting table only do west south east materials. Block only "all" use one.
This happens even in the dev branch. Btw it still creates a separate material for each face
Btw why does Mcprep create a new material for each side of the block, even if they have the same UV and texture ?
Minecraft Java json model system is like OOP in programming, polymorphism, its rather contains the same place it goes: this file contains that block "name" model textures has "all" texture but reference other file "parent" that has the geometry with each face map reference "all" as "#all" to use from the child block "name" file
the parent in sea_lantern.json maybe "cube_all' but it goes back to "cube" to create the geometry for each face direction for material assign based on the stored index list
Maybe have to properly remap those textures
https://github.com/user-attachments/assets/16308a04-12b3-4e9b-ad4e-707e064394fc
Closing as fixed with #655