#Adding Head-Block Style Rotation To Flower Pots?

12 messages · Page 1 of 1 (latest)

toxic fox
#

Hiya!

I'm trying to add rotations to the flower pot block, specifically the style of rotation used by head blocks (skeleton, zombie, player, etc.), but I cannot figure out how to implement that.

I've tried looking through the vanilla classes but cannot find anything that would control the rotation.

Any advice/help would be appreciated!

Thanks :)

formal leaf
toxic fox
toxic fox
# formal leaf ``SkullBlock`` uses ``getPlacementState`` to decide the rotation and an ``IntPro...

okay so I've got it almost working. It will recognize the rotation blockstate and change depending on how I'm facing, like it's supposed to, but it won't actually rotate the model. Like the blockstate will update but the model won't rotate

Github Repository if it helps: https://github.com/Hippopotamoss/RandomlyRotatingFlowerPots/tree/master

GitHub

Contribute to Hippopotamoss/RandomlyRotatingFlowerPots development by creating an account on GitHub.

modern solstice
toxic fox
maiden summit
#

I'm on mobile right now, so I can't really see, but I think you might want to make some sort of FlowerPotEntityRenderer, similar to how Skulls do it

#

My Directional mod is cursed af, but if you check the repo out in earlier commits it's not too bad actually. Nothing to do with chunk rendering, I just inject blockstates into Vanilla's flower pot block, override its placement to support directions, and add a bunch of models manually

#

Here's a working solution to directional flowerpots, lanterns, and torches. I didn't set up any type of datagen, so modded blocks that add flower pot flowers or extend LanternBlock or TorchBlock don't look like they rotate (even though their blockstates are added properly)

#

Here's how it looked like at the time: #showcase-old message