The "Height limit for building is 319" warning will show when you try to place blocks which otherwise could not be placed, even if you were trying to place them beneath the world limit.
Steps to Reproduce:
Place a block which does not support vegetation (in this example, a stone block):
/setblock ~ 319 ~ stone
Teleport to the build limit:
/tp @p ~ 320 ~
Try and place vegetation on top of the stone block (example, a sapling)
Expected Result:
The error message would not show because (in this example) saplings cannot be placed on stone blocks under any context, so the block placement would fail regardless of build height.
Observed Result:
The block is not placed (as it shouldn't), but the error message still shows, which may mislead the player as to why the placement failed.
Screenshot(s):
[media]
Thank you for your report!
After consideration, the issue is being closed as Won't Fix.
Please note that this is not the same as Working as Intended, as this bug report correctly describes behavior in the game that might not be the intended or desirable behavior, but it will not be fixed right now. Sometimes, this is because the issue reported is minor and/or impossible to change without large architectural changes to the code base.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki