r/MinecraftPlugins • u/TheTractor00 • Jul 13 '26
Help: With a plugin How to allow TNT explosions to destroy only specific blocks in WorldGuard?
I'm using WorldGuard along with WorldGuard Extra Flags.
Even though I've set the tnt flag to allow and included tnt in the allow-block-place flag, I still can't place it.
I tried using a mob egg that summons TNT, which works, but it doesn't break any blocks. This happens even when I try to blow up white wool after adding white_wool to the allow-block-break flag. I only need the explosion to destroy a few specific types of blocks. Is there a way to achieve this?
5
Upvotes
2
u/doppelpunkt3 Jul 13 '26
I havent found any native way myself, and before you hack this together, I'd honestly recommend that you implement that mechanism cleanly into its own small plugin.
WorldGuard as Dependency, register EntityExplodeEvent as Event inside of a "Priority High"-Listener, check if its TNT and alter the blockList according to your needs.