Hey poteitou,
Barriers shouldn't show up at all when using X-Ray, even if you add them to the list. Only BarrierESP is capable of displaying those.
Opacity X-Ray (with minecraft:barrier
added to the list):

Normal X-Ray (with minecraft:barrier
added to the list):

BarrierESP:
