How to include the "item frame" in x-ray blocks?
Actually, item frames are considered entities in Minecraft. Since X-Ray only hides blocks, this means that item frames are always visible when using X-Ray, so you don't need to include them in the list.
Hope this helps!
Alexander01998 an new idea would be disabling rendering entities from an adjustable list, that might help griefing and with lag machines