I loaded up a 1.18 world and to my surprise there was an ocelot that spawned on top of a tree (pictured below). The coordinates are also shown in the screenshot as well as the seed. Edit: after flying around more i found two more ocelots in trees and none on the ground which makes me believe they can only spawn on leaves.
Attachments
Comments 2
Thank you for your report!
We're tracking this issue in MC-169760, so this ticket is being resolved and linked as a duplicate.
That ticket has already been resolved as working as intended, which means this is not considered a bug and won't be fixed. Please do not leave a comment on the linked ticket.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
-- I am a bot. This action was performed automatically! The ticket was resolved by one of our moderators, and I left this message to give more information to you.
may be a duplicate of MC-169760
and it was resolved as "works as intended"