This notably happens to all blocks - carved pumpkins are easiest to see this with.
Observed behavior:
The Sulfur Cube is facing north and the placed Carved Pumpkin is facing north. The Carved Pumpkin within the Sulfur Cube is not facing north.
Expected behavior:
The Carved Pumpkin in the Sulfur Cube should also be facing north.
Thank you for your report!
After consideration, the issue is being closed as Working as Intended.
Please note, that mechanics of the game may change between updates.
Things such as graphics, sounds, world creation, biomes, redstone, villagers, and animals may not work the same in current versions.
Full Version History – Snapshot Version History – The official Minecraft feedback site
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki