2

Adding Head Block Rotation To Block?3d_rotation

Hippopotamoss's Avatar Hippopotamoss3/16/24 5:58 pm history
3/16/2024 10:28 pm
Hippopotamoss's Avatar Hippopotamoss
Heyo,

I'm currently trying to create a mod version of my resource pack Randomly Rotating Flower Pots where the flower pot would be able to be rotated like a head block (skeleton, zombie, player, etc.).

However, I cannot seem to find out how to replicate the rotation system, let alone implement it into the flower pot.

I've tried digging into the vanilla files of the head block as well as other blocks that use a similar rotation system (banner, sign) but cannot find what they have in common or how they control the rotation.

I've also tried using MCreator but it doesn't seem to have an option to add that kind of rotation in its interface.

If anyone knows how I could achieve this that would be great! (also if it's possible in MCreator that would be preferable as I'm not super versed in Java)

Thanks :)

EDIT: So I've got it to recognize the rotation blockstate in-game and the blockstate changes when I face a different direction, like it should. The issue I'm running into now is that the actual model isn't rotating with the blockstate
Posted by Hippopotamoss's Avatar
Hippopotamoss
Level 51 : Grandmaster Botanist
82

Create an account or sign in to comment.

4

2
03/16/2024 8:11 pm
Level 30 : Artisan Miner
Cornbread_Alphanumeric
Cornbread_Alphanumeric's Avatar
i think the rotation of heads, banners, and signs might have something to do with them being block entities, where flower pots are just regular blocks. idk tho
1
03/16/2024 10:28 pm
Level 51 : Grandmaster Botanist
Hippopotamoss
Hippopotamoss's Avatar
Yeah, you're right, it's tied to them being entities, I had known I would need to make the flower pot a block entity before I started. Someone in the Fabric Discord was able to point some things out to me to help! There's a couple states to call for it to figure out the rotation
1
03/16/2024 7:07 pmhistory
Level 52 : Grandmaster Blob
HoboMaggot
HoboMaggot's Avatar
Try asking the forge/fabric (depending on your modloader) discord for help on the rotation system as that is a broad concept that a lot of modders would understand
1
03/16/2024 7:25 pm
Level 51 : Grandmaster Botanist
Hippopotamoss
Hippopotamoss's Avatar
Thanks! Will do :)
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome