Zachster remove the block that you did something to then get the location of the block and spawn primed tnt. world.spawnEntity(location, EntityType.PRIMED_TNT);