When using pick block to select grass from the environment, if you have a fern on your hot bar it will select the fern every time.
When using pick block to select a fern from the environment, if you have grass in your hot bar and no fern, pick block will select the grass every time.
If you have neither items in your hot bar, it works as expected.
I found this bug in my BDS world while playing on my IOS device, I then tested on a creative super flat on my IOS device and had exactly the same issue. This is on 1.17.41.
Thank you for your report!
We're tracking this issue in MCPE-117250, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Also, note that you should only create a report in the BDS project if the bug only occurs on BDS.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 BDS Wiki – 📖 FAQs