well, that is vanilla. spawners re very fragile near tnt. if you still want to use tnt for whatever reason (for example the old blazebomber used to do this, the ex-best and still one of the 2 fastest moneyfarms on cubecraft), you can use water to block the explosion force either locally on the spawers, or you build a simple and small contraption which perfectly aligns your tnt blocks to the middle of a block once ignited, because this wy, if its submerged in a watersource, mobs still take explosion damage but blocks dont.
if you need any help, advice, guides, or a mp of the hub with all discoverbles, feel free to ask me or
@Fiction here or on discord and make sure to check out the guides hub here and the website in my signature below:
https://www.cubecraft.net/threads/skyblock-guides-hub.416993/
Community-made guide, interactive map and toolset for CubeCraft Skyblock.
sfr-cubecraft-skyblock.pages.dev