I made a trap using cactus in 1.12 for zombie pigmen in the nether, but I am not sure if the cactus is destroying XP orbs. I get a lot of XP but I was expecting more.
Its working perfectly for killing them, i dont need their drops , just the xp
minecraft-java-edition
Best Answer
"Experience orbs can be destroyed by fire, lava, explosions and cacti" from the wiki https://minecraft.gamepedia.com/Experience
Also mobs will not drop xp unless you hit them at least once 5 seconds before they die.