Started by
ankmaniac
on
Topic category: General discussion
I'm designing a new block for 1.17 for a possible proposal to introduce into the game, limestone (gray because it doesn't include an oxidized mineral) and I don't want to replace the stone texture with it, so instead I'll just replace a useless block with the texture. Only issue is that from what I see only stone rotates 180 degrees randomly, so I was wondering how to make a block randomly rotate using a resource pack. Any help would be greatly appreciated.
Stone as no rotation on it most Minecraft blocks don't have any rotation on them at all this is by design and 1.17 is not out yet and wont be for a long time in MCreator if ever.
So can you help with that you mean better?
For some reason I don't quite understand, Mcreator doesn't like randomised block model rotations and will show a texture error when you use them. You might possibly have to make an external resource pack for the effect you desire (I'm not sure how well that would work). In a resource pack, you can make a block randomly rotate the way most vanilla blocks do by going to your block's JSON file in “yourpack\assets\[minecraft/modID]\blockstates” and using this code:
Just replace all instances of “example” with the name of the block's model, and replace the Minecraft namespace with your mod's.
However, to rotate the way stone does, you'll need two models, one being a mirrored version of the other, using this code:
Once again, you'll need to make those same replacements.