TNT Breaking Fence Gates

Status
This thread has been locked.

M4T14SG4M3R

PapuHost Game Hosting CEO
Premium
Feedback score
0
Posts
278
Reactions
77
Resources
0
Hi, a lot of my players are asking if i could activate minecart with TNT, however when i enable it and try to explode the tnt, it doesn't break the blocks as it should but it removes the near fence gates and i don't know why or what makes that tnt break fence gates, even on enemy claims, this also happens with wither explosions, i want to know if there is a way to cancel it, my current code is this:
Code:
    @EventHandler(ignoreCancelled = false, priority = EventPriority.HIGH)
    public void onEntityExplode(EntityExplodeEvent event) {
        event.blockList().clear();
        if ((event.getEntity() instanceof EnderDragon) || (event.getEntity() instanceof Creeper)) {
            event.setCancelled(true);
        }
    }
But the fence gates are still being removed
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.
Status
This thread has been locked.
Top