The bug
When you have barrier blocks you can see them when you have the item selected in your hotbar. But, if you have the item in the off-hand slot, they disappear from view.
How to reproduce:
Place a barrier block.
Put the barrier item in the off-hand slot (you shouldn't have it on the main hand).
The barrier block disappears from view.
Linked issues
Attachments
Comments

Thank you for your report!
We're tracking this issue in MC-221824, 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.
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! If you think it was incorrect, please notify us on Discord or Reddit
Duplicate ofΒ MC-221824.